mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-11 17:59:02 +00:00
Fixed: Bad detection if a file is in a BNP under Linux
This commit is contained in:
parent
7c92afd5fc
commit
6a142dc22f
1 changed files with 6 additions and 5 deletions
|
@ -4703,12 +4703,13 @@ bool CInterfaceParser::loadLUA(const std::string &fileName, std::string &error)
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isInData = false;
|
bool isInData = false;
|
||||||
if (pathName.find ("@") != string::npos)
|
std::string::size_type pos = pathName.find("@");
|
||||||
|
if (pos != string::npos)
|
||||||
{
|
{
|
||||||
if (CBigFile::getInstance().getBigFileName(pathName.substr(0, pathName.find ("@"))) != "data/"+pathName.substr(0, pathName.find ("@")))
|
std::string bigFilename = CBigFile::getInstance().getBigFileName(pathName.substr(0, pos));
|
||||||
isInData = false;
|
std::string path = "data/"+pathName.substr(0, pos);
|
||||||
else
|
|
||||||
isInData = true;
|
isInData = bigFilename.find(path) != std::string::npos;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (needCheck && !isInData)
|
if (needCheck && !isInData)
|
||||||
|
|
Loading…
Reference in a new issue