1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-09-15 15:02:34 +02:00

Rename parseDAT to loadLevelFile

There are many dat files in the game, but this function
only deals with the the level files
This commit is contained in:
Daniel Evans 2016-09-07 00:54:02 +01:00
parent d7dea62f04
commit 930e10ce16
2 changed files with 5 additions and 5 deletions

View File

@ -45,8 +45,8 @@ void GameData::load()
/// @todo cuts.img files should be loaded differently to gta3.img
loadIMG("anim/cuts.img");
parseDAT("data/default.dat");
parseDAT("data/gta3.dat");
loadLevelFile("data/default.dat");
loadLevelFile("data/gta3.dat");
loadDFF("wheels.dff");
loadDFF("weapons.dff");
@ -65,7 +65,7 @@ void GameData::load()
loadIFP("ped.ifp");
}
void GameData::parseDAT(const std::string& path)
void GameData::loadLevelFile(const std::string& path)
{
auto datpath = index.findFilePath(path);
std::ifstream datfile(datpath.c_str());

View File

@ -113,9 +113,9 @@ public:
void load();
/**
* Loads a GTA3.dat file with the name path
* Loads model, placement, models and textures from a level file
*/
void parseDAT(const std::string& path);
void loadLevelFile(const std::string& path);
/**
* Attempts to load a TXD, or does nothing if it has already been loaded