From 090fe28b449fd6eb097d6b5920f83dd47e356204 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Wed, 30 Nov 2022 01:47:33 -0600 Subject: [PATCH] [nostalgia] Integrate Ox Preloader --- .gitignore | 16 +-- .idea/inspectionProfiles/Project_Default.xml | 3 +- .idea/modules.xml | 8 -- .idea/nostalgia.iml | 8 +- .tracy.json | 4 +- Dockerfile | 40 +++---- Makefile | 3 +- .../.nostalgia/type_descriptors/B.int32;0 | 2 +- .../.nostalgia/type_descriptors/B.int8;0 | 2 +- .../.nostalgia/type_descriptors/B.string;0 | 2 +- .../.nostalgia/type_descriptors/B.uint16;0 | 2 +- .../.nostalgia/type_descriptors/B.uint64;0 | 2 +- .../.nostalgia/type_descriptors/B.uint8;0 | 2 +- .../net.drinkingtea.nostalgia.core.Palette;1 | 10 +- ...ingtea.nostalgia.core.TileSheet.SubSheet;1 | 24 +++- ...net.drinkingtea.nostalgia.core.TileSheet;2 | 8 +- .../net.drinkingtea.ox.BasicString<8>;1 | 9 ++ .../net.drinkingtea.ox.FileAddress.Data;1 | 8 +- .../net.drinkingtea.ox.FileAddress;1 | 6 +- sample_project/Palettes/Charset.npal | Bin 53 -> 53 bytes sample_project/TileSheets/Charset.ng | Bin 903 -> 908 bytes scripts/pkg-gba | 16 +-- src/nostalgia/core/assetmanager.hpp | 32 ++++++ src/nostalgia/core/context.hpp | 1 + src/nostalgia/core/gba/core.cpp | 20 +++- src/nostalgia/core/gba/gfx.cpp | 3 +- src/nostalgia/core/gba/media.cpp | 21 +++- src/nostalgia/core/media.hpp | 25 +++- src/nostalgia/core/typestore.cpp | 6 +- src/nostalgia/core/typestore.hpp | 2 +- src/nostalgia/core/userland/media.cpp | 4 + src/nostalgia/player/app.cpp | 1 + src/nostalgia/scene/scene.hpp | 70 ++++++++---- src/nostalgia/studio/Info.plist | 6 +- src/nostalgia/studio/lib/project.hpp | 12 +- src/nostalgia/studio/newmenu.cpp | 1 - src/nostalgia/studio/studioapp.cpp | 1 + src/nostalgia/tools/pack.cpp | 61 +++++++--- src/nostalgia/tools/pack/CMakeLists.txt | 1 + src/nostalgia/tools/pack/pack.cpp | 107 ++++++++++++++---- src/nostalgia/tools/pack/pack.hpp | 14 ++- 41 files changed, 404 insertions(+), 159 deletions(-) delete mode 100644 .idea/modules.xml create mode 100644 sample_project/.nostalgia/type_descriptors/net.drinkingtea.ox.BasicString<8>;1 diff --git a/.gitignore b/.gitignore index 2090ca6b..d1f8a090 100644 --- a/.gitignore +++ b/.gitignore @@ -2,17 +2,19 @@ .clangd .current_build .conanbuild +.mypy_cache +.stfolder scripts/__pycache__ -compile_commands.json +CMakeLists.txt.user +ROM.oxfs +Session.vim build +compile_commands.json dist -tags +graph_info.json +imgui.ini nostalgia.gba nostalgia.sav nostalgia_media.oxfs -media_header.txt studio_state.json -CMakeLists.txt.user -Session.vim -ROM.oxfs -graph_info.json +tags diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index 100a9a6f..37b0cba1 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -2,7 +2,7 @@