resolve more paths

This commit is contained in:
Wengier
2021-01-12 16:02:44 -05:00
parent a47b4f511d
commit cdb3524fbb
14 changed files with 60 additions and 27 deletions

View File

@@ -163,6 +163,7 @@ bool MSG_Write(const char * location) {
return true;
}
void ResolvePath(std::string& in);
void MSG_Init() {
Section_prop *section=static_cast<Section_prop *>(control->GetSection("dosbox"));
@@ -171,6 +172,10 @@ void MSG_Init() {
}
else {
Prop_path* pathprop = section->Get_path("language");
if (pathprop != NULL) LoadMessageFile(pathprop->realpath.c_str());
if (pathprop != NULL) {
std::string path = pathprop->realpath;
ResolvePath(path);
LoadMessageFile(path.c_str());
}
}
}