make multihawk compile, not sure what happened here, maybe a bad merge?
This commit is contained in:
parent
be93e78dd5
commit
20fb060c65
|
@ -65,12 +65,12 @@ namespace BizHawk.Client.MultiHawk
|
|||
// we could background thread this later instead if we wanted to be real clever
|
||||
NES.BootGodDB.GetDatabaseBytes = () =>
|
||||
{
|
||||
string xmlPath = Path.Combine( PathManager.GetExeDirectoryAbsolute(), "gamedb", "NesCarts.xml" );
|
||||
string x7zPath = Path.Combine( PathManager.GetExeDirectoryAbsolute(), "gamedb", "NesCarts.7z" );
|
||||
bool loadXml = File.Exists( xmlPath );
|
||||
using ( var NesCartFile = new HawkFile( loadXml ? xmlPath : x7zPath ) )
|
||||
string xmlPath = Path.Combine(PathManager.GetExeDirectoryAbsolute(), "gamedb", "NesCarts.xml");
|
||||
string x7zPath = Path.Combine(PathManager.GetExeDirectoryAbsolute(), "gamedb", "NesCarts.7z");
|
||||
bool loadXml = File.Exists(xmlPath);
|
||||
using (var NesCartFile = new HawkFile(loadXml ? xmlPath : x7zPath))
|
||||
{
|
||||
if ( !loadXml ) { NesCartFile.BindFirst(); }
|
||||
if (!loadXml) { NesCartFile.BindFirst(); }
|
||||
return NesCartFile
|
||||
.GetStream()
|
||||
.ReadAllBytes();
|
||||
|
@ -104,6 +104,7 @@ namespace BizHawk.Client.MultiHawk
|
|||
{
|
||||
Location = new Point(Global.Config.MainWndx, Global.Config.MainWndy);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
private static bool StateErrorAskUser(string title, string message)
|
||||
|
|
Loading…
Reference in New Issue