Fixed GCC compatibility for now.
Removed ps_locked and replaced with ps_error. Added set_fail_state. Fixed md5_file.
This commit is contained in:
@ -249,14 +249,10 @@ int C_Spawn(edict_t *pent)
|
||||
// ###### Load lang
|
||||
char file[256];
|
||||
g_langMngr.LoadCache(build_pathname_r(file, sizeof(file) - 1, "%s/dictionary.cache", get_localinfo("amxx_datadir", "addons/amxmodx/data")));
|
||||
DWORD stop,start=GetTickCount();
|
||||
if (!g_langMngr.Load(build_pathname_r(file, sizeof(file) - 1, "%s/languages.dat", get_localinfo("amxmodx_datadir", "addons/amxmodx/data"))))
|
||||
{
|
||||
LOG_MESSAGE(PLID, "Cache invalidated!");
|
||||
g_langMngr.InvalidateCache();
|
||||
}
|
||||
stop=GetTickCount();
|
||||
LOG_MESSAGE(PLID, "CacheDB load time: %d milliseconds", stop-start);
|
||||
|
||||
// ###### Initialize commands prefixes
|
||||
g_commands.registerPrefix("amx");
|
||||
|
Reference in New Issue
Block a user