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
Fmsx
Commits
1a444795
Commit
1a444795
authored
Aug 11, 2018
by
Sven
Browse files
add memory hooks for cheat/rumble
parent
bf4c03b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
libretro.c
View file @
1a444795
...
...
@@ -18,7 +18,9 @@ static unsigned image_buffer_height;
static
uint16_t
XPal
[
80
];
static
uint16_t
BPal
[
256
];
static
uint16_t
XPal0
;
extern
byte
*
RAMData
;
extern
int
RAMPages
;
#define SND_RATE 48000
...
...
@@ -734,12 +736,17 @@ unsigned retro_get_region(void)
}
void
*
retro_get_memory_data
(
unsigned
id
)
{
{
if
(
id
==
RETRO_MEMORY_SYSTEM_RAM
)
return
RAMData
;
return
NULL
;
}
size_t
retro_get_memory_size
(
unsigned
id
)
{
{
if
(
id
==
RETRO_MEMORY_SYSTEM_RAM
)
return
RAMPages
*
0x4000
;
return
0
;
}
...
...
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