- got rid of the two copying variants of fileSystem.GetFileShortName.
This commit is contained in:
parent
c5b5b2b873
commit
25b7b18c3d
12 changed files with 22 additions and 67 deletions
|
|
@ -1095,14 +1095,6 @@ bool FileSystem::CheckFileName (int lump, const char *name)
|
|||
//
|
||||
//==========================================================================
|
||||
|
||||
void FileSystem::GetFileShortName (char *to, int lump) const
|
||||
{
|
||||
if ((size_t)lump >= NumEntries)
|
||||
*to = 0;
|
||||
else
|
||||
uppercopy (to, FileInfo[lump].shortName.String);
|
||||
}
|
||||
|
||||
const char* FileSystem::GetFileShortName(int lump) const
|
||||
{
|
||||
if ((size_t)lump >= NumEntries)
|
||||
|
|
@ -1111,16 +1103,6 @@ const char* FileSystem::GetFileShortName(int lump) const
|
|||
return FileInfo[lump].shortName.String;
|
||||
}
|
||||
|
||||
void FileSystem::GetFileShortName(FString &to, int lump) const
|
||||
{
|
||||
if ((size_t)lump >= NumEntries)
|
||||
to = FString();
|
||||
else {
|
||||
to = FileInfo[lump].shortName.String;
|
||||
to.ToUpper();
|
||||
}
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// FileSystem :: GetFileFullName
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue