mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
Make FResourceLump::LumpNameSetup's argument an FString
This commit is contained in:
parent
bbbbb7ac9d
commit
2103fe2a14
2 changed files with 4 additions and 5 deletions
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue