mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-01-09 02:43:38 +08:00
feat(Renderer): Use file manager instead of manually getting file
This commit is contained in:
parent
ff0dcd7723
commit
86522fa238
@ -1,6 +1,6 @@
|
||||
#include "common.hpp"
|
||||
#include "file_manager.hpp"
|
||||
#include "fonts/fonts.hpp"
|
||||
#include "logger.hpp"
|
||||
#include "gui.hpp"
|
||||
#include "pointers.hpp"
|
||||
#include "renderer.hpp"
|
||||
@ -28,18 +28,7 @@ namespace big
|
||||
|
||||
m_d3d_device->GetImmediateContext(m_d3d_device_context.GetAddressOf());
|
||||
|
||||
auto file_path = std::filesystem::path(std::getenv("appdata"));
|
||||
file_path /= "BigBaseV2";
|
||||
if (!std::filesystem::exists(file_path))
|
||||
{
|
||||
std::filesystem::create_directory(file_path);
|
||||
}
|
||||
else if (!std::filesystem::is_directory(file_path))
|
||||
{
|
||||
std::filesystem::remove(file_path);
|
||||
std::filesystem::create_directory(file_path);
|
||||
}
|
||||
file_path /= "imgui.ini";
|
||||
auto file_path = g_file_manager->get_project_file("./imgui.ini").get_path();
|
||||
|
||||
ImGuiContext* ctx = ImGui::CreateContext();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user