From 2f30ce4a4cdf7bdff2c3ef6dc7750b35a9e9ac6e Mon Sep 17 00:00:00 2001 From: Amos <48657826+Mauler125@users.noreply.github.com> Date: Sat, 25 Dec 2021 22:49:09 +0100 Subject: [PATCH] Move banlist.config back to root dir due to its importance --- r5dev/public/bansystem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/r5dev/public/bansystem.cpp b/r5dev/public/bansystem.cpp index 6460679d..95d38eb6 100644 --- a/r5dev/public/bansystem.cpp +++ b/r5dev/public/bansystem.cpp @@ -16,7 +16,7 @@ void CBanSystem::operator[](std::pair pair) //----------------------------------------------------------------------------- void CBanSystem::Load() { - std::filesystem::path path = std::filesystem::current_path() /= "platform\\cfg\\banlist.cfg"; // Get current path + banlist.config + std::filesystem::path path = std::filesystem::current_path() /= "banlist.config"; // Get current path + banlist.config nlohmann::json jsIn; std::ifstream banFile(path, std::ios::in); // Parse ban list. @@ -67,7 +67,7 @@ void CBanSystem::Save() jsOut[std::to_string(i).c_str()]["originID"] = vsvBanList[i].second; // Populate originID field for this entry. } - std::filesystem::path path = std::filesystem::current_path() /= "platform\\cfg\\banlist.cfg"; // Get current path + banlist.config + std::filesystem::path path = std::filesystem::current_path() /= "banlist.config"; // Get current path + banlist.config std::ofstream outFile(path, std::ios::out | std::ios::trunc); // Write config file.. outFile << jsOut.dump(4); // Dump it into config file..