Added MovieOrigin to .ZMV...I knew I had to have forgotten something unimportant.
This commit is contained in:
parent
2a9c78220f
commit
3b80905514
|
@ -21,7 +21,6 @@ namespace BizHawk.MultiClient
|
||||||
public const string JAPAN = "Japan";
|
public const string JAPAN = "Japan";
|
||||||
public const string MD5 = "MD5";
|
public const string MD5 = "MD5";
|
||||||
public const string MOVIEORIGIN = "MovieOrigin";
|
public const string MOVIEORIGIN = "MovieOrigin";
|
||||||
public const string PAL = "PAL";
|
|
||||||
public const string PORT1 = "port1";
|
public const string PORT1 = "port1";
|
||||||
public const string PORT2 = "port2";
|
public const string PORT2 = "port2";
|
||||||
public const string PROJECTID = "ProjectID";
|
public const string PROJECTID = "ProjectID";
|
||||||
|
@ -373,7 +372,7 @@ namespace BizHawk.MultiClient
|
||||||
else if (line.ToLower().StartsWith("palflag"))
|
else if (line.ToLower().StartsWith("palflag"))
|
||||||
{
|
{
|
||||||
bool pal = (ParseHeader(line, "palFlag") == "1");
|
bool pal = (ParseHeader(line, "palFlag") == "1");
|
||||||
m.Header.SetHeaderLine(PAL, pal.ToString());
|
m.Header.SetHeaderLine(MovieHeader.PAL, pal.ToString());
|
||||||
}
|
}
|
||||||
else if (line.ToLower().StartsWith("fourscore"))
|
else if (line.ToLower().StartsWith("fourscore"))
|
||||||
{
|
{
|
||||||
|
@ -483,7 +482,7 @@ namespace BizHawk.MultiClient
|
||||||
preference. This means that this site cannot calculate movie lengths reliably.
|
preference. This means that this site cannot calculate movie lengths reliably.
|
||||||
*/
|
*/
|
||||||
bool pal = (((flags >> 2) & 0x1) != 0);
|
bool pal = (((flags >> 2) & 0x1) != 0);
|
||||||
m.Header.SetHeaderLine(PAL, pal.ToString());
|
m.Header.SetHeaderLine(MovieHeader.PAL, pal.ToString());
|
||||||
// other: reserved, set to 0
|
// other: reserved, set to 0
|
||||||
bool syncHack = (((flags >> 4) & 0x1) != 0);
|
bool syncHack = (((flags >> 4) & 0x1) != 0);
|
||||||
m.Header.Comments.Add(SYNCHACK + " " + syncHack.ToString());
|
m.Header.Comments.Add(SYNCHACK + " " + syncHack.ToString());
|
||||||
|
@ -764,7 +763,7 @@ namespace BizHawk.MultiClient
|
||||||
The file format has no means of identifying NTSC/"PAL". It is always assumed that the game is NTSC - that is,
|
The file format has no means of identifying NTSC/"PAL". It is always assumed that the game is NTSC - that is,
|
||||||
60 fps.
|
60 fps.
|
||||||
*/
|
*/
|
||||||
m.Header.SetHeaderLine(PAL, "False");
|
m.Header.SetHeaderLine(MovieHeader.PAL, "False");
|
||||||
// 090 frame data begins here
|
// 090 frame data begins here
|
||||||
SimpleController controllers = new SimpleController();
|
SimpleController controllers = new SimpleController();
|
||||||
controllers.Type = new ControllerDefinition();
|
controllers.Type = new ControllerDefinition();
|
||||||
|
@ -856,7 +855,7 @@ namespace BizHawk.MultiClient
|
||||||
header.
|
header.
|
||||||
*/
|
*/
|
||||||
bool pal = (((flags >> 7) & 0x1) != 0);
|
bool pal = (((flags >> 7) & 0x1) != 0);
|
||||||
m.Header.SetHeaderLine(PAL, pal.ToString());
|
m.Header.SetHeaderLine(MovieHeader.PAL, pal.ToString());
|
||||||
// bit 6: if "1", movie requires a savestate.
|
// bit 6: if "1", movie requires a savestate.
|
||||||
if (((flags >> 6) & 0x1) != 0)
|
if (((flags >> 6) & 0x1) != 0)
|
||||||
{
|
{
|
||||||
|
@ -1013,7 +1012,7 @@ namespace BizHawk.MultiClient
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
bool pal = (gametype == "snes_pal" || gametype == "sgb_pal");
|
bool pal = (gametype == "snes_pal" || gametype == "sgb_pal");
|
||||||
m.Header.SetHeaderLine(PAL, pal.ToString());
|
m.Header.SetHeaderLine(MovieHeader.PAL, pal.ToString());
|
||||||
hf.Unbind();
|
hf.Unbind();
|
||||||
}
|
}
|
||||||
else if (item.name == "input")
|
else if (item.name == "input")
|
||||||
|
@ -1327,7 +1326,7 @@ namespace BizHawk.MultiClient
|
||||||
// bit 0: unused
|
// bit 0: unused
|
||||||
// bit 1: "PAL"
|
// bit 1: "PAL"
|
||||||
bool pal = (((flags >> 1) & 0x1) != 0);
|
bool pal = (((flags >> 1) & 0x1) != 0);
|
||||||
m.Header.SetHeaderLine(PAL, pal.ToString());
|
m.Header.SetHeaderLine(MovieHeader.PAL, pal.ToString());
|
||||||
// bit 2: Japan
|
// bit 2: Japan
|
||||||
bool japan = (((flags >> 2) & 0x1) != 0);
|
bool japan = (((flags >> 2) & 0x1) != 0);
|
||||||
m.Header.SetHeaderLine(JAPAN, japan.ToString());
|
m.Header.SetHeaderLine(JAPAN, japan.ToString());
|
||||||
|
@ -1552,7 +1551,7 @@ namespace BizHawk.MultiClient
|
||||||
* if "1", "PAL" timing
|
* if "1", "PAL" timing
|
||||||
*/
|
*/
|
||||||
bool pal = (((data >> 7) & 0x1) != 0);
|
bool pal = (((data >> 7) & 0x1) != 0);
|
||||||
m.Header.SetHeaderLine(PAL, pal.ToString());
|
m.Header.SetHeaderLine(MovieHeader.PAL, pal.ToString());
|
||||||
// 004 4-byte little-endian unsigned int: rerecord count
|
// 004 4-byte little-endian unsigned int: rerecord count
|
||||||
uint rerecordCount = r.ReadUInt32();
|
uint rerecordCount = r.ReadUInt32();
|
||||||
m.Rerecords = (int)rerecordCount;
|
m.Rerecords = (int)rerecordCount;
|
||||||
|
@ -1688,7 +1687,7 @@ namespace BizHawk.MultiClient
|
||||||
}
|
}
|
||||||
// bit 1: if "0", movie is NTSC (60 fps); if "1", movie is PAL (50 fps)
|
// bit 1: if "0", movie is NTSC (60 fps); if "1", movie is PAL (50 fps)
|
||||||
bool pal = (((movieFlags >> 1) & 0x1) != 0);
|
bool pal = (((movieFlags >> 1) & 0x1) != 0);
|
||||||
m.Header.SetHeaderLine(PAL, pal.ToString());
|
m.Header.SetHeaderLine(MovieHeader.PAL, pal.ToString());
|
||||||
// other: reserved, set to 0
|
// other: reserved, set to 0
|
||||||
/*
|
/*
|
||||||
016 1-byte flags "sync options":
|
016 1-byte flags "sync options":
|
||||||
|
@ -2188,7 +2187,7 @@ namespace BizHawk.MultiClient
|
||||||
r.ReadByte();
|
r.ReadByte();
|
||||||
// 023 1-byte flag: 0=NTSC (60 Hz), 1="PAL" (50 Hz)
|
// 023 1-byte flag: 0=NTSC (60 Hz), 1="PAL" (50 Hz)
|
||||||
bool pal = (r.ReadByte() == 1);
|
bool pal = (r.ReadByte() == 1);
|
||||||
m.Header.SetHeaderLine(PAL, pal.ToString());
|
m.Header.SetHeaderLine(MovieHeader.PAL, pal.ToString());
|
||||||
// 024 8-bytes: reserved, set to 0
|
// 024 8-bytes: reserved, set to 0
|
||||||
r.ReadBytes(8);
|
r.ReadBytes(8);
|
||||||
// 02C 4-byte little-endian integer: save state start offset
|
// 02C 4-byte little-endian integer: save state start offset
|
||||||
|
@ -2340,6 +2339,7 @@ namespace BizHawk.MultiClient
|
||||||
// 003 2-byte little-endian unsigned int: zsnes version number
|
// 003 2-byte little-endian unsigned int: zsnes version number
|
||||||
short version = r.ReadInt16();
|
short version = r.ReadInt16();
|
||||||
m.Header.Comments.Add(EMULATIONORIGIN + " ZSNES version " + version);
|
m.Header.Comments.Add(EMULATIONORIGIN + " ZSNES version " + version);
|
||||||
|
m.Header.Comments.Add(MOVIEORIGIN + " .ZMV");
|
||||||
// 005 4-byte little-endian integer: CRC32 of the ROM
|
// 005 4-byte little-endian integer: CRC32 of the ROM
|
||||||
int crc32 = r.ReadInt32();
|
int crc32 = r.ReadInt32();
|
||||||
m.Header.SetHeaderLine(CRC32, crc32.ToString());
|
m.Header.SetHeaderLine(CRC32, crc32.ToString());
|
||||||
|
@ -2417,7 +2417,7 @@ namespace BizHawk.MultiClient
|
||||||
// if "11", movie begins from power-on with SRAM clear
|
// if "11", movie begins from power-on with SRAM clear
|
||||||
// bit 5: if "0", movie is NTSC (60 fps); if "1", movie is PAL (50 fps)
|
// bit 5: if "0", movie is NTSC (60 fps); if "1", movie is PAL (50 fps)
|
||||||
bool pal = (((movieFlags >> 5) & 0x1) != 0);
|
bool pal = (((movieFlags >> 5) & 0x1) != 0);
|
||||||
m.Header.SetHeaderLine(PAL, pal.ToString());
|
m.Header.SetHeaderLine(MovieHeader.PAL, pal.ToString());
|
||||||
// other: reserved, set to 0
|
// other: reserved, set to 0
|
||||||
/*
|
/*
|
||||||
028 3-byte little-endian unsigned int: initial save state size, highest bit specifies compression, next 23
|
028 3-byte little-endian unsigned int: initial save state size, highest bit specifies compression, next 23
|
||||||
|
|
Loading…
Reference in New Issue