From a900ff3b546f282a846b9a33ef30ef81cff53cfb Mon Sep 17 00:00:00 2001 From: sam Date: Sun, 22 Mar 2020 16:07:10 -0400 Subject: [PATCH] Updated readme, added docs folder. --- Makefile | 31 ------------------- README.md | 28 ++++++++++++----- docs/README.md | 0 lib/util_romfs/init.lua | 67 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 88 insertions(+), 38 deletions(-) delete mode 100644 Makefile create mode 100644 docs/README.md diff --git a/Makefile b/Makefile deleted file mode 100644 index 14d2c62..0000000 --- a/Makefile +++ /dev/null @@ -1,31 +0,0 @@ -LC = luacomp - -VER_MAJ = 2 -VER_MIN = 0 -VER_PAT = 0 - -VER_STR = $(VER_MAJ).$(VER_MIN).$(VER_PAT) -VER_NAME = New and Improved - -MODS = $(wildcard mods/*) - -release: dirs zyneo modules - find bin -depth | cpio -o > release.cpio - gzip -9k release.cpio # Maybe one day. - -zyneo: bios - VER_STR=$(VER_STR) ZYNEO_PLATFORM=$(PLATFORM) $(LC) src/zy-neo/init.lua -O bin/zyneo.lua - -bios: - VER_STR=$(VER_STR) ZYNEO_PLATFORM=$(PLATFORM) $(LC) bsrc/bios/init.lua -O bin/zyneo_bios.lua -mluamin - if [[ $(shell stat --printf=%s) > 4096 ]]; then \ - echo "Warning! BIOS is over 4KiB!" > &2; \ - fi - -modules: $(MODS) - -mods/%: - $(LC) src/lkern/$ \ No newline at end of file diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 0000000..e69de29 diff --git a/lib/util_romfs/init.lua b/lib/util_romfs/init.lua index e69de29..a57ea85 100644 --- a/lib/util_romfs/init.lua +++ b/lib/util_romfs/init.lua @@ -0,0 +1,67 @@ +local romfs = {} +local arc = {} + +local function readint(r, n) + local str = assert(r(n), "Unexpected EOF!") + return string.unpack("