mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
a1870a845b
commit
f26e4a6de6
1180
bin/DataBase.dbf
1180
bin/DataBase.dbf
File diff suppressed because it is too large
Load Diff
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue