mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 11:10:39 +00:00
Fix parameter aliasing warning in G_LoadGroups()
git-svn-id: https://svn.eduke32.com/eduke32@6977 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
e6277dd8da
commit
4c4c5f569c
1 changed files with 9 additions and 7 deletions
|
@ -410,20 +410,22 @@ void G_LoadGroups(int32_t autoload)
|
||||||
addsearchpath(g_rootDir);
|
addsearchpath(g_rootDir);
|
||||||
// addsearchpath(mod_dir);
|
// addsearchpath(mod_dir);
|
||||||
|
|
||||||
|
char path[BMAX_PATH];
|
||||||
|
|
||||||
if (getcwd(cwd, BMAX_PATH))
|
if (getcwd(cwd, BMAX_PATH))
|
||||||
{
|
{
|
||||||
Bsnprintf(cwd, sizeof(cwd), "%s/%s", cwd, g_modDir);
|
Bsnprintf(path, sizeof(path), "%s/%s", cwd, g_modDir);
|
||||||
if (!Bstrcmp(g_rootDir, cwd))
|
if (!Bstrcmp(g_rootDir, path))
|
||||||
{
|
{
|
||||||
if (addsearchpath(cwd) == -2)
|
if (addsearchpath(path) == -2)
|
||||||
if (Bmkdir(cwd, S_IRWXU) == 0)
|
if (Bmkdir(path, S_IRWXU) == 0)
|
||||||
addsearchpath(cwd);
|
addsearchpath(path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef USE_OPENGL
|
#ifdef USE_OPENGL
|
||||||
Bsnprintf(cwd, sizeof(cwd), "%s/%s", g_modDir, TEXCACHEFILE);
|
Bsnprintf(path, sizeof(path), "%s/%s", g_modDir, TEXCACHEFILE);
|
||||||
Bstrcpy(TEXCACHEFILE, cwd);
|
Bstrcpy(TEXCACHEFILE, path);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue