66 Commits
Author SHA1 Message Date
Waterdish 17dd587241 Bump 1.0.2 2024-07-14 12:14:10 -07:00
ArchezandGitHub e0731a194c Bump Rika Charlie (#739) 2024-07-11 15:08:32 -04:00
ArchezandGitHub 0455c0f053 Fixes for cycle reset, fairy bottle, auto save, and save editor equips (#740)
* fixes for cycle reset, fairy bottle, and save editor equips

* prevent auto save during minigames

* prevent crash with fast mask transform
2024-07-10 13:02:02 -04:00
ArchezandGitHub 5984bdea19 Fix crash with graphics menu index out of bounds (#738) 2024-07-08 23:47:42 -04:00
ArchezandGitHub 2bb149b367 Tweak: Improve Save Editor time options (#729)
* improve save editor time options

* set gPlayState after early returns to avoid dangling ptr

* avoid crash with day 0 on daytelop
2024-07-08 17:57:17 -04:00
ArchezandGitHub 7458760c75 Fix rumble lasting too long (#736) 2024-07-08 17:50:03 -04:00
MalkierianandGitHub dcc38678a6 Eliminate Graphics Menu Lag (#733)
* Moved non-dynamic window backend data to external variables and update function called on init and combobox change.

* clang
2024-07-05 23:33:05 -04:00
ArchezandGitHub f201a494d2 Fix: Clean up flags when using debug warp (#728)
* Fix: Clean up flags when using debug warp

* comments
2024-06-28 17:48:24 -04:00
ArchezandGitHub 6af9227293 Fix: Add reset func for cucco storm (#725) 2024-06-28 12:02:26 -04:00
ArchezandGitHub 36f31463f3 add reset func for EnBats actor (#724) 2024-06-28 11:01:00 -04:00
ArchezandGitHub da76b32433 Fix incorrect flag setting in save editor (#722) 2024-06-27 09:19:20 -04:00
ArchezandGitHub 00403e452f Tweak FreeLock reset logic (#721) 2024-06-26 18:37:21 -04:00
ArchezandGitHub 03a33628cb fix skybox textures not reloading (#719) 2024-06-26 17:45:50 -04:00
ArchezandGitHub 60673fac35 Fix: Prevent crash on loading OOB info panel textures in kaleido (#720) 2024-06-26 10:36:05 -04:00
ArchezandGitHub 72f6fd158c Fix Dawn Of screen crashing with 4th glitch (#718) 2024-06-25 23:40:51 -04:00
MalkierianandGitHub 1f3ca038a8 PowerShell clang fix (#714)
* Fixes script running in commandline mode by adding System.Net inclusion at the top.
Also adds clang-format.exe to gitignore.

* Change System.Net namespace to System.
2024-06-24 23:42:12 -04:00
791064e870 Add Basic README (#664)
* Add basic readme

* Update README.md

---------

Co-authored-by: Archez <Archez@users.noreply.github.com>
2024-06-24 23:17:36 -04:00
louist103andGitHub 0d4e554ac6 Save editor temple clear fix (#709) 2024-06-24 09:34:40 -04:00
louist103andGitHub a933d73589 Fix the check for preventing a HESS crash. (#710)
* Fix the check

* Change style

* Another fix in SKelanime.

* Format
2024-06-23 17:11:21 -04:00
ArchezandGitHub c2199dddcf Fix: Add reset func for moon crash giants cutscene (#694) 2024-06-15 15:52:42 -04:00
justawayofthesamuraiandGitHub cc3e015f12 Added a fix for the moonjump so it doesn't crash the game when changing the day. (#693) 2024-06-15 15:02:30 -04:00
inspectredcandGitHub a383b4b330 Fix Fast Text Not Working on Instant Textboxes (#662)
* Fix Fast Text Not Working on Instant Textboxes

* format
2024-06-14 20:55:24 -04:00
inspectredcandGitHub df81f97e43 Add Free Look Camera Reset (#663) 2024-06-14 20:55:05 -04:00
briaguyaandGitHub 84b9b4218a ci: wget sdl from gh release (#677)
fix that worked from https://github.com/HarbourMasters/2ship2harkinian/pull/676 but pointing to the right branch
2024-06-08 21:53:14 +01:00
ArchezandGitHub 4b36181ee2 Fix dungeon map palette loading (#653) 2024-06-04 01:57:47 -05:00
Waterdish f64cf9d56d 1.0.1 Update app values 2024-06-02 15:34:41 -07:00
Waterdish 43ebcd0305 Update to 2S2H 1.0.1 2024-06-02 15:18:22 -07:00
WaterdishandGitHub 07ac8c2a1b Update README.md 2024-06-02 14:36:26 -07:00
Waterdish 891fcafa57 Update 1.0.0.1 2024-06-02 14:27:08 -07:00
Waterdish 8e3a447798 F1 toggle button 2024-06-02 14:27:08 -07:00
Waterdish 41ace195cd Prepare for future gyro support 2024-06-02 14:27:08 -07:00
Waterdish c0593af8db ImGui fixes in LUS 2024-06-02 14:27:08 -07:00
Waterdish 4770f538a9 Ignore release folder 2024-06-02 14:27:08 -07:00
Waterdish 5dedbc45c1 Copy asset files during build 2024-06-02 14:27:08 -07:00
Waterdish bb6c6f5995 SDL cleanup 2024-06-02 14:27:08 -07:00
Waterdish d0dd8c2786 Bump min version to Android 7. Rest in peace Android 6 users 2024-06-02 14:27:08 -07:00
Garrett CoxandGitHub b54542494e Add various tweaks and a warning to debug mode toggle (#643) 2024-06-02 12:50:32 -05:00
ArchezandGitHub eae50e33e3 Fix the PRNG not being seeded when opening intro is skipped (#640) 2024-06-02 12:23:06 -05:00
inspectredcandGitHub 50b06bff0b lus fix metal crash (#628) 2024-05-31 23:36:17 -05:00
Garrett CoxandGitHub 3a86bdf2dc Version bump Rika Bravo (#626) 2024-05-31 19:51:23 -05:00
Garrett CoxandGitHub 78f0525ec0 Bump LUS (#625) 2024-05-31 19:50:36 -05:00
inspectredcandGitHub a3add6092b Fix Dpad Ocarina L Btn & GI Dpad Stuff (#578) 2024-05-31 19:21:57 -05:00
Jacob ErlyandGitHub a39a9a58e9 Adds sanity checks for bottle duping over items and prevents the issue causing Big Goron to not give the player the Keg License. (#605)
* Update Infinite.cpp

Adds sanity checks for bottle duping and prevents the issue causing Big Goron to not give the player the Keg License.

* Update Infinite.cpp

Formatting.

* Update Infinite.cpp

* Update Infinite.cpp

More formatting trying to work around this Clang stuff while working from Github.
2024-05-31 18:13:42 -04:00
ArchezandGitHub 7bf60f6771 fix hud editor position bugs (#622) 2024-05-31 17:39:26 -04:00
MalkierianandGitHub 63c293f78a Implement Alt Assets Variable LUS (#619)
* Bump LUS to `94b755b77c0c0f566686c9d23fa4c15e23473a0c`.
Remove `CVAR_ALT_ASSETS` from LUS cvars cmake.
Change all pertinent `CVarGetInteger` calls for `CVAR_ALT_ASSETS` to `ResourceManager::IsAltAssetsEnabled`.
Implement frame-end toggle of `mAltAssetsEnabled`.

* Remove `ShouldClearTextureCacheAtEndOfFrame`.
Move prevAltAssets check to end of `Gfx_ProcessGfxCommands`.

* Missed initial `mAltAssetsEnabled` set.
2024-05-31 17:26:04 -04:00
Garrett CoxandGitHub 57d4e62ed0 Fix issue where skipping clock tower cutscene would not return you correctly (#618) 2024-05-30 23:21:18 -05:00
Reinhardt R. GamingandGitHub 877d7f732b Display a MSAA value of 1x as "Off" (#597)
* Change terminology for MSAA setting + tooltip

* Update BenMenuBar.cpp
2024-05-30 22:46:41 -05:00
inspectredcandGitHub 47e98e8ee9 Fix GC Warning Labels (#529) 2024-05-30 22:46:07 -05:00
briaguyaandGitHub 65870f3c07 update to latest lus main (#614)
* update to latest lus main

* upstream otrexporter and zapdtr submodules

* upstream LUS submodule
2024-05-30 23:30:05 -04:00
Garrett CoxandGitHub 464c55fcbb Tweaks to autosaves and pause saves to always persist them, along with preventing saves when it's too early or late in the game (#616) 2024-05-30 23:20:29 -04:00
Garrett CoxandGitHub 8ac7dc6b7d Fix play as kafei by swapping out resources later (#617) 2024-05-30 23:10:45 -04:00
briaguyaandGitHub f32bccc5b9 ci(linux): install libzip without crypto, bump sdl from 2.28.5 -> 2.30.3 (#588)
* ci(linux): install libzip without crypto, bump sdl from 2.28.5 -> 2.30.3

* just install libzip with apt for otr gen

* copy the .so to a place linuxdeploy looks for it

* but do it in the right place
2024-05-30 22:21:24 -04:00
ArchezandGitHub c7aafb65fd Fix o2r file copy (#592)
* fix o2r file copy script

* move script to cmake folder
2024-05-30 22:12:14 -04:00
ArchezandGitHub 6ff53d4827 fix taking transformation mask off setting unexpected flags (#612) 2024-05-30 22:03:29 -04:00
ArchezandGitHub 73c468d5cf Fix Skybox star colors (#608)
* Fix Skybox star colors

* switch to Color_RGBA8 solution
2024-05-30 21:56:08 -04:00
Garrett CoxandGitHub 74afca9bf7 Remove path sanitize for file drops (#611) 2024-05-30 15:01:55 -05:00
AltoXorgandGitHub 3590cfa118 Append appShortName in savesFolderPath for non-portable builds (#593) 2024-05-29 23:42:17 -04:00
WaterdishandGitHub 9a81e3eac9 Update README.md 2024-05-29 10:40:44 -07:00
WaterdishandGitHub 6b9276847e Update README.md 2024-05-29 10:40:31 -07:00
ArchezandGitHub c2e1c56413 Fix crash with Deku King during credits (#601) 2024-05-29 17:01:52 +01:00
MalkierianandGitHub e2fb954d99 Disabled checkbox fix (#498)
* Prevent style change and toggle when disabled.

* Fix performance issues for disabled elements being drawn.

* Move `BeginDisabled` to after visible window check to avoid potential mismatch issues.
2024-05-29 12:33:55 +01:00
inspectredcandGitHub 63def6f8df Display GC Version String On Title (#579)
* Display GC Version String On Title

* remove uncompressed case
2024-05-28 23:50:03 -05:00
inspectredcandGitHub eb208233e2 Fix Free Look On Woodfall Lilypads/Water (#587) 2024-05-28 19:37:26 -05:00
Garrett CoxandGitHub 788c74a19e Fix PR artifacts (#563) 2024-05-27 21:18:14 -05:00
ArchezandGitHub 41e35ff3ee Fix macports cache (#543)
* fix macports cache

* cache key obey os version

* more tweaks

* fix sccache and try mac gtar replacement

* oh a custom gtar wrapper..

* comments and different test

* update

* soh otr after main build

* cache bust

* 2ship o2r builder

* change install path

* bust cache

* sccache cmake fixes

* dont list 2ship.o2r in pr artifacts
2024-05-27 17:58:30 -05:00
ArchezandGitHub 0eaa533f25 Use GH artifacts (#511)
* use gh artifacts

* update nightly links
2024-05-27 00:01:54 -05:00
1413 changed files with 1244 additions and 76797 deletions
+1 -1
View File
@@ -1 +1 @@
libusb-dev libusb-1.0-0-dev libsdl2-dev libsdl2-net-dev libpng-dev libglew-dev libzip-dev zipcmp zipmerge ziptool nlohmann-json3-dev libtinyxml2-dev libspdlog-dev ninja-build libusb-dev libusb-1.0-0-dev libsdl2-dev libsdl2-net-dev libpng-dev libglew-dev nlohmann-json3-dev libtinyxml2-dev libspdlog-dev ninja-build
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
# Call the original gtar executable with sudo for macports cache restoration to root folder
exec sudo /opt/homebrew/bin/gtar.orig "$@"
+180 -218
View File
@@ -98,74 +98,8 @@ jobs:
# source-dir: _packages # source-dir: _packages
# destination-dir: ./ # destination-dir: ./
# generate-2ship-otr: generate-2ship-otr:
# runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
# steps:
# - uses: actions/checkout@v4
# with:
# submodules: true
# - name: ccache
# uses: hendrikmuhs/ccache-action@v1.2.11
# with:
# key: ${{ runner.os }}-otr-ccache-${{ github.ref }}-${{ github.sha }}
# restore-keys: |
# ${{ runner.os }}-otr-ccache-${{ github.ref }}
# ${{ runner.os }}-otr-ccache
# - name: Install dependencies
# run: |
# sudo apt-get update
# sudo apt-get install -y $(cat .github/workflows/apt-deps.txt)
# - name: Cache build folders
# uses: actions/cache@v4
# with:
# key: ${{ runner.os }}-otr-build-${{ github.ref }}-${{ github.sha }}
# restore-keys: |
# ${{ runner.os }}-otr-build-${{ github.ref }}
# ${{ runner.os }}-otr-build
# path: |
# build-cmake
# SDL2-2.28.5
# tinyxml2-10.0.0
# - name: Install latest SDL
# run: |
# export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
# if [ ! -d "SDL2-2.28.5" ]; then
# wget https://www.libsdl.org/release/SDL2-2.28.5.tar.gz
# tar -xzf SDL2-2.28.5.tar.gz
# fi
# cd SDL2-2.28.5
# ./configure --enable-hidapi-libusb
# make -j 10
# sudo make install
# sudo cp -av /usr/local/lib/libSDL* /lib/x86_64-linux-gnu/
# - name: Install latest tinyxml2
# run: |
# sudo apt-get remove libtinyxml2-dev
# export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
# if [ ! -d "tinyxml2-10.0.0" ]; then
# wget https://github.com/leethomason/tinyxml2/archive/refs/tags/10.0.0.tar.gz
# tar -xzf 10.0.0.tar.gz
# fi
# cd tinyxml2-10.0.0
# mkdir -p build
# cd build
# cmake ..
# make
# sudo make install
# - name: Generate 2ship.o2r
# run: |
# export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
# cmake --no-warn-unused-cli -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE:STRING=Release
# cmake --build build-cmake --config Release --target Generate2ShipOtr -j3
# - uses: actions/upload-artifact@v4
# with:
# name: 2ship.o2r
# path: 2ship.o2r
# retention-days: 1
build-macos:
# needs: generate-2ship-otr
runs-on: macos-14
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
@@ -173,105 +107,30 @@ jobs:
- name: ccache - name: ccache
uses: hendrikmuhs/ccache-action@v1.2.13 uses: hendrikmuhs/ccache-action@v1.2.13
with: with:
create-symlink: true key: ${{ runner.os }}-otr-ccache-${{ github.ref }}-${{ github.sha }}
key: ${{ runner.os }}-14-ccache-${{ github.ref }}-${{ github.sha }}
restore-keys: | restore-keys: |
${{ runner.os }}-14-ccache-${{ github.ref }} ${{ runner.os }}-otr-ccache-${{ github.ref }}
${{ runner.os }}-14-ccache ${{ runner.os }}-otr-ccache-
- name: Cache MacPorts
id: cache-macports
uses: actions/cache@v4
with:
path: /opt/local/
key: ${{ runner.os }}-macports-${{ hashFiles('.github/workflows/macports-deps.txt') }}
restore-keys: |
${{ runner.os }}-macports
- name: Install MacPorts (if necessary)
run: |
if [ -d /opt/local/ ]; then
echo "MacPorts already installed"
else
wget https://github.com/macports/macports-base/releases/download/v2.9.3/MacPorts-2.9.3-14-Sonoma.pkg
sudo installer -pkg ./MacPorts-2.9.3-14-Sonoma.pkg -target /
fi
echo "/opt/local/bin:/opt/local/sbin" >> $GITHUB_PATH
- name: Install dependencies
run: |
brew uninstall --ignore-dependencies libpng
sudo port install $(cat .github/workflows/macports-deps.txt)
brew install ninja
# - name: Download 2ship.o2r
# uses: actions/download-artifact@v4
# with:
# name: 2ship.o2r
# path: build-cmake/mm
- name: Build 2Ship
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cmake --no-warn-unused-cli -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64"
cmake --build build-cmake --config Release --target Generate2ShipOtr --parallel 10
cmake --build build-cmake --config Release --parallel 10
(cd build-cmake && cpack)
mv _packages/*.dmg 2Ship.dmg
mv README.md readme.txt
# - name: Upload build
# if: ${{ startsWith(github.ref, 'refs/heads/develop') }}
# uses: actions/upload-artifact@v4
# with:
# name: 2ship-mac
# path: |
# 2Ship.dmg
# readme.txt
- name: Zip build
run: |
mkdir -p _release
zip -qq _release/2ship-mac.zip 2ship.dmg readme.txt
- name: Upload build
if: ${{ startsWith(github.ref, 'refs/heads/develop') }}
uses: ryand56/r2-upload-action@latest
with:
r2-account-id: ${{ secrets.R2_ACCOUNT_ID }}
r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }}
r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }}
r2-bucket: ${{ secrets.R2_BUCKET }}
source-dir: _release
destination-dir: ./
build-linux:
# needs: generate-2ship-otr
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install dependencies - name: Install dependencies
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install -y $(cat .github/workflows/apt-deps.txt) sudo apt-get install -y $(cat .github/workflows/apt-deps.txt) libzip-dev zipcmp zipmerge ziptool
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.11
with:
key: linux-ccache-${{ github.ref }}-${{ github.sha }}
restore-keys: |
linux-ccache-${{ github.ref }}
linux-ccache
- name: Cache build folders - name: Cache build folders
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
key: linux-build-${{ github.ref }}-${{ github.sha }} key: ${{ runner.os }}-otr-build-${{ github.ref }}-${{ github.sha }}
restore-keys: | restore-keys: |
linux-build-${{ github.ref }} ${{ runner.os }}-otr-build-${{ github.ref }}
linux-build ${{ runner.os }}-otr-build-
path: | path: |
build-cmake
SDL2-2.28.5 SDL2-2.28.5
SDL2_net-2.2.0
tinyxml2-10.0.0 tinyxml2-10.0.0
- name: Install latest SDL - name: Install latest SDL
run: | run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
if [ ! -d "SDL2-2.28.5" ]; then if [ ! -d "SDL2-2.28.5" ]; then
wget https://www.libsdl.org/release/SDL2-2.28.5.tar.gz wget https://github.com/libsdl-org/SDL/releases/download/release-2.28.5/SDL2-2.28.5.tar.gz
tar -xzf SDL2-2.28.5.tar.gz tar -xzf SDL2-2.28.5.tar.gz
fi fi
cd SDL2-2.28.5 cd SDL2-2.28.5
@@ -293,28 +152,160 @@ jobs:
cmake .. cmake ..
make make
sudo make install sudo make install
- name: Install latest SDL_net - name: Generate 2ship.o2r
run: | run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
if [ ! -d "SDL2_net-2.2.0" ]; then cmake --no-warn-unused-cli -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE:STRING=Release
wget https://www.libsdl.org/projects/SDL_net/release/SDL2_net-2.2.0.tar.gz cmake --build build-cmake --config Release --target Generate2ShipOtr -j3
tar -xzf SDL2_net-2.2.0.tar.gz - uses: actions/upload-artifact@v4
with:
name: 2ship.o2r
path: 2ship.o2r
retention-days: 1
build-macos:
needs: generate-2ship-otr
runs-on: macos-14
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.13
with:
create-symlink: true
key: ${{ runner.os }}-14-ccache-${{ github.ref }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-14-ccache-${{ github.ref }}
${{ runner.os }}-14-ccache-
# Needed to apply sudo for macports cache restore
- name: Install gtar wrapper
run: |
sudo mv /opt/homebrew/bin/gtar /opt/homebrew/bin/gtar.orig
sudo cp .github/workflows/gtar /opt/homebrew/bin/gtar
sudo chmod +x /opt/homebrew/bin/gtar
- name: Cache MacPorts
id: cache-macports
uses: actions/cache@v4
with:
path: /opt/local/
key: ${{ runner.os }}-14-macports-${{ hashFiles('.github/workflows/macports-deps.txt') }}
restore-keys: |
${{ runner.os }}-14-macports-
- name: Install MacPorts (if necessary)
run: |
if [ command -v port &>/dev/null ]; then
echo "MacPorts already installed"
else
wget https://github.com/macports/macports-base/releases/download/v2.9.3/MacPorts-2.9.3-14-Sonoma.pkg
sudo installer -pkg ./MacPorts-2.9.3-14-Sonoma.pkg -target /
fi fi
cd SDL2_net-2.2.0 echo "/opt/local/bin:/opt/local/sbin" >> $GITHUB_PATH
./configure - name: Install dependencies
run: |
brew uninstall --ignore-dependencies libpng
sudo port install $(cat .github/workflows/macports-deps.txt)
brew install ninja
- name: Download 2ship.o2r
uses: actions/download-artifact@v4
with:
name: 2ship.o2r
path: build-cmake/mm
- name: Build 2Ship
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cmake --no-warn-unused-cli -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64"
cmake --build build-cmake --config Release --parallel 10
(cd build-cmake && cpack)
mv _packages/*.dmg 2Ship.dmg
mv README.md readme.txt
- name: Upload build
uses: actions/upload-artifact@v4
with:
name: 2ship-mac
path: |
2Ship.dmg
readme.txt
build-linux:
needs: generate-2ship-otr
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y $(cat .github/workflows/apt-deps.txt)
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.13
with:
key: linux-ccache-${{ github.ref }}-${{ github.sha }}
restore-keys: |
linux-ccache-${{ github.ref }}
linux-ccache-
- name: Cache build folders
uses: actions/cache@v4
with:
key: linux-build-${{ github.ref }}-${{ github.sha }}
restore-keys: |
linux-build-${{ github.ref }}
linux-build-
path: |
SDL2-2.30.3
tinyxml2-10.0.0
libzip-1.10.1
- name: Install latest SDL
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
if [ ! -d "SDL2-2.30.3" ]; then
wget https://github.com/libsdl-org/SDL/releases/download/release-2.30.3/SDL2-2.30.3.tar.gz
tar -xzf SDL2-2.30.3.tar.gz
fi
cd SDL2-2.30.3
./configure --enable-hidapi-libusb
make -j 10 make -j 10
sudo make install sudo make install
sudo cp -av /usr/local/lib/libSDL* /lib/x86_64-linux-gnu/ sudo cp -av /usr/local/lib/libSDL* /lib/x86_64-linux-gnu/
# - name: Download 2ship.o2r - name: Install latest tinyxml2
# uses: actions/download-artifact@v4 run: |
# with: sudo apt-get remove libtinyxml2-dev
# name: 2ship.o2r export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
# path: build-cmake/mm if [ ! -d "tinyxml2-10.0.0" ]; then
wget https://github.com/leethomason/tinyxml2/archive/refs/tags/10.0.0.tar.gz
tar -xzf 10.0.0.tar.gz
fi
cd tinyxml2-10.0.0
mkdir -p build
cd build
cmake ..
make
sudo make install
- name: Install libzip without crypto
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
if [ ! -d "libzip-1.10.1" ]; then
wget https://github.com/nih-at/libzip/releases/download/v1.10.1/libzip-1.10.1.tar.gz
tar -xzf libzip-1.10.1.tar.gz
fi
cd libzip-1.10.1
mkdir -p build
cd build
cmake .. -DENABLE_COMMONCRYPTO=OFF -DENABLE_GNUTLS=OFF -DENABLE_MBEDTLS=OFF -DENABLE_OPENSSL=OFF
make
sudo make install
sudo cp -av /usr/local/lib/libzip* /lib/x86_64-linux-gnu/
- name: Download 2ship.o2r
uses: actions/download-artifact@v4
with:
name: 2ship.o2r
path: build-cmake/mm
- name: Build 2Ship - name: Build 2Ship
run: | run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cmake --no-warn-unused-cli -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE:STRING=Release -DBUILD_REMOTE_CONTROL=1 cmake --no-warn-unused-cli -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE:STRING=Release -DBUILD_REMOTE_CONTROL=1
cmake --build build-cmake --config Release --target Generate2ShipOtr -j3
cmake --build build-cmake --config Release -j3 cmake --build build-cmake --config Release -j3
(cd build-cmake && cpack -G External) (cd build-cmake && cpack -G External)
@@ -323,32 +314,16 @@ jobs:
env: env:
CC: gcc-12 CC: gcc-12
CXX: g++-12 CXX: g++-12
# Temporarily replaced with an upload to R2 until we go public
# - name: Upload build
# uses: actions/upload-artifact@v4
# with:
# name: 2ship-linux
# path: |
# 2ship.appimage
# readme.txt
# Remove Zip step when uploading directly to GH artifactory
- name: Zip build
run: |
mkdir -p _release
zip -qq _release/2ship-linux.zip 2ship.appimage readme.txt
- name: Upload build - name: Upload build
if: ${{ startsWith(github.ref, 'refs/heads/develop') }} uses: actions/upload-artifact@v4
uses: ryand56/r2-upload-action@latest
with: with:
r2-account-id: ${{ secrets.R2_ACCOUNT_ID }} name: 2ship-linux
r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }} path: |
r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }} 2ship.appimage
r2-bucket: ${{ secrets.R2_BUCKET }} readme.txt
source-dir: _release
destination-dir: ./
build-windows: build-windows:
# needs: generate-2ship-otr needs: generate-2ship-otr
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- name: Install dependencies - name: Install dependencies
@@ -359,60 +334,47 @@ jobs:
with: with:
submodules: true submodules: true
- name: ccache - name: ccache
uses: hendrikmuhs/ccache-action@v1.2.11 uses: hendrikmuhs/ccache-action@v1.2.13
with: with:
variant: sccache variant: sccache
max-size: "1G" max-size: "1G"
key: ${{ runner.os }}-ccache-${{ github.ref }}-${{ github.sha }} key: ${{ runner.os }}-ccache1-${{ github.ref }}-${{ github.sha }}
restore-keys: | restore-keys: |
${{ runner.os }}-ccache-${{ github.ref }} ${{ runner.os }}-ccache1-${{ github.ref }}
${{ runner.os }}-ccache ${{ runner.os }}-ccache1-
- name: Cache build folder - name: Cache build folder
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
save-always: true save-always: true
key: ${{ runner.os }}-build-${{ github.ref }}-${{ github.sha }} key: ${{ runner.os }}-build1-${{ github.ref }}-${{ github.sha }}
restore-keys: | restore-keys: |
${{ runner.os }}-build-${{ github.ref }} ${{ runner.os }}-build1-${{ github.ref }}
${{ runner.os }}-build ${{ runner.os }}-build1-
path: | path: |
build-windows build-windows
vcpkg vcpkg
- name: Configure Developer Command Prompt - name: Configure Developer Command Prompt
uses: ilammy/msvc-dev-cmd@v1 uses: ilammy/msvc-dev-cmd@v1
# - name: Download 2ship.o2r - name: Download 2ship.o2r
# uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
# with: with:
# name: 2ship.o2r name: 2ship.o2r
# path: build-windows/mm path: build-windows/mm
- name: Build 2Ship - name: Build 2Ship
env: env:
VCPKG_ROOT: ${{github.workspace}}/vcpkg VCPKG_ROOT: ${{github.workspace}}/vcpkg
run: | run: |
set $env:PATH="$env:USERPROFILE/.cargo/bin;$env:PATH" set $env:PATH="$env:USERPROFILE/.cargo/bin;$env:PATH"
cmake -S . -B build-windows -G Ninja -DCMAKE_MAKE_PROGRAM=ninja -DCMAKE_BUILD_TYPE:STRING=Release cmake -S . -B build-windows -G Ninja -DCMAKE_MAKE_PROGRAM=ninja -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache
cmake --build build-windows --config Release --target Generate2ShipOtr --parallel 10
cmake --build build-windows --config Release --parallel 10 cmake --build build-windows --config Release --parallel 10
(cd build-windows && cpack) (cd build-windows && cpack)
cd .. cd ..
mv _packages/*.zip _packages/2ship-windows.zip mv _packages/*.zip _packages/2ship-windows.zip
# Temporarily replaced with an upload to R2 until we go public - name: Unzip package
# - name: Unzip package run: Expand-Archive -Path _packages/2ship-windows.zip -DestinationPath 2ship-windows
# run: Expand-Archive -Path _packages/2ship-windows.zip -DestinationPath 2ship-windows
# - name: Upload build
# if: ${{ startsWith(github.ref, 'refs/heads/develop') }}
# uses: actions/upload-artifact@v4
# with:
# name: 2ship-windows
# path: 2ship-windows
- name: Upload build - name: Upload build
if: ${{ startsWith(github.ref, 'refs/heads/develop') }} uses: actions/upload-artifact@v4
uses: ryand56/r2-upload-action@latest
with: with:
r2-account-id: ${{ secrets.R2_ACCOUNT_ID }} name: 2ship-windows
r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }} path: 2ship-windows
r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }}
r2-bucket: ${{ secrets.R2_BUCKET }}
source-dir: _packages
destination-dir: ./
+2 -1
View File
@@ -48,8 +48,9 @@ jobs:
return allArtifacts.data.artifacts.reduce((acc, item) => { return allArtifacts.data.artifacts.reduce((acc, item) => {
if (item.name === "assets") return acc; if (item.name === "assets") return acc;
if (item.name === "2ship.o2r") return acc;
acc += ` acc += `
- [${item.name}.zip](https://nightly.link/${context.repo.owner}/${context.repo.repo}/actions/artifacts/${item.id}.zip?h=20a00267c7ffeb2eb80ab31f356f2ba5f120f43c)`; - [${item.name}.zip](https://nightly.link/${context.repo.owner}/${context.repo.repo}/actions/artifacts/${item.id}.zip)`;
return acc; return acc;
}, '### Build Artifacts'); }, '### Build Artifacts');
- id: 'add-to-pr' - id: 'add-to-pr'
+1
View File
@@ -66,3 +66,4 @@ _packages/
/mm/src/boot/build.c /mm/src/boot/build.c
/mm/windows/properties.h /mm/windows/properties.h
/clang-format.exe
+1
View File
@@ -14,6 +14,7 @@ captures/
.cxx/ .cxx/
*.apk *.apk
output.json output.json
app/release/
# IntelliJ # IntelliJ
*.iml *.iml
+5 -5
View File
@@ -14,17 +14,17 @@ android {
if (buildAsApplication) { if (buildAsApplication) {
applicationId "com.dishii.mm" applicationId "com.dishii.mm"
} }
minSdkVersion 19 minSdkVersion 24
targetSdkVersion 31 targetSdkVersion 31
versionCode 1 versionCode 3
versionName "1.0.0" versionName "1.0.2"
externalNativeBuild { externalNativeBuild {
//ndkBuild { //ndkBuild {
// arguments "APP_PLATFORM=android-23" // arguments "APP_PLATFORM=android-23"
// abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64' // abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
//} //}
cmake { cmake {
arguments "-DANDROID_APP_PLATFORM=android-23","-DSDL_SHARED=ON", "-DANDROID_STL=c++_static", "-DHAVE_LD_VERSION_SCRIPT=OFF",'-DUSE_OPENGLES=ON',"-DCVAR_IMGUI_CONTROLLER_NAV=1" arguments "-DSDL_SHARED=ON", "-DANDROID_STL=c++_static", "-DHAVE_LD_VERSION_SCRIPT=OFF",'-DUSE_OPENGLES=ON'
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64' abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
//abiFilters 'arm64-v8a' //abiFilters 'arm64-v8a'
} }
@@ -79,7 +79,7 @@ dependencies {
} }
task wrapper(type: Wrapper) { task wrapper(type: Wrapper) {
gradleVersion = '7.3' gradleVersion = '7.0.3'
} }
task prepareKotlinBuildScriptModel { task prepareKotlinBuildScriptModel {
+2 -2
View File
@@ -4,8 +4,8 @@
--> -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.dishii.mm" package="com.dishii.mm"
android:versionCode="1" android:versionCode="3"
android:versionName="1.0.0" android:versionName="1.0.2"
android:installLocation="auto"> android:installLocation="auto">
<!-- OpenGL ES 3.0 --> <!-- OpenGL ES 3.0 -->
+2
View File
@@ -0,0 +1,2 @@
# Extractor Assets Copied by CMake during buildtime
assets/
@@ -1,8 +0,0 @@
<Root>
<SymbolMap File="symbols/SymbolMap_MM.txt"/>
<ActorList File="symbols/ActorList_MM.txt"/>
<ObjectList File="symbols/ObjectList_MM.txt"/>
<EnumData File="EnumData.xml"/>
<ExternalXMLFolder Path="assets/extractor/xmls/GC_US/"/>
<ExternalFile XmlPath="objects/gameplay_keep.xml" OutPath="objects/gameplay_keep/"/>
</Root>
@@ -1,8 +0,0 @@
<Root>
<SymbolMap File="symbols/SymbolMap_MM.txt"/>
<ActorList File="symbols/ActorList_MM.txt"/>
<ObjectList File="symbols/ObjectList_MM.txt"/>
<EnumData File="EnumData.xml"/>
<ExternalXMLFolder Path="assets/extractor/xmls/N64_US/"/>
<ExternalFile XmlPath="objects/gameplay_keep.xml" OutPath="objects/gameplay_keep/"/>
</Root>
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More