The Untitled Porting Framework is a porting framework that is meant to help create source ports of console games in Java.
The current Platform focus is Linux.
The Dependency Stack for UPF is:
- Java 25
- LWJGL 3 using SDL3
- OpenGL 4.6
- OpenAL
- STB
- zstd
- JOML
- Tinylog2
- GSON
The following consoles are currently in active support:
- PS1 (In Progress)
- GTE, Ordering Table, Triangle Batches, PSX Texture and Quad
- SPU ADPCM, Voices, Reverb, XA ADPCM
- STR Demux, MDEC, Bitstream Decoder
- BIN Loader, Disc File System
- GBA (In Progress)
- GBA Loader, Cart File System, LZ77
- PPU: palette RAM, VRAM, OAM, Per-Scanline Registers/Palette, HBlank/VCount Hooks
- 4bpp Text BGs (256x256), 4bpp Sprites, Windows, Blending
- Keyboard Input
- PS2 (In Progress)
- ISO Loader, Disc File System, ELF Segment Loader
- DMA Source Chains, GIF Packet Parsing
- PARTIAL VIF and VU
- PARTIAL GS: Untextured Triangles, Strips, Fans
The following consoles will be supported in the future:
- GC
- NDS
- Wii (Potentially)
- 3DS (Potentially)
- PSP (Potentially)
The ps1 and ps2 packages both contain a class called DiscFileSystem one takes a BinLoader, the other takes a IsoLoader. PS1 games are bin/cue files, you can ignore the cue. PS2 games are ISO files.
- [] Abstract the DiscFileSystem. It's literally the same thing for both PS1/PS2, just the loader is different.
- [] Figure out whether the Wayland Window bug is only on my machine personally, or affects everyone.
The main focus of this project is to make creating native source ports of console games easier. You must bring your own games, and always require your users to bring their own assets as well. This isn't a recompilation builder either, you will need to start from a decompilation project and translate the code natively.
The following files should be modified when starting a project in UPF:
UPF.java- Holds constants for window title, game version and engine folder. (Thebuild.gradle.kts'sengineFolderMUST match theUPF.ENGINE_FOLDERconstant)Game.java- YourEntryPointinto the Engine.upf-core/build.gradle.kts- TheengineFoldervariable andappnamevariable should be changed to your projects.
Remember to exclude your engineFolder from your gitrepo, it will be generated by the code if it doesn't exist. It's located in the working directory.
- GraalVM JDK 25
- Linux
- OpenGL 4.6 GPU Support
Run ./gradlew installDist
- Output goes into
upf-core/build/install/<appname>/. - Start Script is in
bin/<appname> - The Engine folder is located next to the executable at
bin/<engineFolder>/. It contains the./libs/directory holding the jar libraries, along with empty./data/,./saves/,./config/and./mods/directories for your game data.
Run ./upf-core/build/install/<appname>/bin/<appname>
- The VM Commands
--enable-native-access=ALL-UNNAMEDand--sun-misc-unsafe-memory-access=alloware passed in for you. - The Framework looks inside the
<engineFolder>/data/for the roms when utilizingBinLoader,IsoLoader,GBALoaderandDiscFileSystem,CartFileSystem
Q: Does this project use AI?
A: As an assistant only. I use Claude, but I do not allow Claude to write any code, it's not allowed to touch the engine folder that contains the entire repo whatsoever, but to read for oracle testing. It can provide pseudo code, but can't write to any files, nor provide compilable Java Code. The framework itself was cobbled together from a few other projects I've been working on. Each port I write, adds on to the UPF through console hardware layers, and core/api updates.
Q: How do I use it?
A: Fork the project, and then work inside it. Create a package in the upf-core project, and keep all your code in there. The Game.java class in the engine package is the EntryPoint into the engine. This is where you'll "run" your game. The ps1, ps2, and gba packages makes it easier to write Native Source Ports. In the future more console packages will be provided.
Q: Is this an emulator?
A: No. The ps1, ps2, gba packages are sort of a hardware emulators, but there isn't a CPU emulator for any of them. So you couldn't play any games with UPF. The project is used for creating source ports of console games. You could also use it to write a game as UPF provides Input, Graphics, and Audio.
Q: Does this work on Windows or Mac?
A: Windows maybe, the windows natives need to be included in the build.gradle.kts for upf-core, Mac? No. The Engine is hardcoded for OpenGL 4.6.