fix A7800 rom loading - remove unused and legacy .csv gamedb path, and convert to use CoreInventory

This commit is contained in:
adelikat 2020-05-16 14:04:11 -05:00
parent c830452775
commit 71698d5571
2 changed files with 2 additions and 5 deletions

View File

@ -986,10 +986,6 @@ namespace BizHawk.Client.Common
}
}
break;
case "A78":
var gameDbPath = Path.Combine(PathUtils.ExeDirectoryPath, "gamedb", "gamedb_a7800.csv");
nextEmulator = new A7800Hawk(nextComm, game, rom.RomData, gameDbPath, GetCoreSettings<A7800Hawk>(), GetCoreSyncSettings<A7800Hawk>());
break;
case "C64":
var c64 = new C64(nextComm, Enumerable.Repeat(rom.FileData, 1), rom.GameInfo, GetCoreSettings<C64>(), GetCoreSyncSettings<C64>());
nextEmulator = c64;

View File

@ -71,7 +71,8 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
public void WriteMemory(ushort address, byte value) => _a7800.WriteMemory(address, value);
}
public A7800Hawk(CoreComm comm, GameInfo game, byte[] rom, string gameDbFn, object settings, object syncSettings)
[CoreConstructor("A78")]
public A7800Hawk(CoreComm comm, byte[] rom, object settings, object syncSettings)
{
var ser = new BasicServiceProvider(this);