OSDN Git Service

[Refactor] #3281 fd_open() の引数をstring_view からpath に差し替えた
[hengbandforosx/hengbandosx.git] / src / core / scores.cpp
index 41dad18..396fccb 100644 (file)
@@ -360,7 +360,7 @@ void show_highclass(PlayerType *player_ptr)
 {
     screen_save();
     const auto &path = path_build(ANGBAND_DIR_APEX, "scores.raw");
-    highscore_fd = fd_open(path.string(), O_RDONLY);
+    highscore_fd = fd_open(path, O_RDONLY);
     if (highscore_fd < 0) {
         msg_print(_("スコア・ファイルが使用できません。", "Score file unavailable."));
         msg_print(nullptr);
@@ -439,7 +439,7 @@ void race_score(PlayerType *player_ptr, int race_num)
     /* rr9: TODO - pluralize the race */
     prt(std::string(_("最高の", "The Greatest of all the ")).append(race_info[race_num].title), 5, 15);
     const auto &path = path_build(ANGBAND_DIR_APEX, "scores.raw");
-    highscore_fd = fd_open(path.string(), O_RDONLY);
+    highscore_fd = fd_open(path, O_RDONLY);
     if (highscore_fd < 0) {
         msg_print(_("スコア・ファイルが使用できません。", "Score file unavailable."));
         msg_print(nullptr);