void exe_cmd_save_screen_html(const std::filesystem::path &path, bool need_message)
{
const auto &[wid, hgt] = term_get_size();
- auto *fff = angband_fopen(path, FileOpenMode::WRITE);
+ auto *fff = angband_fopen(path, FileOpenMode::WRITE, false, FileOpenType::HTML);
if (!check_screen_html_can_open(fff, path, need_message)) {
return;
}
static void exe_cmd_save_screen_html_with_naming()
{
const auto filename = input_string(_("ファイル名: ", "File name: "), 80, "screen.html");
- if (!filename.has_value()) {
+ if (!filename) {
return;
}
- auto path = path_build(ANGBAND_DIR_USER, filename.value());
+ auto path = path_build(ANGBAND_DIR_USER, *filename);
msg_print(nullptr);
exe_cmd_save_screen_html(path, true);
}