From 75157bad331bde9c91d7252aea6b6692441ecc41 Mon Sep 17 00:00:00 2001 From: Evanbowl <74565954+Evanbowl@users.noreply.github.com> Date: Sat, 27 Apr 2024 12:42:31 -0400 Subject: [PATCH] Blue Coin change --- modules/BlueCoinSystem/source/BlueCoinUtil.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/BlueCoinSystem/source/BlueCoinUtil.cpp b/modules/BlueCoinSystem/source/BlueCoinUtil.cpp index 6e0d2e8..2267e56 100644 --- a/modules/BlueCoinSystem/source/BlueCoinUtil.cpp +++ b/modules/BlueCoinSystem/source/BlueCoinUtil.cpp @@ -4,7 +4,6 @@ #include "BlueCoinUtil.h" #include "Game/Screen/GameSceneLayoutHolder.h" #include "Game/Screen/CounterLayoutControllerExt.h" -//#include "Util/ActorUtil.h" #include "Game/NPC/TalkMessageCtrl.h" #define BINSIZE 867 @@ -13,8 +12,13 @@ #define SPENT_LOCATION 861 #define TEXTBOX_LOCATION 864 +void* initializeBlueCoinArrayAndLoadArchive() { + BlueCoinUtil::initBlueCoinArray(); + return pt::loadArcAndFile("SystemData/BlueCoinIDRangeTable.arc", "/BlueCoinIDRangeTable.bcsv"); +} + BlueCoinData* gBlueCoinData; -void* gBlueCoinIDRangeTable = pt::loadArcAndFile("SystemData/BlueCoinIDRangeTable.arc", "/BlueCoinIDRangeTable.bcsv"); +void* gBlueCoinIDRangeTable = initializeBlueCoinArrayAndLoadArchive(); namespace BlueCoinUtil { void loadBlueCoinData() {