Use new config filepaths
This commit is contained in:
parent
f99a658a5d
commit
7bb5eea7fa
1 changed files with 2 additions and 2 deletions
|
@ -854,7 +854,7 @@ void Project::saveHealLocationsData(Map *map) {
|
||||||
if (respawnEnabled)
|
if (respawnEnabled)
|
||||||
text += respawnMapTableText + tableEnd + respawnNPCTableText + tableEnd;
|
text += respawnMapTableText + tableEnd + respawnNPCTableText + tableEnd;
|
||||||
|
|
||||||
QString filepath = root + "/src/data/heal_locations.h";
|
QString filepath = root + "/" + projectConfig.getFilePath(ProjectFilePath::data_heal_locations);
|
||||||
ignoreWatchedFileTemporarily(filepath);
|
ignoreWatchedFileTemporarily(filepath);
|
||||||
saveTextFile(filepath, text);
|
saveTextFile(filepath, text);
|
||||||
}
|
}
|
||||||
|
@ -2024,7 +2024,7 @@ bool Project::readRegionMapSections() {
|
||||||
bool Project::readHealLocationConstants() {
|
bool Project::readHealLocationConstants() {
|
||||||
this->healLocationNameToValue.clear();
|
this->healLocationNameToValue.clear();
|
||||||
QStringList prefixes{ "\\bSPAWN_", "\\bHEAL_LOCATION_" };
|
QStringList prefixes{ "\\bSPAWN_", "\\bHEAL_LOCATION_" };
|
||||||
QString constantsFilename = "include/constants/heal_locations.h";
|
QString constantsFilename = projectConfig.getFilePath(ProjectFilePath::constants_heal_locations);
|
||||||
fileWatcher.addPath(root + "/" + constantsFilename);
|
fileWatcher.addPath(root + "/" + constantsFilename);
|
||||||
this->healLocationNameToValue = parser.readCDefines(constantsFilename, prefixes);
|
this->healLocationNameToValue = parser.readCDefines(constantsFilename, prefixes);
|
||||||
// No need to check if empty, not finding any heal location constants is ok
|
// No need to check if empty, not finding any heal location constants is ok
|
||||||
|
|
Loading…
Reference in a new issue