Hi, when looking at wlapplication.cc, the code is:
try { // Load selected campaign-map-file if (filename.size()) return game.run_splayer_scenario_direct(filename.c_str(), ""); } catch (const std::exception & e) { log("Fata exception: %s\n", e.what()); emergency_save(game); throw; }
Do I understand it properly that you (game itself?) were going to run some "scenario splash"?
But what is more important, wexeption is hiding some details, so could you please get rid of exemption handling like here:
//try { // Load selected campaign-map-file if (filename.size()) return game.run_splayer_scenario_direct(filename.c_str(), ""); // } catch (const std::exception & e) { // log("Fata exception: %s\n", e.what()); // emergency_save(game); // throw; // }
and provide bt once more?
Second comment - you can run widelands in window mode, no need for second screens then.
Hi,
when looking at wlapplication.cc, the code is:
try { splayer_ scenario_ direct( filename. c_str() , ""); save(game) ;
// Load selected campaign-map-file
if (filename.size())
return game.run_
} catch (const std::exception & e) {
log("Fata exception: %s\n", e.what());
emergency_
throw;
}
Do I understand it properly that you (game itself?) were going to run some "scenario splash"?
But what is more important, wexeption is hiding some details, so could you please get rid of exemption handling like here:
//try { splayer_ scenario_ direct( filename. c_str() , ""); save(game) ;
// Load selected campaign-map-file
if (filename.size())
return game.run_
// } catch (const std::exception & e) {
// log("Fata exception: %s\n", e.what());
// emergency_
// throw;
// }
and provide bt once more?
Second comment - you can run widelands in window mode, no need for second screens then.