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
snes9x2010
Commits
f445ce41
Unverified
Commit
f445ce41
authored
Aug 30, 2021
by
Libretro-Admin
Committed by
GitHub
Aug 30, 2021
Browse files
Merge pull request #151 from cout/fix_memory_descriptor_initialization
Assign map descriptors after ROM is loaded
parents
6ccb580c
f2f2fb8d
Pipeline
#51938
passed with stages
in 27 minutes and 36 seconds
Changes
1
Pipelines
15
Hide whitespace changes
Inline
Side-by-side
libretro/libretro.c
View file @
f445ce41
...
...
@@ -1420,9 +1420,6 @@ bool retro_load_game(const struct retro_game_info *game)
init_descriptors
();
memorydesc_c
=
0
;
map
.
descriptors
=
memorydesc
+
MAX_MAPS
-
memorydesc_c
;
map
.
num_descriptors
=
memorydesc_c
;
/* Hack. S9x cannot do stuff from RAM. <_< */
memstream_set_buffer
((
uint8_t
*
)
game
->
data
,
(
uint64_t
)
game
->
size
);
...
...
@@ -1444,6 +1441,10 @@ bool retro_load_game(const struct retro_game_info *game)
retro_set_audio_buff_status_cb
();
set_system_specs
();
map
.
descriptors
=
memorydesc
+
MAX_MAPS
-
memorydesc_c
;
map
.
num_descriptors
=
memorydesc_c
;
environ_cb
(
RETRO_ENVIRONMENT_SET_MEMORY_MAPS
,
&
map
);
return
TRUE
;
...
...
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