From 25b1afbc260484b35445ba3facc7de5cdac31044 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Sat, 23 Dec 2023 14:32:51 +0300 Subject: [PATCH] settings files location fix --- src/voxel_engine.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/voxel_engine.cpp b/src/voxel_engine.cpp index cc0916779..0023b7366 100644 --- a/src/voxel_engine.cpp +++ b/src/voxel_engine.cpp @@ -22,12 +22,13 @@ int main(int argc, char** argv) { return EXIT_SUCCESS; platform::configure_encoding(); + std::filesystem::path userfiles = paths.getUserfiles(); try { EngineSettings settings; std::unique_ptr wrapper (create_wrapper(settings)); - path settings_file = platform::get_settings_file(); - path controls_file = platform::get_controls_file(); + path settings_file = userfiles/platform::get_settings_file(); + path controls_file = userfiles/platform::get_controls_file(); if (std::filesystem::is_regular_file(settings_file)) { std::cout << "-- loading settings" << std::endl; std::string text = files::read_string(settings_file);