0ad/source/ps
Ralph Sennhauser f578a5b34d
Readd JS API function Engine.Exit()
Requested in #8244 for scripting purposes and automated testing. Extend
the original design by adding a means to pass an exit status. This also
comes in handy in case one wants to cleanly error out from JS on parsing
errors of command line arguments as reported in #7967.

Fixes: #8244
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
(cherry picked from commit 0d60bdfd2e)
Signed-off-by: phosit <phosit@autistici.org>
2026-01-29 21:56:19 +01:00
..
containers Remove custom span and use std::span 2025-08-24 11:09:57 +02:00
GameSetup Propagate error from autostart 2025-12-23 20:18:16 +01:00
memory Removes unused pointer from the allocate function 2025-10-12 00:53:10 +02:00
scripting Readd JS API function Engine.Exit() 2026-01-29 21:56:19 +01:00
strings Reduces string allocations in GUI and maths. 2025-10-11 19:44:22 +02:00
tests Readd JS API function Engine.Exit() 2026-01-29 21:56:19 +01:00
XMB Fix some includes all over the place 2025-08-13 19:38:21 +02:00
XML Fix includes in source/ps 2025-08-03 15:57:56 +02:00
algorithm.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
ArchiveBuilder.cpp Fix some includes in source/ps 2025-07-28 16:59:04 +02:00
ArchiveBuilder.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
CacheLoader.cpp Reduces string allocations in paths. 2025-10-05 01:31:27 +02:00
CacheLoader.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
CConsole.cpp Fix exceeding input boundaries in console 2026-01-01 16:08:45 +01:00
CConsole.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
CLogger.cpp Add an engine "compatible" version 2025-10-31 13:43:49 +01:00
CLogger.h Fix includes in source/renderer 2025-07-27 16:07:14 +02:00
Compress.cpp Fix some includes in source/ps 2025-07-28 16:59:04 +02:00
Compress.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
ConfigDB.cpp Reduces string allocations in GUI and maths. 2025-10-11 19:44:22 +02:00
ConfigDB.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
CStr.cpp Update trac links with gitea links 2024-12-10 11:29:48 +01:00
CStr.h Fix some headers in gui 2025-07-02 13:20:13 +02:00
CStrForward.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
CStrIntern.cpp Reduces string allocations in GUI and maths. 2025-10-11 19:44:22 +02:00
CStrIntern.h Reduces string allocations in GUI and maths. 2025-10-11 19:44:22 +02:00
CStrInternStatic.h Removes USE_FOG define and switches to a shader parameter. 2025-10-11 08:11:35 +02:00
DllLoader.cpp Fix includes in source/ps 2025-08-03 15:57:56 +02:00
DllLoader.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Errors.cpp Don't leak all GUI objects on name ambiguity following 5cc814759f and remove ERROR_GROUP GUI. 2019-10-11 16:20:50 +00:00
Errors.h Fix some includes in source/ps 2025-07-28 16:59:04 +02:00
FileIo.cpp Fix some includes in source/ps 2025-07-28 16:59:04 +02:00
FileIo.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
Filesystem.cpp Fix some includes in source/ps 2025-07-28 16:59:04 +02:00
Filesystem.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
Future.h Make TaskManager independent of Future 2025-08-28 20:01:39 +02:00
Game.cpp Fix some includes all over the place 2025-08-13 19:38:21 +02:00
Game.h Remove ScriptTypes and ScriptExtraHeaders headers 2025-09-14 13:17:18 +02:00
Globals.cpp Fix includes in source/ps 2025-08-03 15:57:56 +02:00
Globals.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
GUID.cpp Fix some includes in source/ps 2025-07-28 16:59:04 +02:00
GUID.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Hashing.cpp Fix some includes in source/ps 2025-07-28 16:59:04 +02:00
Hashing.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Hotkey.cpp Fix includes in source/ps 2025-08-03 15:57:56 +02:00
Hotkey.h Fix some includes all over the place 2025-08-14 20:15:30 +02:00
Joystick.cpp Fix includes in source/ps 2025-08-03 15:57:56 +02:00
Joystick.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
KeyName.cpp Fix some includes in source/ps 2025-07-28 16:59:04 +02:00
KeyName.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
Loader.cpp Fix some includes in source/ps 2025-07-28 16:59:04 +02:00
Loader.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
Mod.cpp Fix some includes all over the place 2025-08-13 19:38:21 +02:00
Mod.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
ModInstaller.cpp Fix includes in source/ps 2025-08-03 15:57:56 +02:00
ModInstaller.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
ModIo.cpp Remove obsolete comment, closes #5128 2025-08-10 23:32:07 +02:00
ModIo.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
Profile.cpp Fix some includes in source/ps 2025-07-28 16:59:04 +02:00
Profile.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
Profiler2.cpp Make TaskManager independent of Future 2025-08-28 20:01:39 +02:00
Profiler2.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
Profiler2GPU.cpp Fix some includes in source/ps 2025-07-28 16:59:04 +02:00
Profiler2GPU.h Fix some includes in source/renderer 2025-07-09 09:04:50 +02:00
ProfileViewer.cpp Fixes ProfilerViewer when drawing empty cells 2026-01-01 16:08:45 +01:00
ProfileViewer.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
Pyrogenesis.cpp Add an engine "compatible" version 2025-10-31 13:43:49 +01:00
Pyrogenesis.h Use the PYROGENESIS_VERSION macro instead of a global 2025-10-31 13:43:49 +01:00
Replay.cpp Add an engine "compatible" version 2025-10-31 13:43:49 +01:00
Replay.h Remove ScriptTypes and ScriptExtraHeaders headers 2025-09-14 13:17:18 +02:00
SavedGame.cpp Add an engine "compatible" version 2025-10-31 13:43:49 +01:00
SavedGame.h Remove ScriptTypes and ScriptExtraHeaders headers 2025-09-14 13:17:18 +02:00
Singleton.h Fix some includes in source/ps 2025-07-28 16:59:04 +02:00
TaskManager.cpp Make TaskManager independent of Future 2025-08-28 20:01:39 +02:00
TaskManager.h Make TaskManager independent of Future 2025-08-28 20:01:39 +02:00
TemplateLoader.cpp Fix some includes in source/ps 2025-07-28 16:59:04 +02:00
TemplateLoader.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
Threading.cpp Fix some includes in source/ps 2025-07-28 16:59:04 +02:00
Threading.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
ThreadUtil.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
TouchInput.cpp Fix includes in source/ps 2025-08-03 15:57:56 +02:00
TouchInput.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
UniDoubler.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
UserReport.cpp Fix includes in source/ps 2025-08-03 15:57:56 +02:00
UserReport.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Util.cpp Fix some includes in source/ps 2025-07-28 16:59:04 +02:00
Util.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
VideoMode.cpp Build molten vk instead of relying on a prebuilt version 2025-08-06 21:21:30 +02:00
VideoMode.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00
VisualReplay.cpp Add an engine "compatible" version 2025-10-31 13:43:49 +01:00
VisualReplay.h Remove ScriptTypes and ScriptExtraHeaders headers 2025-09-14 13:17:18 +02:00
World.cpp Fix some includes in source/ps 2025-07-28 16:59:04 +02:00
World.h Fix includes in source/ps 2025-08-05 07:21:22 +02:00