Exit menu on windows is not working properly.
qub3works opened this issue · comments
In your compiled latest releases any of menu items on exit section does 1 exact thing - simply exits ES. Shutdown system and restart doesnt work.
Code in platform.cpp looks ok, except id change #ifdef WIN32 to #ifdef _WIN32, cause _WIN32 is defined by the compiler, not the environment.
i have this issue as well on windows 10. ive taken the raw commands from platform.cpp and compiled them by itself and works just fine.
EDIT 1- after looking at the code base the function calls in platform.cpp are useless. the quit menu items are hard coded in GuiMenu.cpp with the only call being to quitES() from platform.cpp which expects some files in a tmp directory using linux filestructure and im assuming that's where it shorts itself and just closes ES instead of performing the required functions. hopefully have this fixed in a couple hours :) :). posted 8-16-2018 @ 3:40pm
fix GuiMenu.cpp line 503 ,add this code:
#ifdef WIN32
runRestartCommand();
#endif