diff --git a/sfall/Logging.cpp b/sfall/Logging.cpp index 6a882159a..9bd9309d9 100644 --- a/sfall/Logging.cpp +++ b/sfall/Logging.cpp @@ -115,8 +115,6 @@ void devlog_f(const char* fmt, int type, ...) { va_end(args); } } -#else -void devlog_f(...) {} #endif void LoggingInit() { diff --git a/sfall/Logging.h b/sfall/Logging.h index dbcba76c2..60da478fb 100644 --- a/sfall/Logging.h +++ b/sfall/Logging.h @@ -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(); diff --git a/sfall/Modules/Sound.cpp b/sfall/Modules/Sound.cpp index e2cc474a3..743410778 100644 --- a/sfall/Modules/Sound.cpp +++ b/sfall/Modules/Sound.cpp @@ -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)) {