aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorneonloop2023-01-16 23:15:21 +0000
committerneonloop2023-01-16 23:15:21 +0000
commit9128b4e516438301cfcfa7f400d9a4b46bac73ac (patch)
treeba816259f09772867a16480178f27d7f928d3774 /main.c
parent16b5618b17e11773a416ab377bdd3fcd4098520b (diff)
downloadpicoarch-9128b4e516438301cfcfa7f400d9a4b46bac73ac.tar.gz
picoarch-9128b4e516438301cfcfa7f400d9a4b46bac73ac.tar.bz2
picoarch-9128b4e516438301cfcfa7f400d9a4b46bac73ac.zip
Adds fake-08 core
Includes resume state patch from shauninman, thanks! https://github.com/shauninman/picoarch/blob/miniui-miyoomini/patches/fake-08/001-fix-resume-state.patch
Diffstat (limited to 'main.c')
-rw-r--r--main.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/main.c b/main.c
index 6625133..2884850 100644
--- a/main.c
+++ b/main.c
@@ -34,6 +34,7 @@ bool should_quit = false;
unsigned current_audio_buffer_size;
char core_name[MAX_PATH];
int config_override = 0;
+int resume_slot = -1;
static int last_screenshot = 0;
static uint32_t vsyncs;
@@ -228,6 +229,11 @@ void set_defaults(void)
scale_filter = SCALE_FILTER_SMOOTH;
}
+ if (!strcmp(core_name, "fake-08")) {
+ scale_size = SCALE_SIZE_ASPECT;
+ scale_filter = SCALE_FILTER_NEAREST;
+ }
+
if (!strcmp(core_name, "pcsx_rearmed") ||
!strcmp(core_name, "picodrive")) {
scale_size = SCALE_SIZE_FULL;
@@ -584,6 +590,18 @@ static void adjust_audio(void) {
}
}
+
+int state_resume(void) {
+ int ret = 0;
+
+ if (resume_slot != -1) {
+ state_slot = resume_slot;
+ ret = state_read();
+ resume_slot = -1;
+ }
+ return ret;
+}
+
int main(int argc, char **argv) {
char content_path[MAX_PATH];
#ifdef FUNKEY_S
@@ -677,6 +695,7 @@ int main(int argc, char **argv) {
}
instant_play = false;
+ FK_InitInstantPlay(argc, argv);
}
#endif
show_startup_message();
@@ -685,7 +704,6 @@ int main(int argc, char **argv) {
#ifdef FUNKEY_S
remove(autosave_path);
remove_config(CONFIG_TYPE_AUTO);
- FK_InitInstantPlay(argc, argv);
#endif
do {