Skip to content

Commit

Permalink
settings files location fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailRis committed Dec 23, 2023
1 parent 5441610 commit 25b1afb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/voxel_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<toml::Wrapper> 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);
Expand Down

0 comments on commit 25b1afb

Please sign in to comment.