mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-23 03:52:12 -04:00
cosmetic change
This commit is contained in:
parent
cfad4e9a35
commit
794af9df85
16
src/w_zip.c
16
src/w_zip.c
@ -123,14 +123,6 @@ static boolean W_ZIP_AddDir(w_handle_t handle, const char *path,
|
||||
continue;
|
||||
}
|
||||
|
||||
char *name = M_DirName(stat.m_filename);
|
||||
if (!is_root && strcasecmp(name, dir))
|
||||
{
|
||||
free(name);
|
||||
continue;
|
||||
}
|
||||
free(name);
|
||||
|
||||
if (is_root && M_StringCaseEndsWith(stat.m_filename, ".wad"))
|
||||
{
|
||||
AddWadInMem(zip, M_BaseName(stat.m_filename), index,
|
||||
@ -138,6 +130,14 @@ static boolean W_ZIP_AddDir(w_handle_t handle, const char *path,
|
||||
continue;
|
||||
}
|
||||
|
||||
char *name = M_DirName(stat.m_filename);
|
||||
if (strcasecmp(name, dir))
|
||||
{
|
||||
free(name);
|
||||
continue;
|
||||
}
|
||||
free(name);
|
||||
|
||||
if (W_SkipFile(stat.m_filename))
|
||||
{
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user