commit 8dda1836bacc67f0c4975004b27146443d265ef1
Author: Jon Bell <j.to.the.bell@gmail.com>
AuthorDate: Wed Oct 12 19:46:22 2022 -0600
Commit: Jon Bell <j.to.the.bell@gmail.com>
CommitDate: Wed Oct 12 19:46:22 2022 -0600
cleanup
---
.github/workflows/build.yml.old | 163 ----------------------------------------
platform/libretro/Makefile.old | 130 --------------------------------
source/PicoRam.h | 17 -----
source/vm.cpp | 12 ---
4 files changed, 322 deletions(-)
diff --git a/.github/workflows/build.yml.old b/.github/workflows/build.yml.old
deleted file mode 100644
index ab7c7d2..0000000
--- a/.github/workflows/build.yml.old
+++ /dev/null
@@ -1,163 +0,0 @@
-name: fake-08
-
-on:
- push:
- branches: '**'
- pull_request:
- branches: [ $default-branch ]
-
-jobs:
- first:
- name: 3DS
- runs-on: ubuntu-latest
-
- steps:
- - name: Checkout
- uses: actions/checkout@v2
- with:
- submodules : recursive
-
- - name: Build
- run: |
- docker run -e ENABLE_COMPATIBILITY_REPORTING -v $GITHUB_WORKSPACE:/build_dir devkitpro/devkitarm /bin/bash -ex /build_dir/.github/workflows/build3ds.sh
-
- - uses: actions/upload-artifact@v2
- with:
- name: Nintendo 3DS
- path: |
- platform/3ds/*.3dsx
- platform/3ds/*.cia
-
- second:
- name: Switch
- runs-on: ubuntu-latest
-
- steps:
- - name: Checkout
- uses: actions/checkout@v2
- with:
- submodules : recursive
-
- - name: Build
- run: |
- docker run -e ENABLE_COMPATIBILITY_REPORTING -v $GITHUB_WORKSPACE:/build_dir devkitpro/devkita64 /bin/bash -ex /build_dir/.github/workflows/buildSwitch.sh
-
- - uses: actions/upload-artifact@v2
- with:
- name: Nintendo Switch
- path: |
- platform/switch/*.nro
-
- third:
- name: WiiU
- runs-on: ubuntu-latest
-
- steps:
- - name: Checkout
- uses: actions/checkout@v2
- with:
- submodules : recursive
-
- - name: Build
- run: |
- docker run -e ENABLE_COMPATIBILITY_REPORTING -v $GITHUB_WORKSPACE:/build_dir jondbell/devkitppc-wiiu-sdl2 /bin/bash -ex /build_dir/.github/workflows/buildWiiU.sh
-
- - uses: actions/upload-artifact@v2
- with:
- name: Nintendo Wii U
- path: |
- platform/wiiu/*.rpx
-
- fourth:
- name: Vita
- runs-on: ubuntu-latest
-
- steps:
- - name: Checkout
- uses: actions/checkout@v2
- with:
- submodules : recursive
-
- - name: Build
- run: |
- docker run -e ENABLE_COMPATIBILITY_REPORTING -v $GITHUB_WORKSPACE:/build_dir gnuton/vitasdk-docker:20220413 /bin/sh -ex /build_dir/.github/workflows/buildVita.sh
-
- - uses: actions/upload-artifact@v2
- with:
- name: PS Vita
- path: |
- platform/vita/*.vpk
-
- fifth:
- name: Bittboy
- runs-on: ubuntu-latest
-
- steps:
- - name: Checkout
- uses: actions/checkout@v2
- with:
- submodules : recursive
-
- - name: Build
- run: |
- docker run -e ENABLE_COMPATIBILITY_REPORTING -v $GITHUB_WORKSPACE:/build_dir mcejp/arm-miyoo-linux-musleabi-gcc /bin/sh -ex /build_dir/.github/workflows/buildBittboy.sh
-
- - uses: actions/upload-artifact@v2
- with:
- name: Bittboy
- path: |
- platform/bittboy/FAKE08
- platform/bittboy/pico8.elf
-
- sixth:
- name: MiyooMini
- runs-on: ubuntu-latest
-
- steps:
- - name: Checkout
- uses: actions/checkout@v2
- with:
- submodules : recursive
-
- - name: Build
- run: |
- docker run -e ENABLE_COMPATIBILITY_REPORTING -v $GITHUB_WORKSPACE:/build_dir jondbell/union-miyoomini-toolchain /bin/sh -ex /build_dir/.github/workflows/buildMiyooMini.sh
-
- - uses: actions/upload-artifact@v2
- with:
- name: MiyooMini
- path: |
- platform/miyoomini/FAKE08
-
- seventh:
- name: Opendingux
- runs-on: ubuntu-latest
-
- steps:
- - name: Checkout
- uses: actions/checkout@v2
- with:
- submodules : recursive
-
- - name: Build
- run: |
- docker run -e ENABLE_COMPATIBILITY_REPORTING -v $GITHUB_WORKSPACE:/build_dir jondbell/gcw0 /bin/sh -ex /build_dir/.github/workflows/buildGcw0.sh
-
- - uses: actions/upload-artifact@v2
- with:
- name: Gcw0
- path: |
- platform/gcw0/fake08_gcw0.opk
-
- eighth:
- name: Tests
- runs-on: ubuntu-latest
-
- steps:
- - name: Checkout
- uses: actions/checkout@v2
- with:
- submodules : recursive
-
- - name: Build
- run: make tests
diff --git a/platform/libretro/Makefile.old b/platform/libretro/Makefile.old
deleted file mode 100644
index c1f0454..0000000
--- a/platform/libretro/Makefile.old
+++ /dev/null
@@ -1,130 +0,0 @@
-
-#---------------------------------------------------------------------------------
-# TARGET is the name of the output
-# BUILD is the directory where object files & intermediate files will be placed
-# SOURCES is a list of directories containing source code
-# INCLUDES is a list of directories containing header files
-#
-#---------------------------------------------------------------------------------
-#todo: multi platform with extension
-TARGET := fake08_libretro.dylib
-BUILD := build
-SOURCES := ../../source ../../libs/z8lua ../../libs/utf8-util ../../libs/lodepng ../../libs/simpleini ../../libs/miniz ./
-INCLUDES := ../../source ../../include ../../libs/z8lua ../../libs/utf8-util ../../libs/lodepng ../../libs/simpleini ../../libs/miniz ./
-
-#---------------------------------------------------------------------------------
-# options for code generation
-#---------------------------------------------------------------------------------
-CC = $(CXX)
-
-CFLAGS := -fPIC -g -O2 -Wall -Wno-deprecated -ffunction-sections -std=c++17 \
- $(DEFINES)
-
-CFLAGS += $(INCLUDE) -DVER_STR=\"$(APP_VERSION)\"
-
-CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions
-#-std=gnu++11 was used before... not sure of difference
-
-
-LDFLAGS := -dynamiclib $(LIBS)
-
-
-#---------------------------------------------------------------------------------
-# no real need to edit anything past this point unless you need to add additional
-# rules for different file extensions
-#---------------------------------------------------------------------------------
-ifneq ($(BUILD),$(notdir $(CURDIR)))
-#---------------------------------------------------------------------------------
-
-export OUTPUT := $(CURDIR)/$(TARGET)
-export TOPDIR := $(CURDIR)
-
-export VPATH := $(foreach dir,$(SOURCES),$(CURDIR)/$(dir)) \
- $(foreach dir,$(DATA),$(CURDIR)/$(dir))
-
-export DEPSDIR := $(CURDIR)/$(BUILD)
-
-CFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.c)))
-CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp)))
-
-
-CPPFILES := $(filter-out main.cpp,$(CPPFILES))
-#CPPFILES := $(filter-out hostCommonFunctions.cpp,$(CPPFILES))
-
-#---------------------------------------------------------------------------------
-# use CXX for linking C++ projects, CC for standard C
-#---------------------------------------------------------------------------------
-ifeq ($(strip $(CPPFILES)),)
-#---------------------------------------------------------------------------------
- export LD := $(CC)
-#---------------------------------------------------------------------------------
-else
-#---------------------------------------------------------------------------------
- export LD := $(CXX)
-#---------------------------------------------------------------------------------
-endif
-#---------------------------------------------------------------------------------
-
-export OFILES_BIN := $(addsuffix .o,$(BINFILES))
-export OFILES_SRC := $(CPPFILES:.cpp=.o) $(CFILES:.c=.o) $(SFILES:.s=.o)
-export OFILES := $(OFILES_BIN) $(OFILES_SRC)
-export HFILES_BIN := $(addsuffix .h,$(subst .,_,$(BINFILES)))
-
-export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \
- $(foreach dir,$(LIBDIRS),-I$(dir)/include) \
- -I$(CURDIR)/$(BUILD)
-
-export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib)
-
-
-.PHONY: $(BUILD) clean all echo
-
-#---------------------------------------------------------------------------------
-
-
-$(BUILD):
- @[ -d $@ ] || mkdir -p $@
- @$(MAKE) --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile
-
-#---------------------------------------------------------------------------------
-clean:
- @echo clean ...
- @rm -fr $(BUILD) $(TARGET)
-
-
-echo:
- @echo echo ...
- @echo $(CFILES)
- @echo $(CPPFILES)
-
-
-#---------------------------------------------------------------------------------
-else
-.PHONY: all
-
-DEPENDS := $(OFILES:.o=.d)
-
-#---------------------------------------------------------------------------------
-# main targets
-#---------------------------------------------------------------------------------
-all : $(OUTPUT)
-
-
-$(OUTPUT) : $(OFILES)
- $(CC) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
-
-$(OFILES_SRC) : $(HFILES_BIN)
-
-#---------------------------------------------------------------------------------
-# you need a rule like this for each extension you use as binary data
-#---------------------------------------------------------------------------------
-%.bin.o %_bin.h : %.bin
-#---------------------------------------------------------------------------------
- @echo $(notdir $<)
- @$(bin2o)
-
--include $(DEPENDS)
-
-#---------------------------------------------------------------------------------------
-endif
-#---------------------------------------------------------------------------------------
diff --git a/source/PicoRam.h b/source/PicoRam.h
index ad23ddc..7924558 100644
--- a/source/PicoRam.h
+++ b/source/PicoRam.h
@@ -292,20 +292,3 @@ struct PicoRam
};
};
-/*
-struct saveState_t
-{
- union
- {
- struct
- {
- PicoRam memory;
- audioState_t audioState;
- char luaStateStr[1024*1024*2];
-
- };
-
- uint8_t data[sizeof(PicoRam) + sizeof(audioState_t) + 1024*1024*2];
- };
-};
-*/
diff --git a/source/vm.cpp b/source/vm.cpp
index b90072d..10118dc 100644
--- a/source/vm.cpp
+++ b/source/vm.cpp
@@ -520,21 +520,9 @@ void Vm::deserializeCartDataToMemory(std::string cartDataStr) {
}
}
-#define SAVESTATEBUFFSIZE 1024*1024*2
-static char saveStateBuffer[SAVESTATEBUFFSIZE];
-
void Vm::UpdateAndDraw() {
update_buttons();
- if (_input->btnp(7) && _input->btn(3)) {
- size_t length = _host->getFileContents("testsavestate.state", saveStateBuffer);
- deserializeLuaState(saveStateBuffer, length);
- }
- else if (_input->btnp(7)) {
- size_t length = serializeLuaState(saveStateBuffer);
- _host->writeBufferToFile("testsavestate.state", saveStateBuffer, length);
- }
-
_picoFrameCount++;
if (_cartChangeQueued) {