commit bdd162cf1fe8875d147ef1bc4cfa5de1cfa5c33f
Author: DPS2004 <dpsophinos@gmail.com>
AuthorDate: Fri Mar 4 10:19:42 2022 -0500
Commit: DPS2004 <dpsophinos@gmail.com>
CommitDate: Mon Mar 28 08:58:56 2022 -0400
man, imagine git submodules actually working, wouldn't that be nice
---
.gitmodules | 3 ---
Makefile | 4 ++--
libs/miniz | 1 -
source/host.h | 2 ++
source/hostCommonFunctions.cpp | 6 ++++++
5 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/.gitmodules b/.gitmodules
index 47fd173..6102cb8 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,6 +1,3 @@
[submodule "libs/z8lua"]
path = libs/z8lua
url = https://github.com/jtothebell/z8lua.git
-[submodule "libs/miniz"]
- path = libs/miniz
- url = https://github.com/richgel999/miniz.git
diff --git a/Makefile b/Makefile
index d5f55f4..f08e675 100644
--- a/Makefile
+++ b/Makefile
@@ -12,8 +12,8 @@ export APP_VERSION = v$(V_MAJOR).$(V_MINOR).$(V_PATCH).$(V_BUILD)
#paths are relative to platform folder
-export SOURCES = ../../source ../../libs/z8lua ../../libs/utf8-util ../../libs/lodepng ../../libs/simpleini
-export INCLUDES = ../../include ../../libs/z8lua ../../libs/utf8-util ../../libs/lodepng ../../libs/simpleini
+export SOURCES = ../../source ../../libs/z8lua ../../libs/utf8-util ../../libs/lodepng ../../libs/simpleini ../../libs/miniz
+export INCLUDES = ../../include ../../libs/z8lua ../../libs/utf8-util ../../libs/lodepng ../../libs/simpleini ../../libs/miniz
.PHONY: all 3ds switch wiiu vita sdl2 sdl clean clean-3ds clean-switch clean-wiiu clean-vita clean-sdl2 clean-sdl
diff --git a/libs/miniz b/libs/miniz
deleted file mode 160000
index 5a38f55..0000000
--- a/libs/miniz
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 5a38f5564a092462817b97014f4477c8f0783f8f
diff --git a/source/host.h b/source/host.h
index 9f4fbe2..acd2ce8 100644
--- a/source/host.h
+++ b/source/host.h
@@ -47,6 +47,8 @@ class Host {
void setUpPaletteColors();
void oneTimeSetup(Audio* audio);
+
+ void unpackCarts();
void setTargetFps(int targetFps);
diff --git a/source/hostCommonFunctions.cpp b/source/hostCommonFunctions.cpp
index b609766..f5018c6 100644
--- a/source/hostCommonFunctions.cpp
+++ b/source/hostCommonFunctions.cpp
@@ -6,6 +6,8 @@
#include "SimpleIni.h"
+#include "miniz.h"
+
using namespace std;
CSimpleIniA settingsIni;
@@ -54,6 +56,10 @@ Color* Host::GetPaletteColors(){
return _paletteColors;
}
+void Host::unpackCarts(){
+ Logger_Write("unzipping pack in carts to p8carts");
+}
+
void Host::loadSettingsIni(){
std::string settingsIniStr = get_file_contents(_logFilePrefix + "settings.ini");