Skip to content

Commit

Permalink
fix: BMLPlus config path parity issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Xenapte committed Feb 20, 2024
1 parent 12c92ab commit eecbe11
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions BallanceMMOClient/config_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@ std::wstring config_manager::get_local_appdata_path() { // local appdata
void config_manager::migrate_config() {
constexpr const char* const config_path = "..\\ModLoader\\Config\\BallanceMMOClient.cfg";
std::ifstream config(config_path);
if (!config.is_open())
return;
if (!config.is_open()) {
config.clear();
config.open("..\\ModLoader\\Configs\\BallanceMMOClient.cfg");
// BMLPlus parity issue
if (!config.is_open()) return;
}
std::string temp_str;
while (config >> temp_str) {
if (temp_str == "BallanceMMOClient")
Expand Down

0 comments on commit eecbe11

Please sign in to comment.