Move PBData reading to the assets directory.

This commit is contained in:
sigonasr2 2024-08-24 05:02:50 -05:00
parent c8e02a23a8
commit e9c7fa0842
2 changed files with 2 additions and 2 deletions

View File

@ -616,7 +616,7 @@ void HamsterGame::SavePB(const std::string&mapName,int ms){
std::cout<<"Failed"<<std::endl;
});
#else
std::ofstream file{"PBData"};
std::ofstream file{ASSETS_DIR+"PBData"};
for(const std::string&mapName:Game().mapNameList){
file<<mapPBs[mapName]<<" ";
}
@ -639,7 +639,7 @@ void HamsterGame::LoadPBs(){
std::cout<<std::format("Failed to retrieve PB for {}",*((std::string*)(arg)))<<std::endl;
});
#else
std::ifstream file{"PBData"};
std::ifstream file{ASSETS_DIR+"PBData"};
int readCounter{0};
while(file.good()){
if(readCounter>=Game().mapNameList.size())break;