diff --git a/src/main.cpp b/src/main.cpp index 7ac72361..69991324 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -34,7 +34,6 @@ #include "services/vehicle/xml_vehicles_service.hpp" #include "services/xml_maps/xml_map_service.hpp" #include "thread_pool.hpp" -#include "util/migrate.hpp" #include "version.hpp" @@ -56,7 +55,6 @@ BOOL APIENTRY DllMain(HMODULE hmod, DWORD reason, PVOID) std::filesystem::path base_dir = std::getenv("appdata"); base_dir /= "YimMenu"; - do_migration(base_dir); g_file_manager.init(base_dir); auto logger_instance = std::make_unique("YimMenu", g_file_manager.get_project_file("./cout.log")); diff --git a/src/util/migrate.hpp b/src/util/migrate.hpp deleted file mode 100644 index 7a8ed535..00000000 --- a/src/util/migrate.hpp +++ /dev/null @@ -1,17 +0,0 @@ -#pragma once -#include - -namespace big -{ - void do_migration(const std::filesystem::path& current_dir) - { - std::filesystem::path old_dir = std::getenv("appdata"); - old_dir /= "BigBaseV2"; - - if (exists(old_dir) && !exists(current_dir)) - { - LOG(INFO) << "YimMenu folder does not exist, migrating to new folder."; - std::filesystem::copy(old_dir, current_dir, std::filesystem::copy_options::recursive); - } - } -} \ No newline at end of file