Compare commits

..

No commits in common. "0ea1cf6af26b79cb19d54bc9eac90217847947ea" and "4eebb4c7ad85ed8808feba3efd5218bb68975e8b" have entirely different histories.

3 changed files with 44 additions and 35 deletions

View File

@ -35,29 +35,23 @@ namespace RPG_Maker_LDB_Printer
ContinueIndent(); ContinueIndent();
GetInt(); GetInt();
OpenIndent(); OpenIndent();
ReadSubdata(PartID, data); for (bool Data_end = false; Data_end == false;)
{
ContinueIndent();
int subData = GetInt();
if (subData == 0x00)
Data_end = true;
else if (PartID == 0x1D & data == 0x0A & subData == 0x01 | PartID == 0x20 & data == 0x0A & subData == 0x01 | PartID == 0x20 & data == 0x0A & subData == 0x02 | PartID == 0x20 & data == 0x0B & subData == 0x01 | PartID == 0x20 & data == 0x0B & subData == 0x02)
GetString();
else
GetBytes();
}
CloseIndent(); CloseIndent();
} }
CloseIndent(); CloseIndent();
} }
} }
public static void ReadSubdata(byte PartID, int data)
{
bool Data_end = false;
while (Data_end == false)
{
ContinueIndent();
int subData = GetInt();
if (subData == 0x00)
Data_end = true;
else if (PartID == 0x1D & data == 0x0A & subData == 0x01 | PartID == 0x20 & data == 0x0A & subData == 0x01 | PartID == 0x20 & data == 0x0A & subData == 0x02 | PartID == 0x20 & data == 0x0B & subData == 0x01 | PartID == 0x20 & data == 0x0B & subData == 0x02)
GetString();
else
GetBytes();
}
}
public static int GetInt() public static int GetInt()
{ {
return Convert7BitHex(0); return Convert7BitHex(0);

View File

@ -34,10 +34,18 @@ namespace RPG_Maker_LDB_Printer
break; break;
case 12010://DD 6A case 12010://DD 6A
case 13310://E7 7E case 13310://E7 7E
CheckEnd(); while (stop == false)
{
GetEvent();
}
stop = false;
if (gotInts[5] == 1) if (gotInts[5] == 1)
{ {
CheckEnd(); while (stop == false)
{
GetEvent();
}
stop = false;
} }
GetEvent(); GetEvent();
break; break;
@ -45,9 +53,17 @@ namespace RPG_Maker_LDB_Printer
if (gotInts[3] == 2 || gotInts[4] == 1) if (gotInts[3] == 2 || gotInts[4] == 1)
{ {
GetEvent(); GetEvent();
CheckEnd(); while (stop == false)
{
GetEvent();
}
stop = false;
GetEvent(); GetEvent();
CheckEnd(); while (stop == false)
{
GetEvent();
}
stop = false;
GetEvent(); GetEvent();
} }
break; break;
@ -57,9 +73,17 @@ namespace RPG_Maker_LDB_Printer
{ {
stop = false; stop = false;
GetEvent(); GetEvent();
CheckEnd(); while (stop == false)
{
GetEvent();
}
stop = false;
GetEvent(); GetEvent();
CheckEnd(); while (stop == false)
{
GetEvent();
}
stop = false;
GetEvent(); GetEvent();
} }
break; break;
@ -75,14 +99,5 @@ namespace RPG_Maker_LDB_Printer
Formating.CloseIndent(); Formating.CloseIndent();
Formating.CloseIndent(); Formating.CloseIndent();
} }
static void CheckEnd()
{
while (stop == false)
{
GetEvent();
}
stop = false;
}
} }
} }

View File

@ -29,7 +29,7 @@ namespace RPG_Maker_LDB_Printer
Data.GetInt(); Data.GetInt();
OpenIndent(); OpenIndent();
bool stop = false; bool stop = false;
while (stop == false) while ( stop == false)
{ {
ContinueIndent(); ContinueIndent();
int data = Data.GetInt(); int data = Data.GetInt();
@ -175,7 +175,7 @@ namespace RPG_Maker_LDB_Printer
Data.GetInt(); Data.GetInt();
OpenIndent(); OpenIndent();
bool frameStop = false; bool frameStop = false;
while (frameStop == false) while(frameStop == false)
{ {
ContinueIndent(); ContinueIndent();
int frameData = Data.GetInt(); int frameData = Data.GetInt();
@ -221,7 +221,7 @@ namespace RPG_Maker_LDB_Printer
if (AnimationFrame > 0) if (AnimationFrame > 0)
CloseIndent(); CloseIndent();
break; break;
#endregion #endregion
case (0x19, 0x16): case (0x19, 0x16):
#region Event #region Event
Data.GetInt(); Data.GetInt();