Skip to content

Commit

Permalink
Rename data folder from performance_overhaul to plugins/cyber_engine_…
Browse files Browse the repository at this point in the history
…tweaks
  • Loading branch information
maximegmd committed Dec 15, 2020
1 parent 3d165f3 commit 3b39403
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ Options::Options(HMODULE aModule)
return;

Path = Path.parent_path().parent_path();
Path /= "performance_overhaul/";
Path /= "plugins";
Path /= "cyber_engine_tweaks/";

std::error_code ec;
create_directories(Path, ec);

const auto rotatingLogger = std::make_shared<spdlog::sinks::rotating_file_sink_mt>((Path / "performance_overhaul.log").string(), 1048576 * 5, 3);
const auto rotatingLogger = std::make_shared<spdlog::sinks::rotating_file_sink_mt>((Path / "cyber_engine_tweaks.log").string(), 1048576 * 5, 3);

const auto logger = std::make_shared<spdlog::logger>("", spdlog::sinks_init_list{ rotatingLogger });
logger->flush_on(spdlog::level::debug);
Expand Down

0 comments on commit 3b39403

Please sign in to comment.