Skip to content

Contributing

OpenLua Bot edited this page Nov 11, 2026 · 1 revision

Contributing

Thanks for helping. OpenLua targets the OneLua API on PSP, with a portable storage layer and host tests.

The authoritative version is CONTRIBUTING.md.

Before you start

  1. Read Building, docs/DEVELOPMENT.md and Architecture.
  2. Check the project board and existing issues. Claim work that is already tracked.
  3. For a new bug or feature, open an issue first.

Setup

git clone https://github.com/epr-ds/openlua.git
cd openlua

# Host tests (no PSP toolchain needed)
bash test/host/run.sh

# Check that no build artifacts are tracked
bash tools/check_repo_hygiene.sh

Build the PSP EBOOT with bash docker/build.sh; see Building.

Project board fields

When you open an issue or PR, set:

Field Guidance
Status Todo → In Progress → Done
Phase P1 / S2 / S3 / S4 / S5 / S6
Sprint The sprint you are working in
Track Core / GFX / Audio / NWK / TUI
Points 2 (small), 3 (medium), 5 (large)
Priority priority:high, priority:medium, priority:low label

Link the issue in the PR description so the board shows progress.

Pull request checklist

  • The problem and approach are explained.
  • Host tests pass (bash test/host/run.sh).
  • Repository hygiene passes (bash tools/check_repo_hygiene.sh).
  • The PSP build succeeds if PSP code changed.
  • New/changed public API is documented in docs/API.md.
  • Demos still run or are updated.
  • No new tracked binaries or secrets.
  • The related issue is linked (Closes #NN).

Definition of done

  • Acceptance criteria in the issue are met.
  • Tests cover the fix where practical.
  • A PSP/PPSSPP manual check is recorded for rendering, audio or boot changes.
  • Documentation matches the implementation.
  • The issue is closed with a short verification note.

Reporting bugs

Include:

  • PSP model/firmware or PPSSPP version;
  • the Lua script (minimal reproduction);
  • openlua.log and the flash0:/openlua_boot.txt trace if boot fails;
  • whether the bug reproduces on host tests.

Rendering bugs should state which of #19/#20 they may relate to. Hardware results should include test_report.txt; see Hardware Test Menu.

Coding style

  • Match the surrounding C: C99, 4-space indentation, no unrelated reformatting.
  • Keep PSP-specific code behind #if defined(__PSP__).
  • Pixel buffers are ABGR and must use the realW stride.
  • Prefer font.new/sfont in demos so they run on the standard PSP build.

Adding a Lua module

The steps are described in docs/DEVELOPMENT.md. In short:

  1. Add the C implementation under the matching engine/ directory.
  2. Register it with ol_setfuncs and a global table in register_api.
  3. Add host tests where the code is portable.
  4. Document the API in docs/API.md and add a demo.
  5. Pass bash test/host/run.sh and the PSP build.

License

OpenLua is MIT-licensed. By contributing you agree that your changes are released under the same license.

Related

Clone this wiki locally