From 7fd2aee772674525b8f997f9aea7609075fc6c06 Mon Sep 17 00:00:00 2001 From: adelikat Date: Sun, 9 Nov 2008 18:31:10 +0000 Subject: [PATCH] Win32-remembers framecounter status --- desmume/src/windows/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/desmume/src/windows/main.cpp b/desmume/src/windows/main.cpp index 887d52d07..9a05a98be 100644 --- a/desmume/src/windows/main.cpp +++ b/desmume/src/windows/main.cpp @@ -1007,6 +1007,7 @@ int WINAPI WinMain (HINSTANCE hThisInstance, FpsDisplay = GetPrivateProfileInt("Video","Display Fps", 0, IniName); WndX = GetPrivateProfileInt("Video","WindowPosX", 0, IniName); WndY = GetPrivateProfileInt("Video","WindowPosY", 0, IniName); + frameCounterDisplay = GetPrivateProfileInt("Display","FrameCounter", 0, IniName); //sprintf(text, "%s", DESMUME_NAME_AND_VERSION); MainWindow = new WINCLASS(CLASSNAME, hThisInstance); RECT clientRect = {0,0,256,384}; @@ -1447,6 +1448,9 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM //Save window position WritePrivateProfileInt("Video", "WindowPosX", MainWindowRect.left, IniName); WritePrivateProfileInt("Video", "WindowPosY", MainWindowRect.top, IniName); + + //Save frame counter status + WritePrivateProfileInt("Display", "FrameCounter", frameCounterDisplay, IniName); if (runthread != INVALID_HANDLE_VALUE) {