From 4dfdeb8e92a0930ccc6aa20639f992fcdf8eb7c7 Mon Sep 17 00:00:00 2001 From: nhmall Date: Sat, 8 Nov 2025 14:53:50 -0500 Subject: [PATCH] follow-up in seldom-used places --- outdated/sys/amiga/winfuncs.c | 2 +- outdated/sys/wince/mswproc.c | 2 +- outdated/win/Qt3/qt3_win.cpp | 2 +- outdated/win/gnome/gnbind.c | 2 +- sys/libnh/libnhmain.c | 2 +- sys/unix/hints/include/cross-pre2.370 | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/outdated/sys/amiga/winfuncs.c b/outdated/sys/amiga/winfuncs.c index 28a811ba7..9907ce1c6 100644 --- a/outdated/sys/amiga/winfuncs.c +++ b/outdated/sys/amiga/winfuncs.c @@ -2098,7 +2098,7 @@ amii_update_inventory() if (WIN_INVEN != WIN_ERR && (cw = amii_wins[WIN_INVEN]) && cw->type == NHW_MENU && cw->win) { - display_inventory(NULL, FALSE); + repopulate_perminvent(); } } diff --git a/outdated/sys/wince/mswproc.c b/outdated/sys/wince/mswproc.c index 8011991bc..44106e616 100644 --- a/outdated/sys/wince/mswproc.c +++ b/outdated/sys/wince/mswproc.c @@ -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. - -- Merely calls display_inventory() for window-ports that leave the + -- Merely calls repopulate_perminvent() for window-ports that leave the window up, otherwise empty. */ void diff --git a/outdated/win/Qt3/qt3_win.cpp b/outdated/win/Qt3/qt3_win.cpp index 26e46c4bb..9adde0fe9 100644 --- a/outdated/win/Qt3/qt3_win.cpp +++ b/outdated/win/Qt3/qt3_win.cpp @@ -4850,7 +4850,7 @@ void NetHackQtBind::qt_update_inventory() main->updateInventory(); /* doesn't work yet if (program_state.something_worth_saving && iflags.perm_invent) - display_inventory(NULL, FALSE); + repopulate_perminvent(); */ } diff --git a/outdated/win/gnome/gnbind.c b/outdated/win/gnome/gnbind.c index a298af5a0..9c193c625 100644 --- a/outdated/win/gnome/gnbind.c +++ b/outdated/win/gnome/gnbind.c @@ -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. - -- Merely calls display_inventory() for window-ports that leave the + -- Merely calls repopulate_perminvent() for window-ports that leave the window up, otherwise empty. */ void diff --git a/sys/libnh/libnhmain.c b/sys/libnh/libnhmain.c index 562de1c78..44765987e 100644 --- a/sys/libnh/libnhmain.c +++ b/sys/libnh/libnhmain.c @@ -810,7 +810,7 @@ EM_JS(void, js_helpers_init, (), { // used by update_inventory function displayInventory() { // Asyncify.handleAsync(async () => { - return _display_inventory(0, 0); + return _repopulate_perminvent(); // }); } diff --git a/sys/unix/hints/include/cross-pre2.370 b/sys/unix/hints/include/cross-pre2.370 index df4ef6105..89434556a 100644 --- a/sys/unix/hints/include/cross-pre2.370 +++ b/sys/unix/hints/include/cross-pre2.370 @@ -275,7 +275,7 @@ EMCC_LFLAGS += -s ALLOW_TABLE_GROWTH EMCC_LFLAGS += -s ASYNCIFY -s ASYNCIFY_IMPORTS='["local_callback"]' EMCC_LFLAGS += -O3 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", \ "removeFunction", "UTF8ToString", "stringToUTF8", "getValue", \ "setValue", "ENV", "FS", "IDBFS"]'