0ad/source/simulation2
phosit 7ec2d3f0e0
Throw error when simulation script can't be loaded
When a script in "simulation/helpers/" contained an error. Files in
"simulation/components" aren't loaded. The return value of
`LoadDefaultScripts` indicated an error but was ignored. The simulation
still tried to start.

Now instead of returning a ignoreable error code the error is thrown. In
the common path the error is implicitly rethrown to the JS-function
which tried to start the game.

fixes: #8133
(cherry picked from commit 9a526bcae1)
Signed-off-by: phosit <phosit@autistici.org>
2025-11-24 20:20:17 +01:00
..
components Replace boost::filesystem std::filyestem 2025-10-31 13:43:50 +01:00
docs Remove UNUSED 2025-06-26 17:25:05 +02:00
helpers Remove ScriptTypes and ScriptExtraHeaders headers 2025-09-14 13:17:18 +02:00
scripting Fix includes in source/simulation2 2025-08-07 20:00:49 +02:00
serialization Remove ScriptTypes and ScriptExtraHeaders headers 2025-09-14 13:17:18 +02:00
system Remove ScriptTypes and ScriptExtraHeaders headers 2025-09-14 13:17:18 +02:00
tests Throw error when simulation script can't be loaded 2025-11-24 20:20:17 +01:00
MessageTypes.h Fix includes in source/simulation2 2025-08-08 07:10:11 +02:00
Simulation2.cpp Throw error when simulation script can't be loaded 2025-11-24 20:20:17 +01:00
Simulation2.h Throw error when simulation script can't be loaded 2025-11-24 20:20:17 +01:00
TypeList.h Store whether a player is activ in C++ 2025-01-05 19:57:12 +01:00