Skip to content

Commit

Permalink
Merge pull request #1 from briaguya-ai/lus-cleanup-20-plzbuild
Browse files Browse the repository at this point in the history
Address platform specific issues
  • Loading branch information
Kenix3 authored Aug 22, 2022
2 parents bee02c6 + be009f0 commit dec266d
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions libultraship/libultraship/Console.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include "Utils/StringHelper.h"
#include "Lib/ImGui/imgui_internal.h"
#include "Utils.h"
#include <sstream>

namespace Ship {
std::string BuildUsage(const CommandEntry& entry) {
Expand Down
1 change: 0 additions & 1 deletion libultraship/libultraship/Lib/Fast3D/gfx_gx2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

#include "gfx_cc.h"
#include "gfx_rendering_api.h"
#include "../../GlobalCtx2.h"
#include "gfx_pc.h"
#include "gfx_wiiu.h"

Expand Down
1 change: 0 additions & 1 deletion libultraship/libultraship/WiiUController.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#ifdef __WIIU__
#include "WiiUController.h"
#include "GlobalCtx2.h"
#include "Window.h"
#include "ImGuiImpl.h"

Expand Down
1 change: 0 additions & 1 deletion libultraship/libultraship/WiiUGamepad.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#ifdef __WIIU__
#include "WiiUGamepad.h"
#include "GlobalCtx2.h"
#include "ImGuiImpl.h"

#include "WiiUImpl.h"
Expand Down
2 changes: 1 addition & 1 deletion libultraship/libultraship/WiiUImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ void Update() {

// rescan devices if connection state changed
if (rescan) {
Ship::GlobalCtx2::GetInstance()->GetWindow()->GetControlDeck()->ScanPhysicalDevices();
Window::GetInstance()->GetControlDeck()->ScanPhysicalDevices();
}
}

Expand Down
8 changes: 8 additions & 0 deletions libultraship/libultraship/Window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@
#include "spdlog/sinks/stdout_color_sinks.h"
#include "spdlog/sinks/sohconsole_sink.h"
#include "PR/ultra64/gbi.h"
#ifdef __APPLE__
#include "OSXFolderManager.h"
#elif defined(__SWITCH__)
#include "SwitchImpl.h"
#elif defined(__WIIU__)
#include "WiiUImpl.h"
#endif


#define LOAD_TEX(texPath) static_cast<Ship::Texture*>(Ship::Window::GetInstance()->GetResourceManager()->LoadResource(texPath).get());

Expand Down

0 comments on commit dec266d

Please sign in to comment.