nxengine / nxengine-evo

nxengine refactoring
https://discord.gg/jnwmA7DhQh
GNU General Public License v3.0
491 stars 82 forks source link

where is the stage.dat located ? #266

Closed meiry closed 2 years ago

meiry commented 2 years ago

looking at :

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 ?

isage commented 2 years ago

It's generated with extract tool from exe.