summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTakaRikka <38417346+TakaRikka@users.noreply.github.com>2025-10-06 02:48:39 -0700
committerGitHub <noreply@github.com>2025-10-06 12:48:39 +0300
commit23a6cf91cd6acf97b4b78bf351c0845a39f84989 (patch)
treeefef0a1ebd4a16c37de9f528576cc722c00a947a /src
parentb3d30467bf46430ecb28046a8eb14cd30803befc (diff)
start shield final config (#2726)
* checkpoint * shield final half building
Diffstat (limited to 'src')
-rw-r--r--src/d/d_save.cpp8
-rw-r--r--src/lingcod/LingcodPatch.c29
2 files changed, 37 insertions, 0 deletions
diff --git a/src/d/d_save.cpp b/src/d/d_save.cpp
index d2465d8967..8744db4470 100644
--- a/src/d/d_save.cpp
+++ b/src/d/d_save.cpp
@@ -15,6 +15,10 @@
#include "f_op/f_op_scene_mng.h"
#include "stdio.h"
+#if VERSION == VERSION_SHIELD
+#include "lingcod/lingcod.h"
+#endif
+
/* 80032918-80032958 02D258 0040+00 4/4 0/0 0/0 .text dSv_item_rename__FUc */
static u8 dSv_item_rename(u8 i_itemNo) {
switch (i_itemNo) {
@@ -1886,6 +1890,10 @@ int dSv_info_c::memory_to_card(char* card_ptr, int dataNum) {
bool lantern_not_recovered = false;
bool tmp_lantern_check = false;
u16 current_lantern_oil = 0;
+
+ #if VERSION == VERSION_SHIELD
+ lingcod_revalidateNVSI();
+ #endif
// If haven't gotten then lantern back from the monkey
if (!dComIfGs_isEventBit((u16)dSv_event_flag_c::saveBitLabels[226])) {
diff --git a/src/lingcod/LingcodPatch.c b/src/lingcod/LingcodPatch.c
new file mode 100644
index 0000000000..ef606c2264
--- /dev/null
+++ b/src/lingcod/LingcodPatch.c
@@ -0,0 +1,29 @@
+#include "lingcod/lingcod.h"
+
+int lingcod_getIniState() {
+ return 0;
+}
+
+int NVGXCreateGroup() {
+ return -1;
+}
+
+int NVGXCreateSubGroup() {
+ return -1;
+}
+
+void NVGXReleaseGroup() {
+ return;
+}
+
+float lingcod_getBloomScale() {
+ return 1.0f;
+}
+
+float lingcod_getDoFScale() {
+ return 1.0f;
+}
+
+int lingcod_fireGameEventEx() {
+ return 0;
+}