Skip to content

Commit

Permalink
some bug fixes and better instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
freshollie committed Jan 6, 2025
1 parent 52fca55 commit 78ade18
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG VARIANT
FROM mcr.microsoft.com/vscode/devcontainers/base:0-${VARIANT}

RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends binutils-arm-none-eabi gcc-arm-none-eabi libpng-dev build-essential clang-format-13 xorg-dev libsdl2-dev gcc-mingw-w64
&& apt-get -y install --no-install-recommends binutils-arm-none-eabi gcc-arm-none-eabi libpng-dev build-essential clang-format-13 xorg-dev libsdl2-dev gcc-mingw-w64 libarchive-tools

WORKDIR /deps
RUN git clone https://github.com/pret/agbcc.git && cd agbcc && ./build.sh
2 changes: 0 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,6 @@ jobs:
- name: Checkout
if: ${{ github.event_name == 'push' }}
uses: actions/checkout@master

- run: find tools/_shared

- name: Install tools
run: |
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ europe: ; @$(MAKE) GAME_REGION=EUROPE

sdl: ; @$(MAKE) PLATFORM=sdl

sdl_win32: SDL2.dll $(SDL_MINGW_LIB)
sdl_win32:
@$(MAKE) PLATFORM=sdl_win32 CPU_ARCH=i386

win32: ; @$(MAKE) PLATFORM=win32 CPU_ARCH=i386
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,13 @@ sa2.gba: OK
```

**Build the port**
On windows: `make sdl_win32`
On Windows: `make sdl_win32`
On Linux and MacOS: `make sdl`

**NOTE**: You can significantly speed up initial build times by passing the number of processes you wish to use for the build `make ... -j<number of CPU cores>`

**NOTE**: When building for Windows, you'll need to [download](https://github.com/libsdl-org/SDL/releases/download/release-2.30.3/SDL2-devel-2.30.3-mingw.zip) and extract SDL2 to the `ext` folder in the root of the repo before building. You can use `make SDL2.dll` to do this for you.

### Code formatting

All C code in this repo is formatted with `clang-format-13`. If using the Dev Container this is installed automatically.
Expand Down
11 changes: 9 additions & 2 deletions src/game/stage/intro.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,15 @@ struct Task *SetupStageIntro(void)
gStageFlags |= STAGE_FLAG__ACT_START;
gStageFlags |= STAGE_FLAG__100;

gPlayer.spriteInfoBody->s.frameFlags |= SPRITE_FLAG_MASK_18;
gPlayer.spriteInfoLimbs->s.frameFlags |= SPRITE_FLAG_MASK_18;
// These are null when super sonic
#ifdef BUG_FIX
if (gPlayer.spriteInfoBody)
#endif
gPlayer.spriteInfoBody->s.frameFlags |= SPRITE_FLAG_MASK_18;
#ifdef BUG_FIX
if (gPlayer.spriteInfoLimbs)
#endif
gPlayer.spriteInfoLimbs->s.frameFlags |= SPRITE_FLAG_MASK_18;

gActiveBossTask = NULL;

Expand Down

0 comments on commit 78ade18

Please sign in to comment.