/* Find and open the config file. */
path_build(path, sizeof(path), sound_dir, "sound.cfg");
- fff = angband_fopen(path, "r");
+ fff = angband_fopen(path, FileOpenMode::READ);
if (!fff) {
NSLog(@"The sound configuration file could not be opened");
/* Find and open the config file. */
path_build(path, sizeof(path), music_dir, "music.cfg");
- fff = angband_fopen(path, "r");
+ fff = angband_fopen(path, FileOpenMode::READ);
if (!fff) {
NSLog(@"The music configuration file could not be opened");
gps.dir_len = strlen(line);
path_build(buf, sizeof(buf), line, "list.txt");
- f = angband_fopen(buf, "r");
+ f = angband_fopen(buf, FileOpenMode::READ);
if (!f) {
msg_format("Cannot open '%s'.", buf);
gps.result = 1;