Skip to content

Commit

Permalink
[Refactor] #3236 ANGBAND_DIR_XTRA をconcptr からpath に差し替えた
Browse files Browse the repository at this point in the history
  • Loading branch information
Hourier authored and sikabane-works committed Jan 28, 2024
1 parent 29e28f9 commit 9ece32f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/main-win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,6 @@ static void load_prefs(void)
GetPrivateProfileStringA("Angband", "BackGroundBitmap", DEFAULT_BG_FILENAME, wallpaper_file, 1023, ini_file);
char savefile_buf[1024]{};
GetPrivateProfileStringA("Angband", "SaveFile", "", savefile_buf, 1023, ini_file);

if (strncmp(".\\", savefile_buf, 2) == 0) {
std::string angband_dir_str(ANGBAND_DIR.string());
const auto path_length = angband_dir_str.length() - 4; // "\lib" を除く.
Expand Down
2 changes: 1 addition & 1 deletion src/main-win/graphics-win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ULONG_PTR gdiplusToken;
// interface object
Graphics graphic{};

concptr ANGBAND_DIR_XTRA_GRAF;
std::filesystem::path ANGBAND_DIR_XTRA_GRAF;

/*!
* 現在使用中のタイルID(0ならば未使用)
Expand Down
4 changes: 2 additions & 2 deletions src/main-win/graphics-win.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

#include "system/h-type.h"

#include <filesystem>
#include <windows.h>

/*
Expand Down Expand Up @@ -105,7 +105,7 @@ extern Graphics graphic;
/*
* Directory names
*/
extern concptr ANGBAND_DIR_XTRA_GRAF;
extern std::filesystem::path ANGBAND_DIR_XTRA_GRAF;

/*!
* @brief Creates a GDI bitmap from an image file
Expand Down

0 comments on commit 9ece32f

Please sign in to comment.