mirror of https://github.com/axmolengine/axmol.git
Use method same as MacOS solution fix js pre-compiled framework project crash when exit on windows.
This commit is contained in:
parent
0c0f241c5e
commit
7bd9ceda10
|
@ -428,7 +428,9 @@ int SimulatorWin::run()
|
||||||
updateWindowTitle();
|
updateWindowTitle();
|
||||||
|
|
||||||
// startup message loop
|
// startup message loop
|
||||||
return app->run();
|
int ret = app->run();
|
||||||
|
CC_SAFE_DELETE(_app);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
// services
|
// services
|
||||||
|
|
|
@ -9,8 +9,5 @@ int APIENTRY _tWinMain(HINSTANCE hInstance,
|
||||||
{
|
{
|
||||||
UNREFERENCED_PARAMETER(hPrevInstance);
|
UNREFERENCED_PARAMETER(hPrevInstance);
|
||||||
UNREFERENCED_PARAMETER(lpCmdLine);
|
UNREFERENCED_PARAMETER(lpCmdLine);
|
||||||
auto simulator = SimulatorWin::getInstance();
|
return SimulatorWin::getInstance()->run();
|
||||||
int ret = simulator->run();
|
|
||||||
delete simulator;
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue