Remove extraneous commenting. Release Build 8582.

This commit is contained in:
2024-03-29 22:54:11 -05:00
parent 3c2c19f822
commit 71acd6ef7d
5 changed files with 4 additions and 6 deletions
+2 -3
View File
@@ -184,7 +184,7 @@ const void SaveFile::SaveGame(){
std::string fileHash=util::GetHash("save_file_path"_S+std::format("save.{:04}",saveFileID));
saveFile["Hash"].SetString(fileHash);
std::cout<<"Setting Hash to "<<fileHash<<". Writing to File..."<<std::endl;
utils::datafile::Write(saveFile,"save_file_path"_S+std::format("save.{:04}",saveFileID)); //Once the hash has been computed and added, save the file a second time.
utils::datafile::Write(saveSystemFile,"save_file_path"_S+"system.conf");
utils::datafile metadata;
@@ -298,7 +298,6 @@ void SaveFile::LoadFile(){
if(expectedFileHash!=fileHash){
LOG(std::format("WARNING! Filehash for file {} was not identified as proper! Will not load this file!","save_file_path"_S+std::format("save.{:04}",saveFileID)));
LOG("Expected vs Actual: "<<expectedFileHash<<std::endl<<fileHash<<std::endl)
return;
}
@@ -596,7 +595,7 @@ const std::string SaveFile::CreateServerRequest(const SaveFileOperation::Operati
*/
const std::array uriReserved={';','/','?',':','@','&','=','+','$',',','-','_','.','!','~','*','\'','(',')','#'};
if(c>='A'&&c<='Z'||c>='a'&&c<='z'||c>='0'&&c<='9'||std::find(uriReserved.begin(),uriReserved.end(),c)!=uriReserved.end())return std::move(str)+c;
std::string convertedChar=std::format("%{:02x}",c);
std::for_each(convertedChar.begin(),convertedChar.end(),[](char&c){c=char(std::toupper(c));});
return std::move(str)+convertedChar;