fixes somethigns
This commit is contained in:
@@ -13,8 +13,6 @@ jobs:
|
|||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
- identifier: windows
|
- identifier: windows
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
- identifier: macos
|
|
||||||
os: macos-latest
|
|
||||||
- identifier: web
|
- identifier: web
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
@@ -27,9 +25,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: '3.10'
|
python-version: '3.10'
|
||||||
|
|
||||||
- name: (Windows) Set up MinGW
|
- name: (Windows) Install MinGW
|
||||||
if: ${{ startsWith(matrix.identifier, 'windows') }}
|
if: ${{ startsWith(matrix.identifier, 'windows') }}
|
||||||
uses: egor-tensin/setup-mingw@v2
|
run: |
|
||||||
|
sudo apt-get update -y -qq
|
||||||
|
sudo apt-get install -y mingw-w64
|
||||||
|
sudo update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-posix
|
||||||
|
sudo update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix
|
||||||
|
|
||||||
- name: (Windows) Prepare cross compilation
|
- name: (Windows) Prepare cross compilation
|
||||||
if: ${{ startsWith(matrix.identifier, 'windows') }}
|
if: ${{ startsWith(matrix.identifier, 'windows') }}
|
||||||
@@ -42,7 +44,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu `lsb_release -sc` main universe restricted multiverse"
|
sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu `lsb_release -sc` main universe restricted multiverse"
|
||||||
sudo apt-get update -y -qq
|
sudo apt-get update -y -qq
|
||||||
sudo apt-get install libsdl2-dev libglew-dev
|
sudo apt-get install -y libsdl2-dev libglew-dev
|
||||||
|
|
||||||
- name: (Web) Set up Emscripten
|
- name: (Web) Set up Emscripten
|
||||||
if: ${{ startsWith(matrix.identifier, 'web') }}
|
if: ${{ startsWith(matrix.identifier, 'web') }}
|
||||||
@@ -62,7 +64,7 @@ jobs:
|
|||||||
make test -j`nproc`
|
make test -j`nproc`
|
||||||
|
|
||||||
- name: Upload build
|
- name: Upload build
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: libsm64_${{ matrix.identifier }}
|
name: libsm64_${{ matrix.identifier }}
|
||||||
path: |
|
path: |
|
||||||
@@ -88,4 +90,4 @@ jobs:
|
|||||||
# title: "Snapshot Build"
|
# title: "Snapshot Build"
|
||||||
# files: |
|
# files: |
|
||||||
# ./README.md
|
# ./README.md
|
||||||
# ./dist
|
# ./dist
|
||||||
@@ -490,7 +490,12 @@ Gfx *geo_switch_mario_cap_effect(s32 callContext, struct GraphNode *node, UNUSED
|
|||||||
struct MarioBodyState *bodyState = &gBodyStates[switchCase->numCases];
|
struct MarioBodyState *bodyState = &gBodyStates[switchCase->numCases];
|
||||||
|
|
||||||
if (callContext == GEO_CONTEXT_RENDER) {
|
if (callContext == GEO_CONTEXT_RENDER) {
|
||||||
switchCase->selectedCase = bodyState->modelState >> 8;
|
// switchCase->selectedCase = bodyState->modelState >> 8;
|
||||||
|
if (bodyState->modelState >> 8 >= 2){ // temporarily disables metal cap
|
||||||
|
switchCase->selectedCase = 0;
|
||||||
|
} else {
|
||||||
|
switchCase->selectedCase = bodyState->modelState >> 8;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-3
@@ -259,9 +259,7 @@ SM64_LIB_FN void sm64_mario_tick( int32_t marioId, const struct SM64MarioInputs
|
|||||||
outState->forwardVelocity = gMarioState->forwardVel;
|
outState->forwardVelocity = gMarioState->forwardVel;
|
||||||
outState->action = gMarioState->action;
|
outState->action = gMarioState->action;
|
||||||
|
|
||||||
struct AnimInfo animInfo = gMarioState->marioObj->header.gfx.animInfo;
|
outState->animInfo = &gMarioState->marioObj->header.gfx.animInfo;
|
||||||
outState->animID = animInfo.animID;
|
|
||||||
outState->animFrame = animInfo.animFrame;
|
|
||||||
|
|
||||||
outState->flags = gMarioState->flags;
|
outState->flags = gMarioState->flags;
|
||||||
outState->particleFlags = gMarioState->particleFlags;
|
outState->particleFlags = gMarioState->particleFlags;
|
||||||
|
|||||||
+1
-2
@@ -61,8 +61,7 @@ struct SM64MarioState
|
|||||||
float forwardVelocity;
|
float forwardVelocity;
|
||||||
int16_t health;
|
int16_t health;
|
||||||
uint32_t action;
|
uint32_t action;
|
||||||
int32_t animID;
|
struct AnimInfo* animInfo;
|
||||||
int16_t animFrame;
|
|
||||||
uint32_t flags;
|
uint32_t flags;
|
||||||
uint32_t particleFlags;
|
uint32_t particleFlags;
|
||||||
int16_t invincTimer;
|
int16_t invincTimer;
|
||||||
|
|||||||
Reference in New Issue
Block a user