summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMake/lus-cvars.cmake2
m---------libultraship0
-rw-r--r--soh/soh/OTRGlobals.cpp10
-rw-r--r--soh/soh/SohGui/Menu.h2
-rw-r--r--soh/soh/SohGui/SohGui.cpp2
-rw-r--r--soh/soh/SohGui/SohMenu.h8
-rw-r--r--soh/soh/SohGui/SohMenuBar.cpp2
7 files changed, 13 insertions, 13 deletions
diff --git a/CMake/lus-cvars.cmake b/CMake/lus-cvars.cmake
index f6a036479..c64782e75 100644
--- a/CMake/lus-cvars.cmake
+++ b/CMake/lus-cvars.cmake
@@ -1,7 +1,5 @@
set(CVAR_VSYNC_ENABLED "${CVAR_PREFIX_SETTING}.VsyncEnabled" CACHE STRING "")
set(CVAR_Z_FIGHTING_MODE "${CVAR_PREFIX_SETTING}.ZFightingMode" CACHE STRING "")
-set(CVAR_NEW_FILE_DROPPED "${CVAR_PREFIX_GENERAL}.NewFileDropped" CACHE STRING "")
-set(CVAR_DROPPED_FILE "${CVAR_PREFIX_GENERAL}.DroppedFile" CACHE STRING "")
set(CVAR_INTERNAL_RESOLUTION "${CVAR_PREFIX_SETTING}.InternalResolution" CACHE STRING "")
set(CVAR_MSAA_VALUE "${CVAR_PREFIX_SETTING}.MSAAValue" CACHE STRING "")
set(CVAR_SDL_WINDOWED_FULLSCREEN "${CVAR_PREFIX_SETTING}.SdlWindowedFullscreen" CACHE STRING "")
diff --git a/libultraship b/libultraship
-Subproject ce38cb6883ca030e61749eae584b6d9a7cb7bca
+Subproject 7135d1494e74c38aa7fca734b92ec50bba543b4
diff --git a/soh/soh/OTRGlobals.cpp b/soh/soh/OTRGlobals.cpp
index 935c388d4..bcd23c260 100644
--- a/soh/soh/OTRGlobals.cpp
+++ b/soh/soh/OTRGlobals.cpp
@@ -40,6 +40,7 @@
#include "z64.h"
#include "macros.h"
#include "Fonts.h"
+#include "window/FileDropMgr.h"
#include "window/gui/resource/Font.h"
#include <utils/StringHelper.h>
#include "Enhancements/custom-message/CustomMessageManager.h"
@@ -307,6 +308,7 @@ OTRGlobals::OTRGlobals() {
context->InitGfxDebugger();
context->InitConfiguration();
context->InitConsoleVariables();
+ context->InitFileDropMgr();
// tell LUS to reserve 3 SoH specific threads (Game, Audio, Save)
context->InitResourceManager(OTRFiles, {}, 3);
@@ -1434,13 +1436,13 @@ extern "C" void Graph_StartFrame() {
}
#endif
- if (CVarGetInteger(CVAR_NEW_FILE_DROPPED, 0)) {
- std::string filePath = SohUtils::Sanitize(CVarGetString(CVAR_DROPPED_FILE, ""));
+ auto dropMgr = Ship::Context::GetInstance()->GetFileDropMgr();
+ if (dropMgr->FileDropped()) {
+ std::string filePath = dropMgr->GetDroppedFile();
if (!filePath.empty()) {
GameInteractor::Instance->ExecuteHooks<GameInteractor::OnFileDropped>(filePath);
}
- CVarClear(CVAR_NEW_FILE_DROPPED);
- CVarClear(CVAR_DROPPED_FILE);
+ dropMgr->ClearDroppedFile();
}
}
diff --git a/soh/soh/SohGui/Menu.h b/soh/soh/SohGui/Menu.h
index 139f90030..a7facffd1 100644
--- a/soh/soh/SohGui/Menu.h
+++ b/soh/soh/SohGui/Menu.h
@@ -2,7 +2,7 @@
#define MENU_H
#include <libultraship/libultraship.h>
-#include "graphic/Fast3D/gfx_rendering_api.h"
+#include "graphic/Fast3D/backends/gfx_rendering_api.h"
#include "MenuTypes.h"
namespace Ship {
diff --git a/soh/soh/SohGui/SohGui.cpp b/soh/soh/SohGui/SohGui.cpp
index f4088b6a5..e9b27eda1 100644
--- a/soh/soh/SohGui/SohGui.cpp
+++ b/soh/soh/SohGui/SohGui.cpp
@@ -13,7 +13,7 @@
#include <libultraship/libultraship.h>
#ifdef __APPLE__
-#include "graphic/Fast3D/gfx_metal.h"
+#include "graphic/Fast3D/backends/gfx_metal.h"
#endif
#ifdef __SWITCH__
diff --git a/soh/soh/SohGui/SohMenu.h b/soh/soh/SohGui/SohMenu.h
index eb3b1f4f7..362cc4721 100644
--- a/soh/soh/SohGui/SohMenu.h
+++ b/soh/soh/SohGui/SohMenu.h
@@ -4,7 +4,7 @@
#include <libultraship/libultraship.h>
#include "UIWidgets.hpp"
#include "Menu.h"
-#include "graphic/Fast3D/gfx_rendering_api.h"
+#include "graphic/Fast3D/backends/gfx_rendering_api.h"
#include "soh/cvar_prefixes.h"
#include "soh/Enhancements/enhancementTypes.h"
#include "soh/Enhancements/Presets/Presets.h"
@@ -53,9 +53,9 @@ static const std::unordered_map<int32_t, const char*> menuThemeOptions = {
};
static const std::unordered_map<int32_t, const char*> textureFilteringMap = {
- { FILTER_THREE_POINT, "Three-Point" },
- { FILTER_LINEAR, "Linear" },
- { FILTER_NONE, "None" },
+ { Fast::FILTER_THREE_POINT, "Three-Point" },
+ { Fast::FILTER_LINEAR, "Linear" },
+ { Fast::FILTER_NONE, "None" },
};
static const std::unordered_map<int32_t, const char*> logLevels = {
diff --git a/soh/soh/SohGui/SohMenuBar.cpp b/soh/soh/SohGui/SohMenuBar.cpp
index aa747c168..418d02eb5 100644
--- a/soh/soh/SohGui/SohMenuBar.cpp
+++ b/soh/soh/SohGui/SohMenuBar.cpp
@@ -5,7 +5,7 @@
#include <libultraship/libultraship.h>
#include "UIWidgets.hpp"
#include "include/z64audio.h"
-#include "graphic/Fast3D/gfx_rendering_api.h"
+#include "graphic/Fast3D/backends/gfx_rendering_api.h"
#include "soh/OTRGlobals.h"
#include "soh/SaveManager.h"
#include "z64.h"