Skip to content

Commit

Permalink
bugfix: add missing dirs in macOS when generating them also
Browse files Browse the repository at this point in the history
- Inputrecordings and NVRAM directories were not included.
- Fixed case for Floppy Sounds dir in default macOS config
  • Loading branch information
midwan committed Nov 19, 2023
1 parent f636cd1 commit 82bf938
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conf/amiberry-osx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion src/osdep/amiberry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit 82bf938

Please sign in to comment.