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