Short version: Loading a config file not
named after my executable by calling orxConfig_Load() doesn't work, whereas the normal automatic loading of <exe>.ini does.
I'm compiling and running Tutorial #10
(standalone), by pasting the code into a file called 'main.cpp'.
The first/only change I made was to StandAlone::Init(), partially seen below. All I added was a call to orxConfig_Load(), which succeeds.
If I don't have any .ini file, the code segfaults (as it should, since it doesn't check things). If I have an .ini file named 'main.ini' (my executable name is 'main'), then it runs normally.
If I rename 'main.ini' to 'mango.ini' (which is explicitly loaded in the code below), I get a maximized window that is empty. If I have both 'main.ini', and 'mango.ini', then the code works as expected.
In every case, the .ini file is an unaltered copy of the init file for Tutorial #10
const orxSTRING zInputQuit;
const orxSTRING zInputCycle;
eResult = orxConfig_Load("mango.ini");
orxLOG("Config load: Success");
orxLOG("Config load: not a success %d", eResult);