improve nes rom detection log, and set svn:executable on some files
This commit is contained in:
parent
f6d558d4b4
commit
9a6d6a63bd
|
@ -79,16 +79,21 @@ namespace BizHawk.Emulation.Consoles.Nintendo
|
||||||
mirroring[3] = d;
|
mirroring[3] = d;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void SetMirrorType(int pad_h, int pad_v)
|
public static EMirrorType CalculateMirrorType(int pad_h, int pad_v)
|
||||||
{
|
{
|
||||||
if (pad_h == 0)
|
if (pad_h == 0)
|
||||||
if (pad_v == 0)
|
if (pad_v == 0)
|
||||||
SetMirrorType(EMirrorType.OneScreenA);
|
return EMirrorType.OneScreenA;
|
||||||
else SetMirrorType(EMirrorType.Horizontal);
|
else return EMirrorType.Horizontal;
|
||||||
else
|
else
|
||||||
if (pad_v == 0)
|
if (pad_v == 0)
|
||||||
SetMirrorType(EMirrorType.Vertical);
|
return EMirrorType.Vertical;
|
||||||
else SetMirrorType(EMirrorType.OneScreenB);
|
else return EMirrorType.OneScreenB;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void SetMirrorType(int pad_h, int pad_v)
|
||||||
|
{
|
||||||
|
SetMirrorType(CalculateMirrorType(pad_h, pad_v));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetMirrorType(EMirrorType mirrorType)
|
public void SetMirrorType(EMirrorType mirrorType)
|
||||||
|
|
|
@ -444,6 +444,8 @@ namespace BizHawk.Emulation.Consoles.Nintendo
|
||||||
var hash = "sha1:" + Util.Hash_SHA1(bytes, 0, bytes.Length);
|
var hash = "sha1:" + Util.Hash_SHA1(bytes, 0, bytes.Length);
|
||||||
LoadWriteLine(" PRG (8KB) + CHR hash: {0}", hash);
|
LoadWriteLine(" PRG (8KB) + CHR hash: {0}", hash);
|
||||||
hash_sha1_several.Add(hash);
|
hash_sha1_several.Add(hash);
|
||||||
|
hash = "md5:" + Util.Hash_MD5(bytes, 0, bytes.Length);
|
||||||
|
LoadWriteLine(" PRG (8KB) + CHR hash: {0}", hash);
|
||||||
}
|
}
|
||||||
|
|
||||||
Type boardType = null;
|
Type boardType = null;
|
||||||
|
|
|
@ -188,7 +188,8 @@ static string ClassifyTable = @"
|
||||||
//let's not put a lot of hacks in here. that's what the databases are for.
|
//let's not put a lot of hacks in here. that's what the databases are for.
|
||||||
//for example of one not to add: videomation hack to change vram = 8 -> 16
|
//for example of one not to add: videomation hack to change vram = 8 -> 16
|
||||||
|
|
||||||
report.WriteLine("map={0},pr={1},ch={2},wr={3},vr={4},ba={5},mir={6}", ret.mapper, ret.prg_size, ret.chr_size, ret.wram_size, ret.vram_size, ret.wram_battery ? 1 : 0, mirroring);
|
string mirror_memo = mirroring == 0 ? "horz" : (mirroring == 1 ? "vert" : "4screen");
|
||||||
|
report.WriteLine("map={0},pr={1},ch={2},wr={3},vr={4},ba={5},mir={6}({7})", ret.mapper, ret.prg_size, ret.chr_size, ret.wram_size, ret.vram_size, ret.wram_battery ? 1 : 0, mirroring, mirror_memo);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue