Skip to content

Albion: Fix LLVM and WASM compilation - #81

Open
IS4Code wants to merge 2 commits into
M-HT:masterfrom
IS4Code:fix/llvm
Open

Albion: Fix LLVM and WASM compilation#81
IS4Code wants to merge 2 commits into
M-HT:masterfrom
IS4Code:fix/llvm

Conversation

@IS4Code

@IS4Code IS4Code commented Jul 31, 2026

Copy link
Copy Markdown

Fixes two bugs that manfiest only on LLVM/WASM pipeline:

  • The llasm instruction replacements incorrectly use store8 instead of load8z, in code corresponding to the Get_sex function, resulting in bogus data being retrieved and causing all gender-checking functions in the game to fail. Other targets are okay.
  • The WASM compiler is not ABI-compatible with x86, resulting in X86_OutPortProcedure to mismatch its arguments when Game_register is used. This breaks half of the game on WASM, for example resulting in the palette being initialized with all black colors.

@IS4Code IS4Code changed the title Fix LLVM and WASM compilation Albion: Fix LLVM and WASM compilation Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant