ROMFS (ROM File System) - extracted from ps2sdk-ports, LGPL-2
  • C 85.3%
  • Roff 7.5%
  • Makefile 7.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
techwritescode 13607e2ab2 Stop tracking .clangd - it leaks the local machine's own paths
ps2build's generated .clangd bakes in the resolved compiler's own
implicit include dirs, which are absolute paths rooted wherever
$PS2DEV happens to be on whichever machine ran "ps2build generate".
Real, live, already-pushed exposure (this repo is public) - not just
a hypothetical. Also adds a real .gitignore (this repo had none at
all before).

Co-Authored-By: Claude Sonnet 5 <[email protected]>
2026-09-08 20:12:59 -05:00
build Add ps2build ps2.yaml 2026-09-01 22:34:36 -05:00
include Import romfs from ps2sdk-ports (LGPL-2, exiled to its own repo) 2026-09-01 22:34:14 -05:00
regress Import romfs from ps2sdk-ports (LGPL-2, exiled to its own repo) 2026-09-01 22:34:14 -05:00
samples Import romfs from ps2sdk-ports (LGPL-2, exiled to its own repo) 2026-09-01 22:34:14 -05:00
src Import romfs from ps2sdk-ports (LGPL-2, exiled to its own repo) 2026-09-01 22:34:14 -05:00
tools/genromfs Import romfs from ps2sdk-ports (LGPL-2, exiled to its own repo) 2026-09-01 22:34:14 -05:00
.gitignore Stop tracking .clangd - it leaks the local machine's own paths 2026-09-08 20:12:59 -05:00
COPYING Import romfs from ps2sdk-ports (LGPL-2, exiled to its own repo) 2026-09-01 22:34:14 -05:00
Makefile Import romfs from ps2sdk-ports (LGPL-2, exiled to its own repo) 2026-09-01 22:34:14 -05:00
ps2.yaml Add ps2build ps2.yaml 2026-09-01 22:34:36 -05:00
README.ps2 Import romfs from ps2sdk-ports (LGPL-2, exiled to its own repo) 2026-09-01 22:34:14 -05:00
Rules.make Import romfs from ps2sdk-ports (LGPL-2, exiled to its own repo) 2026-09-01 22:34:14 -05:00

#
#
# ROMFS : - ROM File System
#--------------------------------------------------------------------
#
#
# So what is it ? Basically, ROMFS allows to emulate a directory, 
# that directory being an binary image in memory. It allows to embed 
# files and external resources directly in the ELF, while keeping the 
# original i/o routines to access them..
# 
# The initial project has been started by Jakub Jelinek on linux, 
# then gawd reused it for flashback, and this is how I discovered it. 
# Drakonite also participated in adding functionality, and since the 
# stuff is starting to be relatively mature (IMHO), it's time to share it ! 
#   
# You'll find in the regress directory a good example on how to use it, 
# but it just consist on globally respecting the following steps :
#    - include makefile.romfs into your makefile (Adapting path(s),...)
#    - include <romfs_io.h> in your project
#    - call rioInit() from your main
# 
# All calls to fopen, fread, etc.. Are replaced by calls to ropen, rread... 
# Thanks to the defines in the makefile (...)
# 
# And you're done ! 
# 
#   
# History :
# ---------
#
# v1.0:
#  - First release.
#
# v2.0:
#  - genromfs updated to v0.5.2
#
#
#
#
#
# Credits,
# ---------
# Gawd, Drakonite, Evilo