Fix warning (-Wimplicit-int)
This commit is contained in:
@@ -282,13 +282,13 @@ void FDSSoundReset(void) {
|
|||||||
GameExpSound.RChange = FDS_ESI;
|
GameExpSound.RChange = FDS_ESI;
|
||||||
}
|
}
|
||||||
|
|
||||||
DECLFR(FDSSoundRead) {
|
uint8 FDSSoundRead(uint32 A) {
|
||||||
if (A >= 0x4040 && A < 0x4080) return FDSWaveRead(A);
|
if (A >= 0x4040 && A < 0x4080) return FDSWaveRead(A);
|
||||||
if (A >= 0x4090 && A < 0x4093) return FDSSRead(A);
|
if (A >= 0x4090 && A < 0x4093) return FDSSRead(A);
|
||||||
return X.DB;
|
return X.DB;
|
||||||
}
|
}
|
||||||
|
|
||||||
DECLFW(FDSSoundWrite) {
|
void FDSSoundWrite(uint32 A, uint8 V) {
|
||||||
if (A >= 0x4040 && A < 0x4080) FDSWaveWrite(A, V);
|
if (A >= 0x4040 && A < 0x4080) FDSWaveWrite(A, V);
|
||||||
else if (A >= 0x4080 && A < 0x408B) FDSSWrite(A, V);
|
else if (A >= 0x4080 && A < 0x408B) FDSSWrite(A, V);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +1,14 @@
|
|||||||
#ifndef FDS_APU_H
|
#ifndef FDS_APU_H
|
||||||
#define FDS_APU_H
|
#define FDS_APU_H
|
||||||
|
|
||||||
|
#include "fceu-types.h"
|
||||||
|
|
||||||
void FDSSoundReset(void);
|
void FDSSoundReset(void);
|
||||||
void FDSSoundStateAdd(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);
|
void FDSSoundPower(void);
|
||||||
DECLFR(FDSSoundRead); /* $4040-$407F, $4090-$4092 */
|
uint8 FDSSoundRead(uint32 A); /* $4040-$407F, $4090-$4092 */
|
||||||
DECLFW(FDSSoundWrite); /* $4040-$407F, $4080-$408A */
|
void FDSSoundWrite(uint32 A, uint8 V); /* $4040-$407F, $4080-$408A */
|
||||||
|
|
||||||
#endif /* FDS_APU_H */
|
#endif /* FDS_APU_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user