Skip to content

Commit

Permalink
fix fmodex not found issue under linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
hzqst committed Oct 8, 2024
1 parent 34f2738 commit 9b8260f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion fallguys/signatures.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
12 changes: 6 additions & 6 deletions fallguys/soundengine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;\
}

Expand All @@ -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;
}

Expand All @@ -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;
}

Expand All @@ -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;
}

Expand All @@ -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;
}

Expand Down

0 comments on commit 9b8260f

Please sign in to comment.