Skip to content

Commit

Permalink
create config directory if it doesnt exist
Browse files Browse the repository at this point in the history
  • Loading branch information
ottojo committed Jul 19, 2024
1 parent 83f37b5 commit bd4c94b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rig_reconfigure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ int main(int argc, char *argv[]) {
const std::string config_file_path = config_file_dir.string() + "/imgui.ini";

if (!std::filesystem::exists(config_file_dir)) {
std::filesystem::create_directory(config_file_dir);
std::filesystem::create_directories(config_file_dir);
}

ImGui::GetIO().IniFilename = config_file_path.c_str(); // important for automatic saving of .ini file
Expand Down

0 comments on commit bd4c94b

Please sign in to comment.