The current code could end up with savegameID being undefined, false, a filename string, or null depending on the code path taken. Adapt C++ in consequence.
The current code could end up with savegameID being undefined, false, a filename string, or null depending on the code path taken. Adapt C++ in consequence.