chore: remove migration code (#2424)

This commit is contained in:
Andreas Maerten 2023-11-16 23:43:04 +01:00 committed by GitHub
parent 3275459431
commit 8fa0583f05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 19 deletions

View File

@ -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"));

View File

@ -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);
}
}
}