diff options
author | neonloop | 2023-01-30 15:56:43 +0000 |
---|---|---|
committer | neonloop | 2023-01-30 15:56:43 +0000 |
commit | 3fc837c6eb2d087f303b60f155ce00b0e8f3998f (patch) | |
tree | 90dc8b718f59de7c04edfb0fa4bf91f188831595 /main.c | |
parent | 436f55f7975cf6ab5c8308c5071086047b46201e (diff) | |
download | picoarch-3fc837c6eb2d087f303b60f155ce00b0e8f3998f.tar.gz picoarch-3fc837c6eb2d087f303b60f155ce00b0e8f3998f.tar.bz2 picoarch-3fc837c6eb2d087f303b60f155ce00b0e8f3998f.zip |
Adds override for deferring load state by number of frames
Fixes instant play for fake-08 and pcsx_rearmmed with bios intro
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -611,6 +611,8 @@ int state_resume(void) { int main(int argc, char **argv) { char content_path[MAX_PATH]; + const struct core_override *override; + int defer_frames = 0; if (argc > 1) { if (!strcmp(argv[1], "-h") || !strcmp(argv[1], "--help")) { @@ -689,6 +691,14 @@ int main(int argc, char **argv) { show_startup_message(); + override = get_overrides(); + defer_frames = CORE_OVERRIDE(override, defer_frames, 0); + if (defer_frames > 0) { + toggle_fast_forward(0); + while(defer_frames--) core_run_frame(); + toggle_fast_forward(1); + } + #ifdef FUNKEY_S FK_InitMenu(); FK_Resume(); |