From 9b8260f0cb66ab995e66844dc44b068d7d3a22c0 Mon Sep 17 00:00:00 2001 From: hzqst <113660872@qq.com> Date: Tue, 8 Oct 2024 17:54:06 +0800 Subject: [PATCH] fix fmodex not found issue under linux. --- fallguys/signatures.h | 2 +- fallguys/soundengine.cpp | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/fallguys/signatures.h b/fallguys/signatures.h index aec6ca3..f1916fd 100644 --- a/fallguys/signatures.h +++ b/fallguys/signatures.h @@ -96,6 +96,6 @@ #define FMOD_DLL_NAME "fmodex.so" -#define FMOD_DLL_PATH "%s\\fmodex.so" +#define FMOD_DLL_PATH "%s\\cl_dlls\\libfmodex.so" #endif \ No newline at end of file diff --git a/fallguys/soundengine.cpp b/fallguys/soundengine.cpp index e1242f4..b1bb287 100644 --- a/fallguys/soundengine.cpp +++ b/fallguys/soundengine.cpp @@ -80,7 +80,7 @@ static bool LoadFMOD_Server() if (!g_FMOD_DllHandle) { - LOG_ERROR(PLID, "failed to load fmodex dll!"); + LOG_ERROR(PLID, "Failed to load fmodex dll! The SoundEngine API may not work."); return false; } @@ -92,7 +92,7 @@ static bool LoadFMOD_Server() gpMetaUtilFuncs->pfnFreeLibrary(g_FMOD_DllHandle);\ g_FMOD_DllHandle = NULL;\ }\ - LOG_ERROR(PLID, "failed to find " #name);\ + LOG_ERROR(PLID, "Failed to locate " #name " from fmodex dll!");\ return false;\ } @@ -117,7 +117,7 @@ static bool LoadFMOD_Server() g_FMOD_DllHandle = NULL; } - LOG_ERROR(PLID, "failed to FMOD_System_Create, result: %d", result); + LOG_ERROR(PLID, "Failed to FMOD_System_Create, result: %d", result); return false; } @@ -137,7 +137,7 @@ static bool LoadFMOD_Server() g_FMOD_DllHandle = NULL; } - LOG_ERROR(PLID, "failed to FMOD_System_SetCallback, result: %d", result); + LOG_ERROR(PLID, "Failed to FMOD_System_SetCallback, result: %d", result); return false; } @@ -157,7 +157,7 @@ static bool LoadFMOD_Server() g_FMOD_DllHandle = NULL; } - LOG_ERROR(PLID, "failed to FMOD_System_SetOutput, result: %d", result); + LOG_ERROR(PLID, "Failed to FMOD_System_SetOutput, result: %d", result); return false; } @@ -177,7 +177,7 @@ static bool LoadFMOD_Server() g_FMOD_DllHandle = NULL; } - LOG_ERROR(PLID, "failed to FMOD_System_Init, result: %d", result); + LOG_ERROR(PLID, "Failed to FMOD_System_Init, result: %d", result); return false; }