oh i had forgotten to commit the cdvd.cpp change which used the code from my last update >.>

doesn't really matter though, it just looks up the game in the database and prints the name and serial to console.

i also fixed some bugs in the database file.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2979 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
cottonvibes 2010-05-11 08:21:59 +00:00
parent a1870a845b
commit f26e4a6de6
2 changed files with 28 additions and 1157 deletions

File diff suppressed because it is too large Load Diff

View File

@ -27,6 +27,7 @@
#include "GS.h" // for gsRegionMode #include "GS.h" // for gsRegionMode
#include "Elfheader.h" #include "Elfheader.h"
#include "ps2/BiosTools.h" #include "ps2/BiosTools.h"
#include "DataBase_Loader.h"
wxString DiscID; wxString DiscID;
@ -335,7 +336,6 @@ static __forceinline void _reloadElfInfo(wxString elfpath)
DiscID = fname(0,4) + L"-" + fname(5,3) + fname(9,2); DiscID = fname(0,4) + L"-" + fname(5,3) + fname(9,2);
Console.WriteLn("Disc ID = %s", DiscID.ToUTF8().data()); Console.WriteLn("Disc ID = %s", DiscID.ToUTF8().data());
elfptr = loadElf(elfpath); elfptr = loadElf(elfpath);
ElfCRC = elfptr->getCRC(); ElfCRC = elfptr->getCRC();
@ -345,6 +345,9 @@ static __forceinline void _reloadElfInfo(wxString elfpath)
Console.WriteLn("Entry point = 0x%08x", ElfEntry); Console.WriteLn("Entry point = 0x%08x", ElfEntry);
elfptr.Delete(); elfptr.Delete();
DataBase_Loader dbLoader("DataBase.dbf", "Serial", DiscID.ToUTF8().data());
Console.WriteLn("Game = %s (%s)", dbLoader.getString("Name").c_str(), dbLoader.getString("Region").c_str());
} }
void cdvdReloadElfInfo() void cdvdReloadElfInfo()