mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-03-13 03:17:43 +03:00
Fixed workflow and added osSetTime
This commit is contained in:
parent
f500ac3a4a
commit
a6ef0ec648
34
.github/workflows/main.yml
vendored
34
.github/workflows/main.yml
vendored
@ -193,3 +193,37 @@ jobs:
|
|||||||
config.yml
|
config.yml
|
||||||
assets
|
assets
|
||||||
gamecontrollerdb.txt
|
gamecontrollerdb.txt
|
||||||
|
|
||||||
|
build-switch:
|
||||||
|
needs: generate-port-o2r
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: devkitpro/devkita64:20240120
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y ninja-build
|
||||||
|
sudo apt-get remove -y cmake
|
||||||
|
git -C libultraship remote add nx https://github.com/Net64DD/libultraship.git
|
||||||
|
git -C libultraship fetch nx
|
||||||
|
git -C libultraship checkout nx/main-nx
|
||||||
|
wget https://github.com/Kitware/CMake/releases/download/v3.28.3/cmake-3.28.3-linux-x86_64.sh -O /tmp/cmake.sh
|
||||||
|
sudo sh /tmp/cmake.sh --prefix=/usr/local/ --exclude-subdir
|
||||||
|
cmake -H. -Bbuild-switch -GNinja -DCMAKE_TOOLCHAIN_FILE=/opt/devkitpro/cmake/Switch.cmake
|
||||||
|
cmake --build build-switch --config Release -j3
|
||||||
|
wget -O gamecontrollerdb.txt https://github.com/mdqinc/SDL_GameControllerDB/blob/master/gamecontrollerdb.txt
|
||||||
|
mv README.md readme.txt
|
||||||
|
mv build-switch/*.nro Starship.nro
|
||||||
|
- name: Upload build
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: Starship-switch
|
||||||
|
path: |
|
||||||
|
Starship.nro
|
||||||
|
config.yml
|
||||||
|
assets
|
||||||
|
gamecontrollerdb.txt
|
@ -289,6 +289,7 @@ void GameEngine::Create() {
|
|||||||
GameUI::SetupGuiElements();
|
GameUI::SetupGuiElements();
|
||||||
#if defined(__SWITCH__) || defined(__WIIU__)
|
#if defined(__SWITCH__) || defined(__WIIU__)
|
||||||
CVarRegisterInteger("gControlNav", 1); // always enable controller nav on switch/wii u
|
CVarRegisterInteger("gControlNav", 1); // always enable controller nav on switch/wii u
|
||||||
|
osSetTime(0);
|
||||||
#endif
|
#endif
|
||||||
PortEnhancements_Init();
|
PortEnhancements_Init();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user