Skip to content

Commit 2065ae6

Browse files
committed
fixes
1 parent 4b1ab72 commit 2065ae6

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

autoStart.cpp

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ bool init_log(void)
6464
if (log_file) {
6565
return true;
6666
}
67-
log_file = fopen("plugins/season_changer/season_changer.log", "wt");
67+
log_file = fopen("plugins/autoStart.log", "wt");
6868
if (!log_file) {
6969
return false;
7070
}
@@ -164,16 +164,26 @@ void read_config()
164164
create_config();
165165
}
166166
wchar_t splitbuffer[4096];
167-
GetPrivateProfileString(lpSection, L"autostart", L"", splitbuffer, sizeof(splitbuffer), lpFileName);
167+
GetPrivateProfileString(lpSection, L"after_sdk_warning", L"", splitbuffer, sizeof(splitbuffer), lpFileName);
168168
read_split_list(splitbuffer, after_sdk_warning, ',');
169+
for (const auto &app : after_sdk_warning)
170+
log_line("after_sdk_warning[]: \"%s\"", app.c_str());
169171
GetPrivateProfileString(lpSection, L"on_sdk_config", L"", splitbuffer, sizeof(splitbuffer), lpFileName);
170172
read_split_list(splitbuffer, on_sdk_config, ',');
173+
for (const auto &app : on_sdk_config)
174+
log_line(")[]: \"%s\"", app.c_str());
171175
GetPrivateProfileString(lpSection, L"on_game_pause", L"", splitbuffer, sizeof(splitbuffer), lpFileName);
172176
read_split_list(splitbuffer, on_game_pause, ',');
177+
for (const auto &app : on_game_pause)
178+
log_line("on_game_pause[]: \"%s\"", app.c_str());
173179
GetPrivateProfileString(lpSection, L"on_game_resume", L"", splitbuffer, sizeof(splitbuffer), lpFileName);
174180
read_split_list(splitbuffer, on_game_resume, ',');
181+
for (const auto &app : on_game_resume)
182+
log_line("on_game_resume[]: \"%s\"", app.c_str());
175183
GetPrivateProfileString(lpSection, L"on_game_exit", L"", splitbuffer, sizeof(splitbuffer), lpFileName);
176184
read_split_list(splitbuffer, on_game_exit, ',');
185+
for (const auto &app : on_game_exit)
186+
log_line("on_game_exit[]: \"%s\"", app.c_str());
177187
log_line("Loaded config %ls\n", lpFileName);
178188
}
179189

0 commit comments

Comments
 (0)