Fix warning (and act like we're using C++)

This commit is contained in:
jeblanchard 2008-06-01 16:31:27 +00:00
parent 69adf6bc61
commit b351ce60b6
4 changed files with 8 additions and 8 deletions

View File

@ -53,7 +53,7 @@ void FCEUI_NetplayText(uint8 *text);
*/
void FCEUD_NetworkClose(void);
int FCEUI_BeginWaveRecord(const char *fn);
bool FCEUI_BeginWaveRecord(const char *fn);
int FCEUI_EndWaveRecord(void);
void FCEUI_ResetNES(void);

View File

@ -33,7 +33,7 @@ int CloseWave()
*
* @return Flag that indicates failure (0) or success (1).
**/
int CreateSoundSave()
bool CreateSoundSave()
{
const char filter[]="MS WAVE(*.wav)\0*.wav\0";
char nameo[2048];
@ -56,5 +56,5 @@ int CreateSoundSave()
return FCEUI_BeginWaveRecord(nameo);
}
return 0;
return false;
}

View File

@ -1,2 +1,2 @@
int CreateSoundSave();
int CloseWave();
bool CreateSoundSave();
int CloseWave();

View File

@ -78,12 +78,12 @@ int FCEUI_EndWaveRecord()
}
int FCEUI_BeginWaveRecord(const char *fn)
bool FCEUI_BeginWaveRecord(const char *fn)
{
int r;
if(!(soundlog=FCEUD_UTF8fopen(fn,"wb")))
return 0;
return false;
wsize=0;
@ -121,5 +121,5 @@ int FCEUI_BeginWaveRecord(const char *fn)
fputs("data",soundlog);
fseek(soundlog,4,SEEK_CUR);
return(1);
return true;
}