gamedb stuffed into gamedb subfolder

This commit is contained in:
goyuken 2012-10-09 01:34:21 +00:00
parent 16d12e8548
commit 8c24417f8d
15 changed files with 8 additions and 7 deletions

View File

@ -39,14 +39,15 @@ namespace BizHawk
return new GameInfo(cgi);
}
static void LoadDatabase_Escape(string line)
static void LoadDatabase_Escape(string line, string path)
{
if (!line.ToUpper().StartsWith("#INCLUDE")) return;
line = line.Substring(8).TrimStart();
if (File.Exists(line))
string filename = Path.Combine(path, line);
if (File.Exists(filename))
{
Console.WriteLine("loaded external game database {0}", line);
LoadDatabase(line);
Console.WriteLine("loading external game database {0}", line);
LoadDatabase(filename);
}
else
Console.WriteLine("BENIGN: missing external game database {0}", line);
@ -64,7 +65,7 @@ namespace BizHawk
if (line.StartsWith(";")) continue; //comment
if (line.StartsWith("#"))
{
LoadDatabase_Escape(line);
LoadDatabase_Escape(line, Path.GetDirectoryName(path));
continue;
}
if (line.Trim().Length == 0) continue;

View File

@ -123,7 +123,7 @@ namespace BizHawk.MultiClient
Global.CoreInputComm = new CoreInputComm();
SyncCoreInputComm();
Database.LoadDatabase(Path.Combine(PathManager.GetExeDirectoryAbsolute(), "gamedb.txt"));
Database.LoadDatabase(Path.Combine(PathManager.GetExeDirectoryAbsolute(), @"gamedb\gamedb.txt"));
SyncPresentationMode();

View File

@ -1,3 +1,3 @@
del /s BizHawk.zip
copy ..\..\SlimDx.dll
zip -X -9 -r BizHawk.zip BizHawk.MultiClient.exe DiscoHawk.exe *.dll ffmpeg.exe NesCarts.7z gamedb.txt gamedb*.txt NES\Palettes Lua Gameboy\Palettes
zip -X -9 -r BizHawk.zip BizHawk.MultiClient.exe DiscoHawk.exe *.dll ffmpeg.exe NesCarts.7z gamedb NES\Palettes Lua Gameboy\Palettes