Make FResourceLump::LumpNameSetup's argument an FString

This commit is contained in:
Randy Heit 2015-04-04 17:14:17 -05:00
parent bbbbb7ac9d
commit 2103fe2a14
2 changed files with 4 additions and 5 deletions

View file

@ -90,11 +90,10 @@ FResourceLump::~FResourceLump()
//
//==========================================================================
void FResourceLump::LumpNameSetup(const char *iname)
void FResourceLump::LumpNameSetup(FString iname)
{
const char *lname = strrchr(iname,'/');
lname = (lname == NULL) ? iname : lname + 1;
FString base = lname;
long slash = iname.LastIndexOf('/');
FString base = (slash >= 0) ? iname.Mid(slash + 1) : iname;
base = base.Left(base.LastIndexOf('.'));
uppercopy(Name, base);
Name[8] = 0;

View file

@ -44,7 +44,7 @@ struct FResourceLump
virtual FileReader *NewReader();
virtual int GetFileOffset() { return -1; }
virtual int GetIndexNum() const { return 0; }
void LumpNameSetup(const char *iname);
void LumpNameSetup(FString iname);
void CheckEmbedded();
void *CacheLump();