add missing TMD for Zombie Skape, improve error message when TMD cannot be found
This commit is contained in:
parent
a7db24490c
commit
f8c847af40
|
@ -248,7 +248,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Nintendo.NDS
|
|||
titleId |= ware[0x237 - i];
|
||||
}
|
||||
using var zip = new ZipArchive(new MemoryStream(Util.DecompressGzipFile(new MemoryStream(Resources.TMDS.Value))), ZipArchiveMode.Read, false);
|
||||
using var tmd = zip.GetEntry($"{titleId:x16}.tmd").Open();
|
||||
using var tmd = zip.GetEntry($"{titleId:x16}.tmd")?.Open() ?? throw new Exception($"Cannot find TMD for title ID {titleId:x16}, please report");
|
||||
var ret = new byte[tmd.Length];
|
||||
tmd.Read(ret, 0, (int)tmd.Length);
|
||||
return ret;
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue