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
5a741679
Commit
5a741679
authored
Apr 21, 2020
by
Libretro-Admin
Browse files
Fix C89 issues
parent
92cf1c27
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/apu.c
View file @
5a741679
...
...
@@ -3435,6 +3435,8 @@ void S9xSetSoundMute(bool8 mute)
bool8
S9xInitAPU
(
void
)
{
unsigned
i
;
uint8_t
APUROM
[
64
]
=
{
0xCD
,
0xEF
,
0xBD
,
0xE8
,
0x00
,
0xC6
,
0x1D
,
0xD0
,
...
...
@@ -3501,7 +3503,7 @@ bool8 S9xInitAPU (void)
/* unpack cycle table */
for
(
uint_fast8_t
i
=
0
;
i
<
128
;
i
++
)
for
(
i
=
0
;
i
<
128
;
i
++
)
{
int
n
=
cycle_table
[
i
];
m
.
cycle_table
[
i
*
2
+
0
]
=
n
>>
4
;
...
...
src/memmap.c
View file @
5a741679
...
...
@@ -2920,6 +2920,7 @@ static bool8 InitROM (void)
}
{
unsigned
i
;
const
struct
{
const
char
*
fmt
;
int
val
;
...
...
@@ -2931,7 +2932,8 @@ static bool8 InitROM (void)
{
"PPU.SFXSpeedupHack = %d"
,
PPU
.
SFXSpeedupHack
},
{
"coldata_update_screen = %d"
,
coldata_update_screen
}
};
for
(
int
i
=
0
;
i
<
6
;
i
++
)
for
(
i
=
0
;
i
<
6
;
i
++
)
{
snprintf
(
String
,
sizeof
(
String
),
fmt_val
[
i
].
fmt
,
fmt_val
[
i
].
val
);
S9xMessage
(
S9X_MSG_INFO
,
S9X_CATEGORY_MAP
,
String
);
...
...
src/sa1.c
View file @
5a741679
...
...
@@ -368,25 +368,26 @@ void S9xSA1PostLoadState (void)
static
void
S9xSetSA1MemMap
(
uint32
which1
,
uint8
map
)
{
unsigned
c
,
i
;
unsigned
start
=
which1
*
0x100
+
0xc00
;
unsigned
start2
=
which1
*
0x200
;
if
(
which1
>=
2
)
start2
+=
0x400
;
for
(
unsigned
c
=
0
;
c
<
0x100
;
c
+=
16
)
for
(
c
=
0
;
c
<
0x100
;
c
+=
16
)
{
uint8
*
block
=
&
Memory
.
ROM
[(
map
&
7
)
*
0x100000
+
(
c
<<
12
)];
for
(
unsigned
i
=
c
;
i
<
c
+
16
;
i
++
)
for
(
i
=
c
;
i
<
c
+
16
;
i
++
)
Memory
.
Map
[
start
+
i
]
=
SA1
.
Map
[
start
+
i
]
=
block
;
}
for
(
unsigned
c
=
0
;
c
<
0x200
;
c
+=
16
)
for
(
c
=
0
;
c
<
0x200
;
c
+=
16
)
{
int32
offset
=
(((
map
&
0x80
)
?
map
:
which1
)
&
7
)
*
0x100000
+
(
c
<<
11
)
-
0x8000
;
uint8
*
block
=
&
Memory
.
ROM
[
offset
];
for
(
unsigned
i
=
c
+
8
;
i
<
c
+
16
;
i
++
)
for
(
i
=
c
+
8
;
i
<
c
+
16
;
i
++
)
Memory
.
Map
[
start2
+
i
]
=
SA1
.
Map
[
start2
+
i
]
=
block
;
}
}
...
...
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