111
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user