mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-22 14:13:42 -07:00
Updated textmode fix to always run the GUI under Windows
This commit is contained in:
parent
3414ec8027
commit
8e371a263d
1 changed files with 5 additions and 0 deletions
|
@ -274,6 +274,10 @@ int main(int argc, char* argv[]) {
|
|||
pthread_mutex_init(&print_lock, NULL);
|
||||
|
||||
#ifdef HAVE_GUI
|
||||
#ifdef _WIN32
|
||||
InitGraphics(argc, argv, script_cmds_file, usb_present);
|
||||
MainGraphics();
|
||||
#else
|
||||
char* display = getenv("DISPLAY");
|
||||
|
||||
if (display && strlen(display) > 1)
|
||||
|
@ -285,6 +289,7 @@ int main(int argc, char* argv[]) {
|
|||
{
|
||||
main_loop(script_cmds_file, usb_present);
|
||||
}
|
||||
#endif
|
||||
#else
|
||||
main_loop(script_cmds_file, usb_present);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue