follow-up in seldom-used places

This commit is contained in:
nhmall
2025-11-08 14:53:50 -05:00
parent d5658018ac
commit 4dfdeb8e92
6 changed files with 6 additions and 6 deletions

View File

@@ -2098,7 +2098,7 @@ amii_update_inventory()
if (WIN_INVEN != WIN_ERR && (cw = amii_wins[WIN_INVEN]) if (WIN_INVEN != WIN_ERR && (cw = amii_wins[WIN_INVEN])
&& cw->type == NHW_MENU && cw->win) { && cw->type == NHW_MENU && cw->win) {
display_inventory(NULL, FALSE); repopulate_perminvent();
} }
} }

View File

@@ -1147,7 +1147,7 @@ mswin_select_menu(winid wid, int how, MENU_ITEM_P **selected)
/* /*
-- Indicate to the window port that the inventory has been changed. -- Indicate to the window port that the inventory has been changed.
-- Merely calls display_inventory() for window-ports that leave the -- Merely calls repopulate_perminvent() for window-ports that leave the
window up, otherwise empty. window up, otherwise empty.
*/ */
void void

View File

@@ -4850,7 +4850,7 @@ void NetHackQtBind::qt_update_inventory()
main->updateInventory(); main->updateInventory();
/* doesn't work yet /* doesn't work yet
if (program_state.something_worth_saving && iflags.perm_invent) if (program_state.something_worth_saving && iflags.perm_invent)
display_inventory(NULL, FALSE); repopulate_perminvent();
*/ */
} }

View File

@@ -786,7 +786,7 @@ gnome_select_menu(winid wid, int how, MENU_ITEM_P **selected)
/* /*
-- Indicate to the window port that the inventory has been changed. -- Indicate to the window port that the inventory has been changed.
-- Merely calls display_inventory() for window-ports that leave the -- Merely calls repopulate_perminvent() for window-ports that leave the
window up, otherwise empty. window up, otherwise empty.
*/ */
void void

View File

@@ -810,7 +810,7 @@ EM_JS(void, js_helpers_init, (), {
// used by update_inventory // used by update_inventory
function displayInventory() { function displayInventory() {
// Asyncify.handleAsync(async () => { // Asyncify.handleAsync(async () => {
return _display_inventory(0, 0); return _repopulate_perminvent();
// }); // });
} }

View File

@@ -275,7 +275,7 @@ EMCC_LFLAGS += -s ALLOW_TABLE_GROWTH
EMCC_LFLAGS += -s ASYNCIFY -s ASYNCIFY_IMPORTS='["local_callback"]' EMCC_LFLAGS += -s ASYNCIFY -s ASYNCIFY_IMPORTS='["local_callback"]'
EMCC_LFLAGS += -O3 EMCC_LFLAGS += -O3
EMCC_LFLAGS += -s MODULARIZE EMCC_LFLAGS += -s MODULARIZE
EMCC_LFLAGS += -s EXPORTED_FUNCTIONS='["_main", "_shim_graphics_set_callback", "_display_inventory", "_malloc"]' EMCC_LFLAGS += -s EXPORTED_FUNCTIONS='["_main", "_shim_graphics_set_callback", "_repopulate_perminvent", "_malloc"]'
EMCC_LFLAGS += -s EXPORTED_RUNTIME_METHODS='["cwrap", "ccall", "addFunction", \ EMCC_LFLAGS += -s EXPORTED_RUNTIME_METHODS='["cwrap", "ccall", "addFunction", \
"removeFunction", "UTF8ToString", "stringToUTF8", "getValue", \ "removeFunction", "UTF8ToString", "stringToUTF8", "getValue", \
"setValue", "ENV", "FS", "IDBFS"]' "setValue", "ENV", "FS", "IDBFS"]'