request save on exit wip
This commit is contained in:
@@ -47,6 +47,11 @@ std::string GetLastErrorAsString()
|
||||
return message;
|
||||
}
|
||||
|
||||
void destroy_window()
|
||||
{
|
||||
DestroyWindow(hWnd);
|
||||
}
|
||||
|
||||
void async_lock()
|
||||
{
|
||||
//std::lock_guard<std::mutex> _lock(async_mutex);
|
||||
@@ -456,7 +461,9 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp)
|
||||
BT_SetTerminate();
|
||||
break;
|
||||
case WM_CLOSE:
|
||||
PostQuitMessage(0);
|
||||
if (App::I.request_close())
|
||||
PostQuitMessage(0);
|
||||
else return true;
|
||||
break;
|
||||
case WM_SIZE:
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user