-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CORE/M65: more Xemu as test tool stuffs #352
* Introducing "dialogs_allowed" variable which is zero when headless mode is requested. This is to disallow to have warning boxes appearing which needs manual OK'ing. Instead, only the stdout shows the sitation. * The same as above for selection box (trying to select the default option automatically). * "-besure" also implied in headless mode, as there is no way to display question dialogs. * Automatically selecting the "none" GUI when headless mode is requested. * Writing $D6CF with $42 when "-testing" CLI option is used with the MEGA65 emulator causes Xemu to exit with exit code $42. For other exit codes, the user program needs to POKE the exit code to $D6CF first, then the magic value of $42 should be written. In fact, we can say, writing exit code to $D6CF, then the magical value of $42. In case of exactly $42, the second write wouldn't happen though, as emulator exited by that time. WARNING: if "-screenshot" is also used, the emulation continues till one frame is finished, so if that feature is used, the test program needs an infinite loop after the write though!
- Loading branch information
Showing
6 changed files
with
55 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* Part of the Xemu project, please visit: https://github.com/lgblgblgb/xemu | ||
Copyright (C)2016,2019-2022 LGB (Gábor Lénárt) <[email protected]> | ||
Copyright (C)2016-2023 LGB (Gábor Lénárt) <[email protected]> | ||
This program is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
|
@@ -92,11 +92,15 @@ static const struct xemugui_descriptor_st *xemugui_descriptor_list[] = { | |
|
||
int xemugui_init ( const char *name ) | ||
{ | ||
char avail[256]; // "should be enough" (yeah, I know, the 640K ...) for some names ... | ||
avail[0] = 0; | ||
is_xemugui_ok = 0; | ||
if (name && name[0] == '\0') // make sure that empty string means the same as NULL pointer passed | ||
name = NULL; | ||
if (emu_is_headless) { | ||
name = xemunullgui_descriptor.name; | ||
DEBUGPRINT("GUI: forcing \"%s\" because of headless mode" NL, name); | ||
} | ||
char avail[256]; // "should be enough" (yeah, I know, the 640K ...) for some names ... | ||
avail[0] = 0; | ||
for (int a = 0 ;; a++) { | ||
strcat(avail, " "); | ||
strcat(avail, xemugui_descriptor_list[a]->name); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* Part of the Xemu project, please visit: https://github.com/lgblgblgb/xemu | ||
Copyright (C)2016-2022 LGB (Gábor Lénárt) <[email protected]> | ||
Copyright (C)2016-2023 LGB (Gábor Lénárt) <[email protected]> | ||
This program is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
|