OSDN Git Service

Mac: adapt to upstream's changes to angband_fopen()
authorEric Branlund <ebranlund@fastmail.com>
Tue, 25 Apr 2023 01:06:10 +0000 (19:06 -0600)
committerEric Branlund <ebranlund@fastmail.com>
Tue, 25 Apr 2023 01:06:10 +0000 (19:06 -0600)
src/cocoa/AngbandAudio.mm
src/system/grafmode.cpp

index c786606..4e0ed94 100644 (file)
@@ -560,7 +560,7 @@ static AngbandAudioManager *_sharedManager = nil;
 
        /* 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");
@@ -738,7 +738,7 @@ static AngbandAudioManager *_sharedManager = nil;
 
        /* 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");
index d7d6ee4..ceac4dd 100644 (file)
@@ -465,7 +465,7 @@ bool init_graphics_modes(void) {
     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;