Revision | 92 (tree) |
---|---|
Zeit | 2010-05-12 20:22:44 |
Autor | bird_may_nike |
(empty log message)
@@ -10,6 +10,7 @@ | ||
10 | 10 | #include "WSFileio.h" |
11 | 11 | |
12 | 12 | extern wchar_t* RecentOfn[]; |
13 | +extern int WsWaveVol; | |
13 | 14 | static LPCWSTR KeyName[] = { |
14 | 15 | L"B", L"A", L"START", L"OPTION", |
15 | 16 | L"X4", L"X3", L"X2", L"X1", |
@@ -21,6 +22,7 @@ | ||
21 | 22 | { |
22 | 23 | int i; |
23 | 24 | |
25 | + /* default values */ | |
24 | 26 | WsKeyboardH[0] = DIK_Z; // B |
25 | 27 | WsKeyboardH[1] = DIK_X; // A |
26 | 28 | WsKeyboardH[2] = DIK_RETURN; // START |
@@ -99,6 +101,7 @@ | ||
99 | 101 | GetPrivateProfileStringW(L"RECENT_ROMS", L"3", L"", RecentOfn[3], 512, IniPath); |
100 | 102 | GetPrivateProfileStringW(L"RECENT_ROMS", L"4", L"", RecentOfn[4], 512, IniPath); |
101 | 103 | GetPrivateProfileStringW(L"RECENT_ROMS", L"5", L"", RecentOfn[5], 512, IniPath); |
104 | + WsWaveVol = GetPrivateProfileIntW(L"VOLUME", L"VOL", 4, IniPath); | |
102 | 105 | } |
103 | 106 | |
104 | 107 | static void WritePrivateProfileIntW(LPCWSTR lpAppName, LPCWSTR lpKeyName, int nInt, LPCWSTR lpFileName) |
@@ -135,4 +138,5 @@ | ||
135 | 138 | WritePrivateProfileStringW(L"RECENT_ROMS", L"3", RecentOfn[3], IniPath); |
136 | 139 | WritePrivateProfileStringW(L"RECENT_ROMS", L"4", RecentOfn[4], IniPath); |
137 | 140 | WritePrivateProfileStringW(L"RECENT_ROMS", L"5", RecentOfn[5], IniPath); |
141 | + WritePrivateProfileIntW(L"VOLUME", L"VOL", WsWaveVol, IniPath); | |
138 | 142 | } |