summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbriaguya <70942617+briaguya-ai@users.noreply.github.com>2023-06-05 14:16:56 -0400
committerGitHub <noreply@github.com>2023-06-05 14:16:56 -0400
commita49f197f063a5171cf863d41452f2f302a6dbcef (patch)
treec1ee944a7072804e8cbe402059200a78a49b6f53
parent2308ab8823c9d0f0aa0ebcdee7889382eaf51eb2 (diff)
build for wii u (#2946)
* reimplement stuff from 2879 * header include to fix build hopefully * another header * fix error * remove header includes we don't have * more error things * a * b * c * d * e * f * g * h * use latest lus --------- Co-authored-by: briaguya <briaguya@alice>
-rw-r--r--.github/workflows/generate-builds.yml82
m---------libultraship0
-rw-r--r--soh/soh/OTRGlobals.cpp2
-rw-r--r--soh/soh/SohMenuBar.cpp2
4 files changed, 44 insertions, 42 deletions
diff --git a/.github/workflows/generate-builds.yml b/.github/workflows/generate-builds.yml
index fd856cb67..8deb1f2ff 100644
--- a/.github/workflows/generate-builds.yml
+++ b/.github/workflows/generate-builds.yml
@@ -229,48 +229,48 @@ jobs:
soh.nro
soh.otr
readme.txt
- # build-wiiu:
- # needs: generate-soh-otr
- # runs-on: ${{ (vars.LINUX_RUNNER && fromJSON(vars.LINUX_RUNNER)) || 'ubuntu-latest' }}
- # container:
- # image: devkitpro/devkitppc:latest
- # steps:
- # - name: Install dependencies
- # if: ${{ !vars.LINUX_RUNNER }}
- # run: |
- # sudo apt-get update
- # sudo apt-get install -y ninja-build
- # - uses: actions/checkout@v3
- # with:
- # submodules: true
- # - name: ccache
- # uses: hendrikmuhs/ccache-action@v1.2
- # with:
- # key: ${{ runner.os }}-wiiu-ccache
- # - name: Build SoH
- # run: |
- # cmake -H. -Bbuild-wiiu -GNinja -DCMAKE_TOOLCHAIN_FILE=/opt/devkitpro/cmake/WiiU.cmake -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache
- # cmake --build build-wiiu --target soh_wuhb --config Release -j3
+ build-wiiu:
+ needs: generate-soh-otr
+ runs-on: ${{ (vars.LINUX_RUNNER && fromJSON(vars.LINUX_RUNNER)) || 'ubuntu-latest' }}
+ container:
+ image: devkitpro/devkitppc:20230110
+ steps:
+ - name: Install dependencies
+ if: ${{ !vars.LINUX_RUNNER }}
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y ninja-build
+ - uses: actions/checkout@v3
+ with:
+ submodules: true
+ - name: ccache
+ uses: hendrikmuhs/ccache-action@v1.2
+ with:
+ key: ${{ runner.os }}-wiiu-ccache
+ - name: Build SoH
+ run: |
+ cmake -H. -Bbuild-wiiu -GNinja -DCMAKE_TOOLCHAIN_FILE=/opt/devkitpro/cmake/WiiU.cmake -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache
+ cmake --build build-wiiu --target soh_wuhb --config Release -j3
- # mv build-wiiu/soh/*.rpx soh.rpx
- # mv build-wiiu/soh/*.wuhb soh.wuhb
- # mv README.md readme.txt
- # env:
- # DEVKITPRO: /opt/devkitpro
- # DEVKITPPC: /opt/devkitpro/devkitPPC
- # - name: Download soh.otr
- # uses: actions/download-artifact@v3
- # with:
- # name: soh.otr
- # - name: Upload build
- # uses: actions/upload-artifact@v3
- # with:
- # name: soh-wiiu
- # path: |
- # soh.rpx
- # soh.wuhb
- # soh.otr
- # readme.txt
+ mv build-wiiu/soh/*.rpx soh.rpx
+ mv build-wiiu/soh/*.wuhb soh.wuhb
+ mv README.md readme.txt
+ env:
+ DEVKITPRO: /opt/devkitpro
+ DEVKITPPC: /opt/devkitpro/devkitPPC
+ - name: Download soh.otr
+ uses: actions/download-artifact@v3
+ with:
+ name: soh.otr
+ - name: Upload build
+ uses: actions/upload-artifact@v3
+ with:
+ name: soh-wiiu
+ path: |
+ soh.rpx
+ soh.wuhb
+ soh.otr
+ readme.txt
build-windows:
needs: generate-soh-otr
runs-on: ${{ (vars.WINDOWS_RUNNER && fromJSON(vars.WINDOWS_RUNNER)) || 'windows-latest' }}
diff --git a/libultraship b/libultraship
-Subproject 31189cc9b3891a6049478e955a47589ce964265
+Subproject f081dace55d6f78052527495745437ee37833db
diff --git a/soh/soh/OTRGlobals.cpp b/soh/soh/OTRGlobals.cpp
index 58a1e0644..3a75545a5 100644
--- a/soh/soh/OTRGlobals.cpp
+++ b/soh/soh/OTRGlobals.cpp
@@ -742,7 +742,7 @@ extern "C" void InitOTR() {
#ifdef __SWITCH__
LUS::Switch::Init(LUS::PreInitPhase);
#elif defined(__WIIU__)
- LUS::WiiU::Init();
+ LUS::WiiU::Init("soh");
#endif
OTRGlobals::Instance = new OTRGlobals();
diff --git a/soh/soh/SohMenuBar.cpp b/soh/soh/SohMenuBar.cpp
index 18effbe81..d028ec79f 100644
--- a/soh/soh/SohMenuBar.cpp
+++ b/soh/soh/SohMenuBar.cpp
@@ -281,7 +281,9 @@ void DrawSettingsMenu() {
UIWidgets::Spacer(0);
+ ImGui::PushItemWidth(std::min((ImGui::GetContentRegionAvail().x - 60.0f), 260.0f));
ImGui::SliderInt("##WiiUFPSSlider", &fpsSlider, 1, 3, "", ImGuiSliderFlags_AlwaysClamp);
+ ImGui::PopItemWidth();
ImGui::SameLine();
ImGui::SetCursorPosX(ImGui::GetCursorPosX() - 7.0f);