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();
GetInt();
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();
}
}
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()
{
return Convert7BitHex(0);

View File

@ -34,10 +34,18 @@ namespace RPG_Maker_LDB_Printer
break;
case 12010://DD 6A
case 13310://E7 7E
CheckEnd();
while (stop == false)
{
GetEvent();
}
stop = false;
if (gotInts[5] == 1)
{
CheckEnd();
while (stop == false)
{
GetEvent();
}
stop = false;
}
GetEvent();
break;
@ -45,9 +53,17 @@ namespace RPG_Maker_LDB_Printer
if (gotInts[3] == 2 || gotInts[4] == 1)
{
GetEvent();
CheckEnd();
while (stop == false)
{
GetEvent();
}
stop = false;
GetEvent();
CheckEnd();
while (stop == false)
{
GetEvent();
}
stop = false;
GetEvent();
}
break;
@ -57,9 +73,17 @@ namespace RPG_Maker_LDB_Printer
{
stop = false;
GetEvent();
CheckEnd();
while (stop == false)
{
GetEvent();
}
stop = false;
GetEvent();
CheckEnd();
while (stop == false)
{
GetEvent();
}
stop = false;
GetEvent();
}
break;
@ -75,14 +99,5 @@ namespace RPG_Maker_LDB_Printer
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();
OpenIndent();
bool stop = false;
while (stop == false)
while ( stop == false)
{
ContinueIndent();
int data = Data.GetInt();
@ -175,7 +175,7 @@ namespace RPG_Maker_LDB_Printer
Data.GetInt();
OpenIndent();
bool frameStop = false;
while (frameStop == false)
while(frameStop == false)
{
ContinueIndent();
int frameData = Data.GetInt();
@ -221,7 +221,7 @@ namespace RPG_Maker_LDB_Printer
if (AnimationFrame > 0)
CloseIndent();
break;
#endregion
#endregion
case (0x19, 0x16):
#region Event
Data.GetInt();