PINK: File scheme still requires a hostname, even if it's the empty string

This commit is contained in:
Henrik "Henke37" Andersson 2020-02-13 00:45:05 +01:00 committed by Eugene Sandulenko
parent ada7ed7114
commit f302cd7c57

View File

@ -365,7 +365,7 @@ void PinkEngine::executeMenuCommand(uint id) {
void PinkEngine::openLocalWebPage(const Common::String &pageName) const {
Common::FSNode gameFolder= Common::FSNode(ConfMan.get("path"));
Common::FSNode filePath = gameFolder.getChild("INSTALL").getChild(pageName);
Common::String fullUrl = Common::String::format("file://%s", filePath.getPath().c_str());
Common::String fullUrl = Common::String::format("file:///%s", filePath.getPath().c_str());
_system->openUrl(fullUrl);
}