Skip to content

Pc port - #487

Closed
Lyraedan wants to merge 40 commits into
pret:masterfrom
Lyraedan:pc-port
Closed

Pc port#487
Lyraedan wants to merge 40 commits into
pret:masterfrom
Lyraedan:pc-port

Conversation

@Lyraedan

Copy link
Copy Markdown

Game is playable, audio sounds a little higher then it should

- Makefile.pc: auto-detect ARM GNU toolchain under build/deps (was hardcoded
  darwin-arm64), prefer pkg-config libpng over the slow source auto-build, and
  use -idirafter for the project include/ on PC-backend objects so SDL's
  <strings.h> is not shadowed by the game's include/strings.h.
- main_game.c: guard execinfo/backtrace/sigaction crash handlers with
  #ifndef _WIN32 (mingw-w64 lacks them).
- tools/gen_assets.py: generate every INCBIN-referenced derived asset
  (*.4bpp/.8bpp/.1bpp from .png, *.pmdpal/.gbapal from .pal) via gbagfx;
  idempotent + parallel; handles multi-arg INCBIN_U8(a,b,...) concat form.
  pc-syntax now passes 544/544.
…kground image when adding audio, can get into Tiny Woods 1F
 In data/titlemenu_sbin.s, titlen1's header is emitted with .string "AT4PX" — GNU as's .string appends a NUL, so the blob becomes "AT4PX" + 0x00 + data instead of the real "AT4PX" + 0x47 + data. That corrupts the compressed-length field (clen becomes 0x4100 instead of 0x4147), so DecompressATFile produces garbage for titlen1. The PC's RNG always picks rnd=1, so the corruption always appears.
…ase, town, etc, but there is collision in dungeons)
…ape no longer closes the game, pressing the "x" on the window should now correctly close the game
@Lyraedan Lyraedan closed this Sep 11, 2026
@Lyraedan

Lyraedan commented Sep 11, 2026

Copy link
Copy Markdown
Author

Was suppose to PR this into my own repo.
It sfully functional though: https://github.com/Lyraedan/PMD-Red-PC-Port

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