bool load_stages(void)
{
FILE *fp;
fp = myfopen(widen(ResourceManager::getInstance()->getPath("stage.dat")).c_str(), widen("rb").c_str());
if (!fp)
{
LOG_ERROR("failed to open data/stage.dat");
num_stages = 0;
return 1;
}
num_stages = fgetc(fp);
for (int i = 0; i < num_stages; i++)
fread(&stages[i], sizeof(MapRecord), 1, fp);
// hack to show nice backdrop in menu, like nicalis
// stages[0].bg_no=9;
// hack to not show ballos in e_Blcn
stages[93].bossNo = 0;
fclose(fp);
return 0;
}
i have the classic cavestory , but no stage.dat is found . .. where do i find it ?
looking at :
i have the classic cavestory , but no stage.dat is found . .. where do i find it ?