Changed ExtraGameMsgFileList to read its setting from generic INI file, which can be set by UseCommandLine, instead of the fixed ddraw.ini.

Added a comment to karma frm options to explain things better.
This commit is contained in:
NovaRain
2017-03-05 00:31:35 +08:00
parent 411c0a6e98
commit c3acd1af3e
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -403,6 +403,7 @@ ExtraSaveSlots=0
SpeedInterfaceCounterAnims=0 SpeedInterfaceCounterAnims=0
;These lines allow you to control the karma frm's displayed on the character screen ;These lines allow you to control the karma frm's displayed on the character screen
;Number of KarmaPoints should be 1 less than number of KarmaFRMs
;KarmaFRMsCount=3 ;KarmaFRMsCount=3
;KarmaFRMs=47,48,49 ;KarmaFRMs=47,48,49
;KarmaPoints=-100,100 ;KarmaPoints=-100,100
+1 -1
View File
@@ -106,7 +106,7 @@ void ReadExtraGameMsgFiles() {
names.resize(256); names.resize(256);
while ((read = GetPrivateProfileStringA("Misc", "ExtraGameMsgFileList", "", while ((read = GetPrivateProfileStringA("Misc", "ExtraGameMsgFileList", "",
(LPSTR)names.data(), names.size(), ".\\ddraw.ini")) == names.size() - 1) (LPSTR)names.data(), names.size(), ini)) == names.size() - 1)
names.resize(names.size() + 256); names.resize(names.size() + 256);
if (names.empty()) if (names.empty())