WHDBooter: Added AmiQuit tool, to quit emulator after game exits

This commit is contained in:
Dimitris Panokostas 2022-02-20 19:35:39 +01:00
parent ae67d81718
commit 1648b1f047
2 changed files with 7 additions and 0 deletions

View File

@ -670,6 +670,9 @@ void whdload_auto_prefs(struct uae_prefs* prefs, char* filepath)
whd_bootscript << " SAVEPATH=Saves:Savegames/ SAVEDIR=\"" << subpath << "\"";
whd_bootscript << '\n';
// Launches utility program to quit the emulator (via UAE trap in RTAREA)
whd_bootscript << "DH0:C/AmiQuit\n";
write_log("WHDBooter - Created Startup-Sequence \n\n%s\n", whd_bootscript.str().c_str());
write_log("WHDBooter - Saved Auto-Startup to %s\n", whd_startup);
@ -688,6 +691,10 @@ void whdload_auto_prefs(struct uae_prefs* prefs, char* filepath)
snprintf(whd_path, MAX_DPATH, "%sWHDLoad", whdbootpath);
symlink(whd_path, "/tmp/c/WHDLoad");
// Create a symlink to AmiQuit in /tmp/
snprintf(whd_path, MAX_DPATH, "%sAmiQuit", whdbootpath);
symlink(whd_path, "/tmp/c/AmiQuit");
// create a symlink for DEVS in /tmp/
symlink(kick_path, "/tmp/devs/Kickstarts");
}

BIN
whdboot/AmiQuit Normal file

Binary file not shown.