mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2025-12-01 21:10:05 +00:00
Update tdata to patch format, change config constants accordingly
This commit is contained in:
@@ -998,12 +998,12 @@ void TableData::init() {
|
||||
std::ifstream fstream;
|
||||
for (int i = 0; i < 7; i++) {
|
||||
std::pair<json*, std::string>& table = tables[i];
|
||||
fstream.open(table.second); // open file
|
||||
fstream.open(settings::TDATADIR + table.second); // open file
|
||||
if (!fstream.fail()) {
|
||||
fstream >> *table.first; // load file contents into table
|
||||
} else {
|
||||
if (i != 6) { // gruntwork isn't critical
|
||||
std::cerr << "[FATAL] Critical tdata file missing: " << table.second << std::endl;
|
||||
std::cerr << "[FATAL] Critical tdata file missing: " << settings::TDATADIR << table.second << std::endl;
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user