sdl now builds
This commit is contained in:
parent
6733a2f8a3
commit
8b03a5401b
|
@ -7,7 +7,9 @@
|
|||
#include <strings.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdlib.h>
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
|
||||
|
||||
#include "main.h"
|
||||
|
@ -388,7 +390,7 @@ FCEUD_Update(uint8 *XBuf,
|
|||
/**
|
||||
* Opens a file to be read a byte at a time.
|
||||
*/
|
||||
std::fstream* FCEUD_UTF8_fstream(const char *n, const char *m)
|
||||
std::fstream* FCEUD_UTF8_fstream(const char *fn, const char *m)
|
||||
{
|
||||
std::ios_base::openmode mode = std::ios_base::binary;
|
||||
if(!strcmp(m,"r") || !strcmp(m,"rb"))
|
||||
|
@ -404,7 +406,7 @@ std::fstream* FCEUD_UTF8_fstream(const char *n, const char *m)
|
|||
else if(!strcmp(m,"a+") || !strcmp(m,"a+b"))
|
||||
mode |= std::ios_base::in | std::ios_base::out | std::ios_base::app;
|
||||
|
||||
return new std::fstream(n,mode);
|
||||
return new std::fstream(fn,mode);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -2,6 +2,7 @@ my_list = Split("""
|
|||
crc32.cpp
|
||||
endian.cpp
|
||||
general.cpp
|
||||
guid.cpp
|
||||
md5.cpp
|
||||
memory.cpp
|
||||
unzip.cpp
|
||||
|
|
Loading…
Reference in New Issue