chore: remove migration code (#2424)
This commit is contained in:
parent
3275459431
commit
8fa0583f05
@ -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<logger>("YimMenu", g_file_manager.get_project_file("./cout.log"));
|
||||
|
@ -1,17 +0,0 @@
|
||||
#pragma once
|
||||
#include <filesystem>
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user