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,17 +35,7 @@ namespace RPG_Maker_LDB_Printer
ContinueIndent(); ContinueIndent();
GetInt(); GetInt();
OpenIndent(); OpenIndent();
ReadSubdata(PartID, data); for (bool Data_end = false; Data_end == false;)
CloseIndent();
}
CloseIndent();
}
}
public static void ReadSubdata(byte PartID, int data)
{
bool Data_end = false;
while (Data_end == false)
{ {
ContinueIndent(); ContinueIndent();
int subData = GetInt(); int subData = GetInt();
@ -56,6 +46,10 @@ namespace RPG_Maker_LDB_Printer
else else
GetBytes(); GetBytes();
} }
CloseIndent();
}
CloseIndent();
}
} }
public static int GetInt() public static int GetInt()

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(); GetEvent();
CheckEnd(); }
stop = false;
GetEvent();
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(); GetEvent();
CheckEnd(); }
stop = false;
GetEvent();
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();