This commit is contained in:
lenheart
2024-09-07 15:18:28 +08:00
parent bbaa7af861
commit 37fe87af67
149 changed files with 721 additions and 32707 deletions

View File

@@ -94,7 +94,8 @@ static void ReloadingScript(HSQUIRRELVM v, std::string FilePath)
{
// 爬取出所有的脚本文件
std::vector<std::string> vec = Tool::GetListFilesR(FilePath);
std::map<std::string, std::string> SquirrelFilePath;
std::vector<std::pair<std::string, std::string>> SquirrelFilePath;
// std::map<std::string, std::string>SquirrelFilePath;
for (auto it = vec.cbegin(); it != vec.cend(); ++it)
{
@@ -109,7 +110,7 @@ static void ReloadingScript(HSQUIRRELVM v, std::string FilePath)
std::string ContentString(ContentStringStream.str());
F.close();
std::string RealContentString = IsencryptDecrypt(ContentString, FileName);
SquirrelFilePath[FileName] = RealContentString;
SquirrelFilePath.push_back({FileName, RealContentString});
}
std::map<std::string, std::string> SquirrelLastFilePath;