mingw toolchain and final fixes for Windows. Closes #162
This commit is contained in:
parent
1f002e820c
commit
1438044c6a
6 changed files with 129 additions and 30 deletions
|
|
@ -65,11 +65,21 @@ GameEngine::GameEngine(const McRogueFaceConfig& cfg)
|
|||
!config.python_mode;
|
||||
|
||||
if (should_load_game) {
|
||||
std::cerr << "[DEBUG] GameEngine: loading default game.py" << std::endl;
|
||||
std::cerr.flush();
|
||||
if (!Py_IsInitialized()) {
|
||||
std::cerr << "[DEBUG] GameEngine: initializing Python API" << std::endl;
|
||||
std::cerr.flush();
|
||||
McRFPy_API::api_init();
|
||||
}
|
||||
std::cerr << "[DEBUG] GameEngine: importing mcrfpy" << std::endl;
|
||||
std::cerr.flush();
|
||||
McRFPy_API::executePyString("import mcrfpy");
|
||||
std::cerr << "[DEBUG] GameEngine: executing scripts/game.py" << std::endl;
|
||||
std::cerr.flush();
|
||||
McRFPy_API::executeScript("scripts/game.py");
|
||||
std::cerr << "[DEBUG] GameEngine: game.py execution complete" << std::endl;
|
||||
std::cerr.flush();
|
||||
}
|
||||
|
||||
// Note: --exec scripts are NOT executed here.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue