mirror of
https://github.com/libretro/libretro-fceumm.git
synced 2025-02-11 03:16:13 +00:00
Fix warning (-Wimplicit-int)
This commit is contained in:
parent
a821de094d
commit
f7c1b002ee
@ -282,13 +282,13 @@ void FDSSoundReset(void) {
|
||||
GameExpSound.RChange = FDS_ESI;
|
||||
}
|
||||
|
||||
DECLFR(FDSSoundRead) {
|
||||
uint8 FDSSoundRead(uint32 A) {
|
||||
if (A >= 0x4040 && A < 0x4080) return FDSWaveRead(A);
|
||||
if (A >= 0x4090 && A < 0x4093) return FDSSRead(A);
|
||||
return X.DB;
|
||||
}
|
||||
|
||||
DECLFW(FDSSoundWrite) {
|
||||
void FDSSoundWrite(uint32 A, uint8 V) {
|
||||
if (A >= 0x4040 && A < 0x4080) FDSWaveWrite(A, V);
|
||||
else if (A >= 0x4080 && A < 0x408B) FDSSWrite(A, V);
|
||||
}
|
||||
|
@ -1,12 +1,14 @@
|
||||
#ifndef FDS_APU_H
|
||||
#define FDS_APU_H
|
||||
|
||||
#include "fceu-types.h"
|
||||
|
||||
void FDSSoundReset(void);
|
||||
void FDSSoundStateAdd(void);
|
||||
|
||||
/* Used for fds conversion-based mappers to allow access to fds apu registers */
|
||||
/* Used for FDS conversion-based mappers to allow access to FDS APU registers */
|
||||
void FDSSoundPower(void);
|
||||
DECLFR(FDSSoundRead); /* $4040-$407F, $4090-$4092 */
|
||||
DECLFW(FDSSoundWrite); /* $4040-$407F, $4080-$408A */
|
||||
uint8 FDSSoundRead(uint32 A); /* $4040-$407F, $4090-$4092 */
|
||||
void FDSSoundWrite(uint32 A, uint8 V); /* $4040-$407F, $4080-$408A */
|
||||
|
||||
#endif /* FDS_APU_H */
|
||||
#endif /* FDS_APU_H */
|
||||
|
Loading…
x
Reference in New Issue
Block a user