From 82bf938a0d59d36c4ef5d56a9a24876b0b9a0cd2 Mon Sep 17 00:00:00 2001 From: Dimitris Panokostas Date: Sun, 19 Nov 2023 15:01:50 +0100 Subject: [PATCH] bugfix: add missing dirs in macOS when generating them also - Inputrecordings and NVRAM directories were not included. - Fixed case for Floppy Sounds dir in default macOS config --- conf/amiberry-osx.conf | 2 +- src/osdep/amiberry.cpp | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/conf/amiberry-osx.conf b/conf/amiberry-osx.conf index 0c65d3ebb..29c40ff34 100644 --- a/conf/amiberry-osx.conf +++ b/conf/amiberry-osx.conf @@ -5,7 +5,7 @@ retroarch_config=USERDIR/Documents/Amiberry/Configurations/retroarch.cfg whdboot_path=USERDIR/Documents/Amiberry/Whdboot/ logfile_path=USERDIR/Documents/Amiberry/amiberry.log rom_path=USERDIR/Documents/Amiberry/Kickstarts/ -floppy_sounds_dir=USERDIR/Documents/Amiberry/Data/floppy_sounds/ +floppy_sounds_dir=USERDIR/Documents/Amiberry/Data/Floppy_Sounds/ data_dir=USERDIR/Documents/Amiberry/Data/ saveimage_dir=USERDIR/Documents/Amiberry/Savestates/ inputrecordings_dir=USERDIR/Documents/Amiberry/Inputrecordings diff --git a/src/osdep/amiberry.cpp b/src/osdep/amiberry.cpp index f371325f4..a8b62c285 100644 --- a/src/osdep/amiberry.cpp +++ b/src/osdep/amiberry.cpp @@ -3394,7 +3394,11 @@ void init_macos_amiberry_folders(std::string macos_amiberry_directory) if (!my_existsdir(directory.c_str())) my_mkdir(directory.c_str()); - directory = macos_amiberry_directory + "/Docs"; + directory = macos_amiberry_directory + "/Inputrecordings"; + if (!my_existsdir(directory.c_str())) + my_mkdir(directory.c_str()); + + directory = macos_amiberry_directory + "/Nvram"; if (!my_existsdir(directory.c_str())) my_mkdir(directory.c_str()); }