static void load_prefs(void)
{
arg_graphics = (byte)GetPrivateProfileIntA("Angband", "Graphics", static_cast<byte>(graphics_mode::GRAPHICS_NONE), ini_file);
- arg_bigtile = (GetPrivateProfileIntA("Angband", "Bigtile", FALSE, ini_file) != 0);
+ arg_bigtile = (GetPrivateProfileIntA("Angband", "Bigtile", false, ini_file) != 0);
use_bigtile = arg_bigtile;
arg_sound = (GetPrivateProfileIntA("Angband", "Sound", 0, ini_file) != 0);
arg_music = (GetPrivateProfileIntA("Angband", "Music", 0, ini_file) != 0);
if (GetKeyState(VK_MENU) & 0x8000)
ma = true;
- term_no_press = (ma) ? TRUE : false;
+ term_no_press = (ma) ? true : false;
if (special_key[(byte)(wParam)] || (ma && !ignore_key[(byte)(wParam)])) {
- bool ext_key = (lParam & 0x1000000L) ? TRUE : false;
+ bool ext_key = (lParam & 0x1000000L) ? true : false;
bool numpad = false;
term_keypress(31);
for (int i = 1; i < MAX_TERM_DATA; i++) {
if (data[i].visible) {
- if (wParam == TRUE) {
+ if (wParam == 1) {
ShowWindow(data[i].w, SW_SHOWNA);
} else {
ShowWindow(data[i].w, SW_HIDE);
if (is_already_running()) {
MessageBoxW(
NULL, _(L"変愚蛮怒はすでに起動しています。", L"Hengband is already running."), _(L"エラー!", L"Error"), MB_ICONEXCLAMATION | MB_OK | MB_ICONSTOP);
- return false;
+ return 0;
}
command_line.handle();
term_flush();
if (movie_in_progress) {
// selected movie
- play_game(p_ptr, FALSE, true);
+ play_game(p_ptr, false, true);
} else if (savefile[0] == '\0') {
// new game
- play_game(p_ptr, TRUE, false);
+ play_game(p_ptr, true, false);
} else {
// selected savefile
- play_game(p_ptr, FALSE, false);
+ play_game(p_ptr, false, false);
}
quit(NULL);