mirror of
https://github.com/sigonasr2/hamster.git
synced 2025-04-19 23:09:40 -05:00
Move PBData reading to the assets directory.
This commit is contained in:
parent
c8e02a23a8
commit
e9c7fa0842
@ -616,7 +616,7 @@ void HamsterGame::SavePB(const std::string&mapName,int ms){
|
|||||||
std::cout<<"Failed"<<std::endl;
|
std::cout<<"Failed"<<std::endl;
|
||||||
});
|
});
|
||||||
#else
|
#else
|
||||||
std::ofstream file{"PBData"};
|
std::ofstream file{ASSETS_DIR+"PBData"};
|
||||||
for(const std::string&mapName:Game().mapNameList){
|
for(const std::string&mapName:Game().mapNameList){
|
||||||
file<<mapPBs[mapName]<<" ";
|
file<<mapPBs[mapName]<<" ";
|
||||||
}
|
}
|
||||||
@ -639,7 +639,7 @@ void HamsterGame::LoadPBs(){
|
|||||||
std::cout<<std::format("Failed to retrieve PB for {}",*((std::string*)(arg)))<<std::endl;
|
std::cout<<std::format("Failed to retrieve PB for {}",*((std::string*)(arg)))<<std::endl;
|
||||||
});
|
});
|
||||||
#else
|
#else
|
||||||
std::ifstream file{"PBData"};
|
std::ifstream file{ASSETS_DIR+"PBData"};
|
||||||
int readCounter{0};
|
int readCounter{0};
|
||||||
while(file.good()){
|
while(file.good()){
|
||||||
if(readCounter>=Game().mapNameList.size())break;
|
if(readCounter>=Game().mapNameList.size())break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user