Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
fuse-libretro
Commits
6e48b759
Unverified
Commit
6e48b759
authored
May 12, 2021
by
Thomas Conté
Committed by
GitHub
May 12, 2021
Browse files
Merge pull request #99 from libretro/fix/scorpion-autoload-tape-freeze
Do not autoload tapes on Scorpion
parents
330655e4
9785b3c8
Pipeline
#25081
passed with stages
in 20 minutes and 25 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
src/libretro.c
View file @
6e48b759
...
...
@@ -673,13 +673,25 @@ bool retro_load_game(const struct retro_game_info *info)
const
char
*
ext
;
libspectrum_id_t
type
=
identify_file_get_ext
(
tape_data
,
tape_size
,
&
ext
);
libspectrum_class_t
class
;
libspectrum_identify_class
(
&
class
,
type
);
char
filename
[
32
];
snprintf
(
filename
,
sizeof
(
filename
),
"*%s"
,
ext
);
filename
[
sizeof
(
filename
)
-
1
]
=
0
;
// autoload is on by default
int
autoload
=
1
;
if
(
!
strcmp
(
settings_current
.
start_machine
,
machine_get_id
(
LIBSPECTRUM_MACHINE_SCORP
))
&&
class
==
LIBSPECTRUM_CLASS_TAPE
)
{
// Disable autoload for tapes on Scorpion 256 (it doesn't work)
autoload
=
0
;
}
fuse_emulation_pause
();
utils_open_file
(
filename
,
1
,
&
type
);
utils_open_file
(
filename
,
autoload
,
&
type
);
display_refresh_all
();
fuse_emulation_unpause
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment