mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- sanity check added for MoveLumpsInFolder
This commit is contained in:
parent
ba5da8ebc2
commit
4ca5bfdd46
2 changed files with 5 additions and 1 deletions
|
@ -920,6 +920,11 @@ static FResourceLump placeholderLump;
|
||||||
|
|
||||||
void FileSystem::MoveLumpsInFolder(const char *path)
|
void FileSystem::MoveLumpsInFolder(const char *path)
|
||||||
{
|
{
|
||||||
|
if (FileInfo.Size() == 0)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
auto len = strlen(path);
|
auto len = strlen(path);
|
||||||
auto rfnum = FileInfo.Last().rfnum;
|
auto rfnum = FileInfo.Last().rfnum;
|
||||||
|
|
||||||
|
|
|
@ -164,7 +164,6 @@ public:
|
||||||
const FString &GetHash() const { return Hash; }
|
const FString &GetHash() const { return Hash; }
|
||||||
|
|
||||||
|
|
||||||
//virtual bool Open(bool quiet, LumpFilterInfo* filter) = 0;
|
|
||||||
virtual FResourceLump *GetLump(int no) = 0;
|
virtual FResourceLump *GetLump(int no) = 0;
|
||||||
FResourceLump *FindLump(const char *name);
|
FResourceLump *FindLump(const char *name);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue