mirror of
https://github.com/rwengine/openrw.git
synced 2024-09-18 16:32:32 +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:
parent
d7dea62f04
commit
930e10ce16
@ -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());
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user