mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-14 08:30:35 +00:00
- ignore executable files in a zip's main folder when checking for mod content in a subdirectory.
This commit is contained in:
parent
7cf13ed158
commit
cfef8c8a71
3 changed files with 10 additions and 8 deletions
|
@ -266,6 +266,8 @@ bool FZipFile::Open(bool quiet, LumpFilterInfo* filter)
|
|||
continue; // 'filter' is a reserved name of the file system.
|
||||
if (name.IndexOf("__macosx") == 0)
|
||||
continue; // skip Apple garbage. At this stage only the root folder matters.
|
||||
if (name.IndexOf(".bat") >= 0 || name.IndexOf(".exe") >= 0)
|
||||
continue; // also ignore executables for this.
|
||||
if (!foundprefix)
|
||||
{
|
||||
// check for special names, if one of these gets found this must be treated as a normal zip.
|
||||
|
|
|
@ -280,10 +280,10 @@ static void DeleteStuff(FileSystem &fileSystem, const TArray<FString>& deletelum
|
|||
//
|
||||
//==========================================================================
|
||||
const char* iwad_folders[13] = { "textures/", "hires/", "sounds/", "music/", "maps/" };
|
||||
const char* iwad_reserved_duke[12] = { ".map", ".con", "menudef", "gldefs", "zscript", "maps/", nullptr };
|
||||
const char* iwad_reserved_blood[12] = { ".map", ".ini", "menudef", "gldefs", "zscript", "maps/", nullptr };
|
||||
const char* iwad_reserved_sw[12] = { ".map", "swcustom.txt", "menudef", "gldefs", "zscript", "maps/", nullptr };
|
||||
const char* iwad_reserved_ex[12] = { ".map", "menudef", "gldefs", "zscript", "maps/", nullptr };
|
||||
const char* iwad_reserved_duke[12] = { ".map", "rmapinfo", ".con", "menudef", "gldefs", "zscript", "maps/", nullptr };
|
||||
const char* iwad_reserved_blood[12] = { ".map", "rmapinfo", ".ini", "menudef", "gldefs", "zscript", "maps/", nullptr };
|
||||
const char* iwad_reserved_sw[12] = { ".map", "rmapinfo", "swcustom.txt", "menudef", "gldefs", "zscript", "maps/", nullptr };
|
||||
const char* iwad_reserved_ex[12] = { ".map", "rmapinfo", "menudef", "gldefs", "zscript", "maps/", nullptr };
|
||||
|
||||
const char** iwad_reserved()
|
||||
{
|
||||
|
|
|
@ -463,7 +463,7 @@ grpinfo
|
|||
scriptname "BLOOD.INI"
|
||||
flags GAMEFLAG_BLOOD
|
||||
dependency 0
|
||||
loadgrp "SOUNDS.RFF", "GUI.RFF"
|
||||
loadgrp "SOUNDS.RFF", "GUI.RFF", "BLOOD.GRP"
|
||||
gamefilter "Blood.Blood"
|
||||
FgColor 0
|
||||
BkColor 0x7f003f
|
||||
|
@ -479,7 +479,7 @@ grpinfo
|
|||
scriptname "BLOOD.INI"
|
||||
flags GAMEFLAG_BLOOD
|
||||
dependency 0
|
||||
loadgrp "SOUNDS.RFF", "GUI.RFF"
|
||||
loadgrp "SOUNDS.RFF", "GUI.RFF", "BLOOD.GRP"
|
||||
gamefilter "Blood.Blood"
|
||||
FgColor 0
|
||||
BkColor 0xaf0024
|
||||
|
@ -495,7 +495,7 @@ grpinfo
|
|||
scriptname "BLOOD.INI"
|
||||
flags GAMEFLAG_BLOOD
|
||||
dependency 0
|
||||
loadgrp "SOUNDS.RFF", "GUI.RFF"
|
||||
loadgrp "SOUNDS.RFF", "GUI.RFF", "BLOOD.GRP"
|
||||
gamefilter "Blood.Blood"
|
||||
FgColor 0
|
||||
BkColor 0xaf0024
|
||||
|
@ -511,7 +511,7 @@ grpinfo
|
|||
scriptname "BLOOD.INI"
|
||||
flags GAMEFLAG_BLOOD
|
||||
dependency 0
|
||||
loadgrp "SOUNDS.RFF", "GUI.RFF"
|
||||
loadgrp "SOUNDS.RFF", "GUI.RFF", "BLOOD.GRP"
|
||||
gamefilter "Blood.Blood"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue