it's still looking for randomizer/main.hpp

This commit is contained in:
briaguya 2022-06-01 15:17:12 -04:00
commit 73e989569d
3 changed files with 28 additions and 5 deletions

View file

@ -41,8 +41,10 @@ IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler(HWND hWnd, UINT msg, WPAR
#endif #endif
// #include "../../soh/include/randomizer/main.cpp" // #include "../../soh/include/randomizer/main.cpp"
#include "../../soh/include/randomizer/menu.hpp" // #include "../../soh/include/randomizer/main.hpp"
#include "../../soh/soh/OTRGlobals.h" #include "../../soh/include/randomizer/rando_main.hpp"
#include "../../soh/include/randomizer/spoiler_log.hpp"
// #include "../../soh/soh/OTRGlobals.h"
using namespace Ship; using namespace Ship;
bool oldCursorState = true; bool oldCursorState = true;
@ -1034,9 +1036,9 @@ namespace SohImGui {
EnhancementCheckbox("Enable Randomizer", "gRandomizer"); EnhancementCheckbox("Enable Randomizer", "gRandomizer");
if (ImGui::Button("Generate Seed") && CVar_GetS32("gRandomizer", 0) != 0) { if (ImGui::Button("Generate Seed") && CVar_GetS32("gRandomizer", 0) != 0) {
GenerateRandomizer(); RandoMain::GenerateRando();
gSpoilerData = GetSpoilerData(); // gSpoilerData = GetSpoilerData();
ParseItemLocations(gSpoilerData); // ParseItemLocations(gSpoilerData);
} }
ImGui::EndMenu(); ImGui::EndMenu();

View file

@ -0,0 +1,16 @@
#include "menu.hpp"
#include "hint_list.hpp"
#include "item_list.hpp"
#include "item_location.hpp"
#include "location_access.hpp"
#include "rando_main.hpp"
#define TICKS_PER_SEC 268123480.0
int RandoMain::GenerateRando() {
HintTable_Init();
ItemTable_Init();
LocationTable_Init();
GenerateRandomizer();
return 0;
}

View file

@ -0,0 +1,5 @@
#pragma once
namespace RandoMain {
int GenerateRando();
}