mirror of https://github.com/PCSX2/pcsx2.git
bin2cpp: Remove fcloseall usage
fcloseall isn't available on macOS, and everything gets closed when the program exits anyways
This commit is contained in:
parent
7ed0f38623
commit
e17f83c2cf
|
@ -146,8 +146,7 @@ int main(int argc, char* argv[])
|
|||
if( (dest=fopen( Dummy, "wb+" )) == NULL )
|
||||
{
|
||||
printf( "ERROR : I can't open destination file %s\n", Dummy );
|
||||
(void)fcloseall();
|
||||
return 0L;
|
||||
return 1;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@ -195,7 +194,6 @@ int main(int argc, char* argv[])
|
|||
if( ferror( dest ) )
|
||||
{
|
||||
printf( "ERROR writing on target file: %s\n", Dummy );
|
||||
(void)fcloseall();
|
||||
return 20L;
|
||||
}
|
||||
|
||||
|
@ -219,8 +217,6 @@ int main(int argc, char* argv[])
|
|||
|
||||
fprintf(dest,"};\n");
|
||||
|
||||
fcloseall();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue