From a27b2496d469f4b146a38b2ef0fe617afdd9e171 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Sun, 23 Jul 2023 10:25:58 +0300 Subject: [PATCH] Add bookmarkExit --- src/mapper/mapper.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/mapper/mapper.cc b/src/mapper/mapper.cc index 97c9b42..df8e57e 100644 --- a/src/mapper/mapper.cc +++ b/src/mapper/mapper.cc @@ -17,6 +17,7 @@ namespace fallout { +static int bookmarkExit(); static void bookmarkHide(); static void bookmarkUnHide(); static int categoryInit(); @@ -49,6 +50,19 @@ unsigned char* tool; // 0x6EC4AC int tool_win; +// 0x4875B8 +int bookmarkExit() +{ + if (bookmarkWin == -1) { + return -1; + } + + windowDestroy(bookmarkWin); + bookmarkWin = -1; + + return 0; +} + // 0x4875E0 void bookmarkHide() {