mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-07-16 10:03:04 -07:00
rename usb_present
This commit is contained in:
parent
4a576efc44
commit
897632a717
5 changed files with 21 additions and 21 deletions
|
@ -15,14 +15,14 @@
|
|||
static ProxGuiQT *gui = NULL;
|
||||
static WorkerThread *main_loop_thread = NULL;
|
||||
|
||||
WorkerThread::WorkerThread(char *script_cmds_file, char *script_cmd, bool usb_present) : script_cmds_file(script_cmds_file), script_cmd(script_cmd), usb_present(usb_present) {
|
||||
WorkerThread::WorkerThread(char *script_cmds_file, char *script_cmd, bool pm3_present) : script_cmds_file(script_cmds_file), script_cmd(script_cmd), pm3_present(pm3_present) {
|
||||
}
|
||||
|
||||
WorkerThread::~WorkerThread() {
|
||||
}
|
||||
|
||||
void WorkerThread::run() {
|
||||
main_loop(script_cmds_file, script_cmd, usb_present);
|
||||
main_loop(script_cmds_file, script_cmd, pm3_present);
|
||||
}
|
||||
|
||||
extern "C" void ShowGraphWindow(void) {
|
||||
|
@ -53,12 +53,12 @@ extern "C" void MainGraphics(void) {
|
|||
gui->MainLoop();
|
||||
}
|
||||
|
||||
extern "C" void InitGraphics(int argc, char **argv, char *script_cmds_file, char *script_cmd, bool usb_present) {
|
||||
extern "C" void InitGraphics(int argc, char **argv, char *script_cmds_file, char *script_cmd, bool pm3_present) {
|
||||
#ifdef Q_WS_X11
|
||||
if (getenv("DISPLAY") == NULL)
|
||||
return;
|
||||
#endif
|
||||
main_loop_thread = new WorkerThread(script_cmds_file, script_cmd, usb_present);
|
||||
main_loop_thread = new WorkerThread(script_cmds_file, script_cmd, pm3_present);
|
||||
gui = new ProxGuiQT(argc, argv, main_loop_thread);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue