Skip to content

Commit

Permalink
Fix for internal mod names
Browse files Browse the repository at this point in the history
If a modname contained at least one period,
everything past the last period would get stripped
  • Loading branch information
Malacath-92 committed Feb 27, 2021
1 parent d426eab commit 53a71b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/playlunky/mod/mod_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ ModManager::ModManager(std::string_view mods_root, VirtualFilesystem& vfs) {
bool has_outdated_shaders{ false };

for (const fs::path& mod_folder : mod_folders) {
std::string mod_name = mod_folder.stem().string(); // Not const so we can move from it later
std::string mod_name = mod_folder.filename().string(); // Not const so we can move from it later
const auto mod_db_folder = mod_folder / ".db";

const auto [prio, enabled] = [&mod_name_to_prio, &mod_name]() mutable {
Expand Down

0 comments on commit 53a71b9

Please sign in to comment.