From d514d135a7d3521e16e9ea599690e36e95c5c1aa Mon Sep 17 00:00:00 2001 From: BearOso Date: Tue, 18 Jun 2024 15:38:21 -0500 Subject: [PATCH] Gtk: Create config directory in get_config_dir if it doesn't exist. --- gtk/src/gtk_config.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gtk/src/gtk_config.cpp b/gtk/src/gtk_config.cpp index 21b9a367..cd3bfd40 100644 --- a/gtk/src/gtk_config.cpp +++ b/gtk/src/gtk_config.cpp @@ -46,6 +46,9 @@ std::string get_config_dir() config /= ".config/snes9x"; } + if (!fs::exists(config)) + fs::create_directories(config); + return config; }