- Backend update from Raze
Mostly cleanup and better separation of game/backend concerns.
This commit is contained in:
parent
b7f3cc157d
commit
c62e14d2c1
30 changed files with 200 additions and 196 deletions
|
|
@ -425,9 +425,9 @@ PNamespace *ParseOneScript(const int baselump, ZCCParseState &state)
|
|||
{
|
||||
FString fullPath = IncludeLocs[i].FileName.GetChars(); // get full path, format 'wad:filepath/filename'
|
||||
|
||||
long start = fullPath.IndexOf(":"); // find first ':'
|
||||
auto start = fullPath.IndexOf(":"); // find first ':'
|
||||
|
||||
long end = fullPath.LastIndexOf("/"); // find last '/'
|
||||
auto end = fullPath.LastIndexOf("/"); // find last '/'
|
||||
|
||||
if (start!=-1&&end!=-1)
|
||||
{
|
||||
|
|
@ -443,7 +443,7 @@ PNamespace *ParseOneScript(const int baselump, ZCCParseState &state)
|
|||
while (relativePath.IndexOf("../") == 0) // go back one folder for each '..'
|
||||
{
|
||||
relativePath = relativePath.Mid(3);
|
||||
long slash_index = resolvedPath.LastIndexOf("/");
|
||||
auto slash_index = resolvedPath.LastIndexOf("/");
|
||||
if (slash_index != -1) {
|
||||
resolvedPath = resolvedPath.Mid(0,slash_index);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue