diff options
Diffstat (limited to 'src/dirs.cpp')
-rw-r--r-- | src/dirs.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/dirs.cpp b/src/dirs.cpp index 394815a83..2e88aef81 100644 --- a/src/dirs.cpp +++ b/src/dirs.cpp @@ -246,20 +246,17 @@ void Dirs::mountDataDir() #endif // defined __native_client__ #ifndef _WIN32 - // Add branding/data to VirtFS search path + // Add branding file's possibly adjecent data/ to VirtFS search path if (!settings.options.brandingPath.empty()) { std::string path = settings.options.brandingPath; - // Strip blah.manaplus from the path + // Strip *.mana from the path const int loc = CAST_S32(path.find_last_of('/')); if (loc > 0) - { - VirtFs::mountDir(path.substr( - 0, loc + 1).append("data"), - Append_false); - } + VirtFs::mountDir(path.substr(0, loc + 1).append("data"), + Append_false); } #endif // _WIN32 } |