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
6ccb580c
Unverified
Commit
6ccb580c
authored
Aug 30, 2021
by
Libretro-Admin
Committed by
GitHub
Aug 30, 2021
Browse files
Merge pull request #149 from cout/increase_sram_size
Increase SRAM size
parents
d0c0e763
160bc2fc
Pipeline
#49236
passed with stages
in 3 minutes and 19 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/memmap.c
View file @
6ccb580c
...
@@ -367,7 +367,7 @@ static void S9xDeinterleaveGD24 (int size, uint8 *base)
...
@@ -367,7 +367,7 @@ static void S9xDeinterleaveGD24 (int size, uint8 *base)
bool8
Init
(
void
)
bool8
Init
(
void
)
{
{
Memory
.
RAM
=
(
uint8
*
)
malloc
(
0x20000
);
Memory
.
RAM
=
(
uint8
*
)
malloc
(
0x20000
);
Memory
.
SRAM
=
(
uint8
*
)
malloc
(
0x
2
0000
);
Memory
.
SRAM
=
(
uint8
*
)
malloc
(
0x
8
0000
);
Memory
.
VRAM
=
(
uint8
*
)
malloc
(
0x10000
);
Memory
.
VRAM
=
(
uint8
*
)
malloc
(
0x10000
);
Memory
.
ROM
=
(
uint8
*
)
malloc
(
MAX_ROM_SIZE
+
0x200
+
0x8000
);
Memory
.
ROM
=
(
uint8
*
)
malloc
(
MAX_ROM_SIZE
+
0x200
+
0x8000
);
...
@@ -416,7 +416,7 @@ bool8 Init (void)
...
@@ -416,7 +416,7 @@ bool8 Init (void)
}
}
memset
(
Memory
.
RAM
,
0
,
0x20000
);
memset
(
Memory
.
RAM
,
0
,
0x20000
);
memset
(
Memory
.
SRAM
,
0
,
0x
2
0000
);
memset
(
Memory
.
SRAM
,
0
,
0x
8
0000
);
memset
(
Memory
.
VRAM
,
0
,
0x10000
);
memset
(
Memory
.
VRAM
,
0
,
0x10000
);
memset
(
Memory
.
ROM
,
0
,
MAX_ROM_SIZE
+
0x200
+
0x8000
);
memset
(
Memory
.
ROM
,
0
,
MAX_ROM_SIZE
+
0x200
+
0x8000
);
...
...
src/snapshot.c
View file @
6ccb580c
...
@@ -1285,7 +1285,7 @@ void S9xFreezeToStream (STREAM stream)
...
@@ -1285,7 +1285,7 @@ void S9xFreezeToStream (STREAM stream)
FreezeBlock
(
stream
,
"RAM"
,
Memory
.
RAM
,
0x20000
);
FreezeBlock
(
stream
,
"RAM"
,
Memory
.
RAM
,
0x20000
);
FreezeBlock
(
stream
,
"SRA"
,
Memory
.
SRAM
,
0x
2
0000
);
FreezeBlock
(
stream
,
"SRA"
,
Memory
.
SRAM
,
0x
8
0000
);
FreezeBlock
(
stream
,
"FIL"
,
Memory
.
FillRAM
,
0x8000
);
FreezeBlock
(
stream
,
"FIL"
,
Memory
.
FillRAM
,
0x8000
);
...
@@ -1752,9 +1752,9 @@ int S9xUnfreezeFromStream (STREAM stream)
...
@@ -1752,9 +1752,9 @@ int S9xUnfreezeFromStream (STREAM stream)
break
;
break
;
if
(
fast
)
if
(
fast
)
result
=
UnfreezeBlock
(
stream
,
"SRA"
,
Memory
.
SRAM
,
0x
2
0000
);
result
=
UnfreezeBlock
(
stream
,
"SRA"
,
Memory
.
SRAM
,
0x
8
0000
);
else
else
result
=
UnfreezeBlockCopy
(
stream
,
"SRA"
,
&
local_sram
,
0x
2
0000
);
result
=
UnfreezeBlockCopy
(
stream
,
"SRA"
,
&
local_sram
,
0x
8
0000
);
if
(
result
!=
SUCCESS
)
if
(
result
!=
SUCCESS
)
break
;
break
;
...
@@ -1886,7 +1886,7 @@ int S9xUnfreezeFromStream (STREAM stream)
...
@@ -1886,7 +1886,7 @@ int S9xUnfreezeFromStream (STREAM stream)
memcpy
(
Memory
.
RAM
,
local_ram
,
0x20000
);
memcpy
(
Memory
.
RAM
,
local_ram
,
0x20000
);
if
(
local_sram
)
if
(
local_sram
)
memcpy
(
Memory
.
SRAM
,
local_sram
,
0x
2
0000
);
memcpy
(
Memory
.
SRAM
,
local_sram
,
0x
8
0000
);
if
(
local_fillram
)
if
(
local_fillram
)
memcpy
(
Memory
.
FillRAM
,
local_fillram
,
0x8000
);
memcpy
(
Memory
.
FillRAM
,
local_fillram
,
0x8000
);
...
...
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