OSDN Git Service

[CONFIG] .
authorK.Ohta <whatisthis.sowhat@gmail.com>
Tue, 24 Sep 2019 22:27:25 +0000 (07:27 +0900)
committerK.Ohta <whatisthis.sowhat@gmail.com>
Tue, 24 Sep 2019 22:27:25 +0000 (07:27 +0900)
source/src/common.cpp
source/src/common.h
source/src/config.cpp

index 0683eab..eaad684 100644 (file)
@@ -346,7 +346,8 @@ void DLL_PREFIX *my_memcpy(void *dst, void *src, size_t len)
 //#endif
 
 
-#ifndef _WIN32
+//#ifndef _WIN32
+#if 1
 BOOL DLL_PREFIX MyWritePrivateProfileString(LPCTSTR lpAppName, LPCTSTR lpKeyName, LPCTSTR lpString, LPCTSTR lpFileName)
 {
        BOOL result = FALSE;
index f3a7d95..a11a880 100644 (file)
@@ -966,7 +966,8 @@ uint16_t DLL_PREFIX EndianFromBig_WORD(uint16_t x);
 #endif
 
 // win32 api
-#ifndef _WIN32
+//#ifndef _WIN32
+#if 1
        BOOL MyWritePrivateProfileString(LPCTSTR lpAppName, LPCTSTR lpKeyName, LPCTSTR lpString, LPCTSTR lpFileName);
        DWORD MyGetPrivateProfileString(LPCTSTR lpAppName, LPCTSTR lpKeyName, LPCTSTR lpDefault, LPTSTR lpReturnedString, DWORD nSize, LPCTSTR lpFileName);
        UINT MyGetPrivateProfileInt(LPCTSTR lpAppName, LPCTSTR lpKeyName, INT nDefault, LPCTSTR lpFileName);
index 6657308..f5a12dd 100644 (file)
@@ -481,10 +481,11 @@ void DLL_PREFIX load_config(const _TCHAR *config_path)
                // Assigning joysticks.
                for(i = 0; i < 16; i++) {
                        _TCHAR name[256];
-                       memset(config.assigned_joystick_name[i], 0x00, sizeof(_TCHAR) * 256);
+                                               memset(config.assigned_joystick_name[i], 0x00, sizeof(_TCHAR) * 256);
+
                        my_stprintf_s(name, 255, _T("AssignedJoystick%d"), i + 1);
                        MyGetPrivateProfileString(_T("Qt"), (const _TCHAR *)name, _T(""),
-                                                                         _T(" "), 255, config_path);
+                                                                         config.assigned_joystick_name[i], 255, config_path);
                }
 
                // Extra UI