#else /* WIN32 */\r
#define FA_LABEL 0x08 /* Volume label */\r
#define FA_DIREC 0x10 /* Directory */\r
-unsigned _cdecl _dos_getfileattr(const char *, unsigned *);\r
+unsigned _cdecl _dos_getfileattr(concptr , unsigned *);\r
#endif /* WIN32 */\r
\r
/*\r
struct _term_data\r
{\r
term t;\r
- cptr s;\r
+ concptr s;\r
HWND w;\r
DWORD dwStyle;\r
DWORD dwExStyle;\r
bool xtra_hack;\r
bool visible;\r
bool bizarre;\r
- cptr font_want;\r
- cptr font_file;\r
+ concptr font_want;\r
+ concptr font_file;\r
HFONT font_id;\r
int font_wid; //!< フォント横幅\r
int font_hgt; //!< フォント縦幅\r
/*\r
* An array of sound file names\r
*/\r
-static cptr sound_file[SOUND_MAX][SAMPLE_MAX];\r
+static concptr sound_file[SOUND_MAX][SAMPLE_MAX];\r
\r
#endif /* USE_SOUND */\r
\r
#ifdef USE_MUSIC\r
\r
#define SAMPLE_MUSIC_MAX 16\r
-static cptr music_file[MUSIC_BASIC_MAX][SAMPLE_MUSIC_MAX];\r
-static cptr dungeon_music_file[1000][SAMPLE_MUSIC_MAX];\r
-static cptr town_music_file[1000][SAMPLE_MUSIC_MAX];\r
-static cptr quest_music_file[1000][SAMPLE_MUSIC_MAX];\r
+static concptr music_file[MUSIC_BASIC_MAX][SAMPLE_MUSIC_MAX];\r
+static concptr dungeon_music_file[1000][SAMPLE_MUSIC_MAX];\r
+static concptr town_music_file[1000][SAMPLE_MUSIC_MAX];\r
+static concptr quest_music_file[1000][SAMPLE_MUSIC_MAX];\r
static bool can_use_music = FALSE;\r
\r
static MCI_OPEN_PARMS mop;\r
/*\r
* Full path to ANGBAND.INI\r
*/\r
-static cptr ini_file = NULL;\r
+static concptr ini_file = NULL;\r
\r
/*\r
* Name of application\r
*/\r
-static cptr AppName = "ANGBAND";\r
+static concptr AppName = "ANGBAND";\r
\r
/*\r
* Name of sub-window type\r
*/\r
-static cptr AngList = "AngList";\r
+static concptr AngList = "AngList";\r
\r
/*\r
* Directory names\r
*/\r
-static cptr ANGBAND_DIR_XTRA_GRAF;\r
-static cptr ANGBAND_DIR_XTRA_SOUND;\r
-static cptr ANGBAND_DIR_XTRA_MUSIC;\r
-static cptr ANGBAND_DIR_XTRA_HELP;\r
+static concptr ANGBAND_DIR_XTRA_GRAF;\r
+static concptr ANGBAND_DIR_XTRA_SOUND;\r
+static concptr ANGBAND_DIR_XTRA_MUSIC;\r
+static concptr ANGBAND_DIR_XTRA_HELP;\r
#if 0 /* #ifndef JP */\r
-static cptr ANGBAND_DIR_XTRA_FONT;\r
+static concptr ANGBAND_DIR_XTRA_FONT;\r
#endif\r
#ifdef USE_MUSIC\r
-static cptr ANGBAND_DIR_XTRA_MUSIC;\r
+static concptr ANGBAND_DIR_XTRA_MUSIC;\r
#endif\r
\r
\r
use_bg = 0;\r
return 0;\r
}\r
-#if 0 /* gomi */\r
- HDC wnddc, dcimage, dcbg;\r
- HBITMAP bmimage, bmimage_old, bmbg_old;\r
- int i, j;\r
-\r
- delete_bg();\r
-\r
- wnddc = GetDC(hwnd);\r
- dcimage = CreateCompatibleDC(wnddc);\r
- dcbg = CreateCompatibleDC(wnddc);\r
-\r
- bmimage = LoadImage(NULL, "bg.bmp", LR_LOADFROMFILE, 0, 0, 0);\r
- if (!bmimage) quit("bg.bmpが読みこめない!");\r
- bmimage_old = SelectObject(dcimage, bmimage);\r
-\r
- CreateCompatibleBitmap();\r
-\r
- ReleaseDC(hwnd, wnddc);\r
-#endif\r
use_bg = 1;\r
return 1;\r
}\r
/*\r
* Hack -- given a pathname, point at the filename\r
*/\r
-static cptr extract_file_name(cptr s)\r
+static concptr extract_file_name(concptr s)\r
{\r
- cptr p;\r
+ concptr p;\r
\r
/* Start at the end */\r
p = s + strlen(s) - 1;\r
/* Save results */\r
(*wp) = wid;\r
(*hp) = hgt;\r
-\r
- /* Result */\r
return (p);\r
}\r
#endif\r
/*\r
* Check for existance of a file\r
*/\r
-static bool check_file(cptr s)\r
+static bool check_file(concptr s)\r
{\r
char path[1024];\r
\r
/*\r
* Check for existance of a directory\r
*/\r
-static bool check_dir(cptr s)\r
+static bool check_dir(concptr s)\r
{\r
int i;\r
\r
/*\r
* Validate a file\r
*/\r
-static void validate_file(cptr s)\r
+static void validate_file(concptr s)\r
{\r
/* Verify or fail */\r
if (!check_file(s))\r
/*\r
* Validate a directory\r
*/\r
-static void validate_dir(cptr s, bool vital)\r
+static void validate_dir(concptr s, bool vital)\r
{\r
/* Verify or fail */\r
if (!check_dir(s))\r
static void save_prefs_aux(int i)\r
{\r
term_data *td = &data[i];\r
- char sec_name[128];\r
+ GAME_TEXT sec_name[128];\r
char buf[1024];\r
\r
RECT rc;\r
static void load_prefs_aux(int i)\r
{\r
term_data *td = &data[i];\r
- char sec_name[128];\r
+ GAME_TEXT sec_name[128];\r
char tmp[1024];\r
\r
int wid, hgt, posx, posy;\r
/* Initialize once */\r
char buf[1024];\r
BYTE wid, hgt, twid, thgt, ox, oy;\r
- cptr name;\r
+ concptr name;\r
\r
if (arg_graphics == GRAPHICS_ADAM_BOLT)\r
{\r
\r
/* Graphics available */\r
current_graphics_mode = arg_graphics;\r
-\r
- /* Result */\r
return (current_graphics_mode);\r
}\r
#endif /* USE_GRAPHICS */\r
/* Sound available */\r
can_use_music = TRUE;\r
}\r
-\r
- /* Result */\r
return (can_use_music);\r
}\r
\r
/* Sound available */\r
can_use_sound = TRUE;\r
}\r
-\r
- /* Result */\r
return (can_use_sound);\r
}\r
#endif /* USE_SOUND */\r
*\r
* Note that the "font name" must be capitalized!!!\r
*/\r
-static errr term_force_font(term_data *td, cptr path)\r
+static errr term_force_font(term_data *td, concptr path)\r
{\r
int wid, hgt;\r
\r
* what color it should be using to draw with, but perhaps simply changing\r
* it every time is not too inefficient. \r
*/\r
-static errr Term_text_win(int x, int y, int n, TERM_COLOR a, const char *s)\r
+static errr Term_text_win(int x, int y, int n, TERM_COLOR a, concptr s)\r
{\r
term_data *td = (term_data*)(Term->data);\r
RECT rc;\r
*\r
* If "graphics" is not available, we simply "wipe" the given grids.\r
*/\r
-static errr Term_pict_win(TERM_LEN x, TERM_LEN y, int n, const TERM_COLOR *ap, const char *cp, const TERM_COLOR *tap, const char *tcp)\r
+static errr Term_pict_win(TERM_LEN x, TERM_LEN y, int n, const TERM_COLOR *ap, concptr cp, const TERM_COLOR *tap, concptr tcp)\r
{\r
term_data *td = (term_data*)(Term->data);\r
\r
\r
/* Only in graphics mode */\r
if (!use_graphics) return;\r
-\r
- /* Clear screen */\r
Term_xtra_win_clear();\r
\r
td->map_tile_wid = (td->tile_wid * td->cols) / MAX_WID;\r
}\r
else\r
{\r
- /* Save Screen */\r
screen_save();\r
-\r
- /* Clear screen */\r
Term_clear();\r
\r
/* Display the scores */\r
\r
/* Forget the high score fd */\r
highscore_fd = -1;\r
-\r
- /* Load screen */\r
screen_load();\r
\r
/* Hack - Flush it */\r
\r
/* HACK - Redraw all windows */\r
p_ptr->window = 0xFFFFFFFF;\r
- window_stuff();\r
+ handle_stuff();\r
}\r
\r
td->size_hack = FALSE;\r
/*\r
* Display warning message (see "z-util.c")\r
*/\r
-static void hack_plog(cptr str)\r
+static void hack_plog(concptr str)\r
{\r
/* Give a warning */\r
if (str)\r
/*\r
* Display error message and quit (see "z-util.c")\r
*/\r
-static void hack_quit(cptr str)\r
+static void hack_quit(concptr str)\r
{\r
/* Give a warning */\r
if (str)\r
/*\r
* Display warning message (see "z-util.c")\r
*/\r
-static void hook_plog(cptr str)\r
+static void hook_plog(concptr str)\r
{\r
/* Warning */\r
if (str)\r
/*\r
* Display error message and quit (see "z-util.c")\r
*/\r
-static void hook_quit(cptr str)\r
+static void hook_quit(concptr str)\r
{\r
int i;\r
\r
HDC hdc;\r
MSG msg;\r
\r
- setlocale( LC_ALL, "ja_JP" );\r
+ setlocale(LC_ALL, "ja_JP.utf8");\r
\r
/* Unused */\r
(void)nCmdShow;\r