{
TERM_LEN wid, hgt;
term_get_size(&wid, &hgt);
- auto *fff = angband_fopen(filename, FileOpenMode::WRITE, false,
- FileOpenType::HTML);
- if (!check_screen_html_can_open(fff, filename, need_message)) {
+ auto *fff = angband_fopen(path, FileOpenMode::WRITE, false, FileOpenType::HTML);
+ if (!check_screen_html_can_open(fff, path, need_message)) {
return;
}
{
std::stringstream ss;
char tmp_val[12] = "";
- std::to_chars(std::begin(tmp_val), std::end(tmp_val) - 1, *value);
- st << prompt << "(" << min << "-" << max << "): ";
+ std::to_chars(std::begin(tmp_val), std::end(tmp_val) - 1, initial_value);
+ ss << prompt << "(" << min << "-" << max << "): ";
auto digit = std::max(std::to_string(min).length(), std::to_string(max).length());
while (true) {
if (!get_string(ss.str().data(), tmp_val, digit)) {