mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-28 12:30:46 +00:00
- Add GetLongName()
method to FileSystem
class.
This commit is contained in:
parent
a681aad281
commit
907e0974e9
2 changed files with 7 additions and 0 deletions
|
@ -899,6 +899,12 @@ LumpShortName& FileSystem::GetShortName(int i)
|
||||||
return FileInfo[i].shortName;
|
return FileInfo[i].shortName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FString& FileSystem::GetLongName(int i)
|
||||||
|
{
|
||||||
|
if ((unsigned)i >= NumEntries) I_Error("GetShortName: Invalid index");
|
||||||
|
return FileInfo[i].longName;
|
||||||
|
}
|
||||||
|
|
||||||
void FileSystem::RenameFile(int num, const char* newfn)
|
void FileSystem::RenameFile(int num, const char* newfn)
|
||||||
{
|
{
|
||||||
if ((unsigned)num >= NumEntries) I_Error("RenameFile: Invalid index");
|
if ((unsigned)num >= NumEntries) I_Error("RenameFile: Invalid index");
|
||||||
|
|
|
@ -117,6 +117,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
LumpShortName& GetShortName(int i); // may only be called before the hash chains are set up.
|
LumpShortName& GetShortName(int i); // may only be called before the hash chains are set up.
|
||||||
|
FString& GetLongName(int i); // may only be called before the hash chains are set up.
|
||||||
void RenameFile(int num, const char* fn);
|
void RenameFile(int num, const char* fn);
|
||||||
bool CreatePathlessCopy(const char* name, int id, int flags);
|
bool CreatePathlessCopy(const char* name, int id, int flags);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue