small fixes

This commit is contained in:
dborth 2009-07-17 18:01:31 +00:00
parent 6cd1e80ef1
commit a44b9cf52e
4 changed files with 33 additions and 111 deletions

View File

@ -1,90 +0,0 @@
my_list = Split("""
01-222.cpp
103.cpp
106.cpp
108.cpp
112.cpp
117.cpp
120.cpp
121.cpp
15.cpp
164.cpp
175.cpp
176.cpp
177.cpp
178.cpp
179.cpp
183.cpp
185.cpp
186.cpp
187.cpp
189.cpp
199.cpp
208.cpp
222.cpp
23.cpp
235.cpp
3d-block.cpp
411120-c.cpp
43.cpp
57.cpp
603-5052.cpp
68.cpp
8157.cpp
8237.cpp
830118C.cpp
88.cpp
90.cpp
95.cpp
a9711.cpp
a9746.cpp
addrlatch.cpp
ax5705.cpp
bandai.cpp
bmc13in1jy110.cpp
bmc42in1r.cpp
bmc64in1nr.cpp
bmc70in1.cpp
bonza.cpp
bs-5.cpp
copyfami_mmc3.cpp
dance.cpp
datalatch.cpp
deirom.cpp
dream.cpp
__dummy_mapper.cpp
edu2000.cpp
fk23c.cpp
ghostbusters63in1.cpp
gs-2004.cpp
gs-2013.cpp
h2288.cpp
karaoke.cpp
kof97.cpp
konami-qtai.cpp
ks7032.cpp
malee.cpp
mmc1.cpp
mmc3.cpp
mmc5.cpp
n-c22m.cpp
n106.cpp
n625092.cpp
novel.cpp
sachen.cpp
sc-127.cpp
sheroes.cpp
sl1632.cpp
smb2j.cpp
subor.cpp
super24.cpp
supervision.cpp
t-227-1.cpp
t-262.cpp
tengen.cpp
tf-1201.cpp
""")
for x in range(len(my_list)):
my_list[x] = 'boards/' + my_list[x]
Return('my_list')

View File

@ -65,8 +65,12 @@
#include "drivers/win/memwatch.h"
#include "drivers/win/tracer.h"
#else
#ifdef GEKKO
#include "driver.h"
#else
#include "drivers/sdl/sdl.h"
#endif
#endif
using namespace std;

View File

@ -122,7 +122,9 @@ void iNESGI(GI h) //bbit edited: removed static keyword
break;
case GI_CLOSE:
{
#ifndef GEKKO
FCEU_SaveGameSave(&iNESCart);
#endif
if(iNESCart.Close) iNESCart.Close();
#ifdef _USE_SHARED_MEMORY_
@ -696,7 +698,9 @@ int iNESLoad(const char *name, FCEUFILE *fp, int OverwriteVidMode)
GameInfo->mappernum = MapperNo;
MapperInit();
#ifndef GEKKO
FCEU_LoadGameSave(&iNESCart);
#endif
strcpy(LoadedRomFName,name); //bbit edited: line added
GameInterface=iNESGI;

View File

@ -545,7 +545,9 @@ static void UNIFGI(GI h)
if(UNIFchrrama) memset(UNIFchrrama,0,8192);
break;
case GI_CLOSE:
#ifndef GEKKO
FCEU_SaveGameSave(&UNIFCart);
#endif
if(UNIFCart.Close)
UNIFCart.Close();
FreeUNIF();
@ -592,7 +594,9 @@ int UNIFLoad(const char *name, FCEUFILE *fp)
if(!InitializeBoard())
goto aborto;
#ifndef GEKKO
FCEU_LoadGameSave(&UNIFCart);
#endif
GameInterface=UNIFGI;
return 1;