OSDN Git Service

[EMU][CONFIG] Add config option print_statistics, related by commit 324b522e8fe7a80d0...
authorK.Ohta <whatisthis.sowhat@gmail.com>
Wed, 28 Feb 2018 15:32:08 +0000 (00:32 +0900)
committerK.Ohta <whatisthis.sowhat@gmail.com>
Wed, 28 Feb 2018 15:32:08 +0000 (00:32 +0900)
source/src/config.cpp
source/src/config.h

index 8a7246b..0d64322 100644 (file)
@@ -216,6 +216,8 @@ void initialize_config()
        #endif
                config.special_debug_fdc = false;
                config.host_keyboard_type = CONFIG_HOST_KEYBOARD_AT_109JP;
+
+               config.print_statistics = false;
 #endif 
 }
 
@@ -441,6 +443,7 @@ void load_config(const _TCHAR *config_path)
                config.cursor_as_ten_key = MyGetPrivateProfileInt(_T("Qt"), _T("CursorAsTenKey"), config.cursor_as_ten_key, config_path);
                config.numpad_enter_as_fullkey = MyGetPrivateProfileBool(_T("Qt"), _T("NumpadEnterAsFullKey"), config.numpad_enter_as_fullkey, config_path);
                config.host_keyboard_type = MyGetPrivateProfileInt(_T("Qt"), _T("HostKeyboardType"), config.host_keyboard_type, config_path);
+               config.print_statistics = MyGetPrivateProfileBool(_T("Qt"), _T("PrintCPUStatistics"), config.print_statistics, config_path);
        #ifdef USE_FD1
                config.special_debug_fdc =      MyGetPrivateProfileInt(_T("Qt"), _T("SpecialDebugFDC"), config.special_debug_fdc, config_path);
        #endif
@@ -756,6 +759,7 @@ void save_config(const _TCHAR *config_path)
                MyWritePrivateProfileInt(_T("Qt"), _T("CursorAsTenKey"), config.cursor_as_ten_key, config_path);
                MyWritePrivateProfileBool(_T("Qt"), _T("NumpadEnterAsFullKey"), config.numpad_enter_as_fullkey, config_path);
                MyWritePrivateProfileInt(_T("Qt"), _T("HostKeyboardType"), config.host_keyboard_type, config_path);
+               MyWritePrivateProfileBool(_T("Qt"), _T("PrintCPUStatistics"), config.print_statistics, config_path);
        #ifdef USE_FD1
                MyWritePrivateProfileInt(_T("Qt"), _T("SpecialDebugFDC"), config.special_debug_fdc, config_path);
        #endif
index 7b9fb4f..7355f18 100644 (file)
@@ -205,6 +205,7 @@ typedef struct {
                int filter_type;
        #endif
 
+       // NOTE: Belows contain STAGED CONFIGURATION.
 #if defined(_USE_QT)
        bool use_separate_thread_draw;
        bool use_opengl_scanline;
@@ -218,7 +219,7 @@ typedef struct {
        bool swap_kanji_pause;
        int  cursor_as_ten_key;
        bool numpad_enter_as_fullkey;
-       
+       bool print_statistics;
        int host_keyboard_type;
        
        bool special_debug_fdc;