Skip to content

Commit

Permalink
Removed unnecessary error message when AutoSearchSFX is enabled
Browse files Browse the repository at this point in the history
Removed leftover from devlog_f() in release builds.
  • Loading branch information
NovaRain committed May 10, 2024
1 parent 0281797 commit cc2b79d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions sfall/Logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,6 @@ void devlog_f(const char* fmt, int type, ...) {
va_end(args);
}
}
#else
void devlog_f(...) {}
#endif

void LoggingInit() {
Expand Down
2 changes: 1 addition & 1 deletion sfall/Logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void dlog_f(const char* fmt, int type, ...);
// Prints debug message to sfall log file for develop build
void devlog_f(const char* fmt, int type, ...);
#else
void devlog_f(...);
#define devlog_f(...) ((void)0)
#endif

void LoggingInit();
Expand Down
1 change: 1 addition & 0 deletions sfall/Modules/Sound.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1060,6 +1060,7 @@ void Sound::init() {

if (IniReader::GetConfigInt("Sound", "AutoSearchSFX", 1)) {
HookCalls(sfxl_init_hook, {0x4A9999, 0x4A9B34});
SafeWrite8(0x4A9B3F, 0xA9); // jz 0x4A9BEC (skip error message)
}

if (IniReader::GetConfigString("Sound", "MainMenuMusic", "", mainMenuMusic, 9)) {
Expand Down

0 comments on commit cc2b79d

Please sign in to comment.