mirror of
https://github.com/ARMSX2/ARMSX2.git
synced 2026-08-24 16:50:16 -07:00
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:
+24
-1156
File diff suppressed because it is too large
Load Diff
+4
-1
@@ -27,6 +27,7 @@
|
||||
#include "GS.h" // for gsRegionMode
|
||||
#include "Elfheader.h"
|
||||
#include "ps2/BiosTools.h"
|
||||
#include "DataBase_Loader.h"
|
||||
|
||||
wxString DiscID;
|
||||
|
||||
@@ -335,7 +336,6 @@ static __forceinline void _reloadElfInfo(wxString elfpath)
|
||||
DiscID = fname(0,4) + L"-" + fname(5,3) + fname(9,2);
|
||||
|
||||
Console.WriteLn("Disc ID = %s", DiscID.ToUTF8().data());
|
||||
|
||||
elfptr = loadElf(elfpath);
|
||||
|
||||
ElfCRC = elfptr->getCRC();
|
||||
@@ -345,6 +345,9 @@ static __forceinline void _reloadElfInfo(wxString elfpath)
|
||||
Console.WriteLn("Entry point = 0x%08x", ElfEntry);
|
||||
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user