Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Bluscream committed Oct 23, 2018
1 parent 4b1ab72 commit 2065ae6
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions autoStart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ bool init_log(void)
if (log_file) {
return true;
}
log_file = fopen("plugins/season_changer/season_changer.log", "wt");
log_file = fopen("plugins/autoStart.log", "wt");
if (!log_file) {
return false;
}
Expand Down Expand Up @@ -164,16 +164,26 @@ void read_config()
create_config();
}
wchar_t splitbuffer[4096];
GetPrivateProfileString(lpSection, L"autostart", L"", splitbuffer, sizeof(splitbuffer), lpFileName);
GetPrivateProfileString(lpSection, L"after_sdk_warning", L"", splitbuffer, sizeof(splitbuffer), lpFileName);
read_split_list(splitbuffer, after_sdk_warning, ',');
for (const auto &app : after_sdk_warning)
log_line("after_sdk_warning[]: \"%s\"", app.c_str());
GetPrivateProfileString(lpSection, L"on_sdk_config", L"", splitbuffer, sizeof(splitbuffer), lpFileName);
read_split_list(splitbuffer, on_sdk_config, ',');
for (const auto &app : on_sdk_config)
log_line(")[]: \"%s\"", app.c_str());
GetPrivateProfileString(lpSection, L"on_game_pause", L"", splitbuffer, sizeof(splitbuffer), lpFileName);
read_split_list(splitbuffer, on_game_pause, ',');
for (const auto &app : on_game_pause)
log_line("on_game_pause[]: \"%s\"", app.c_str());
GetPrivateProfileString(lpSection, L"on_game_resume", L"", splitbuffer, sizeof(splitbuffer), lpFileName);
read_split_list(splitbuffer, on_game_resume, ',');
for (const auto &app : on_game_resume)
log_line("on_game_resume[]: \"%s\"", app.c_str());
GetPrivateProfileString(lpSection, L"on_game_exit", L"", splitbuffer, sizeof(splitbuffer), lpFileName);
read_split_list(splitbuffer, on_game_exit, ',');
for (const auto &app : on_game_exit)
log_line("on_game_exit[]: \"%s\"", app.c_str());
log_line("Loaded config %ls\n", lpFileName);
}

Expand Down

0 comments on commit 2065ae6

Please sign in to comment.