Removed unnecessary error message when AutoSearchSFX is enabled

Removed leftover from devlog_f() in release builds.
This commit is contained in:
NovaRain
2024-05-11 00:23:11 +08:00
parent c1b279f2fa
commit 9c97d0da44
3 changed files with 2 additions and 3 deletions
-2
View File
@@ -115,8 +115,6 @@ void devlog_f(const char* fmt, int type, ...) {
va_end(args);
}
}
#else
void devlog_f(...) {}
#endif
void LoggingInit() {
+1 -1
View File
@@ -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();
+1
View File
@@ -1068,6 +1068,7 @@ void Sound::init() {
if (IniReader::GetConfigInt("Sound", "AutoSearchSFX", 1)) {
const DWORD sfxlInitAddr[] = {0x4A9999, 0x4A9B34};
HookCalls(sfxl_init_hook, sfxlInitAddr);
SafeWrite8(0x4A9B3F, 0xA9); // jz 0x4A9BEC (skip error message)
}
if (IniReader::GetConfigString("Sound", "MainMenuMusic", "", mainMenuMusic, 9)) {