Compare commits
7 Commits
4eebb4c7ad
...
0ea1cf6af2
Author | SHA1 | Date |
---|---|---|
NintenHero | 0ea1cf6af2 | |
NintenHero | ad3106247b | |
Michael Hinrichs | 9bb648d099 | |
deepsource-autofix[bot] | 8b7dd0cdfa | |
Michael Hinrichs | cf7a9f6674 | |
Michael Hinrichs | 0abfc8515a | |
deepsource-autofix[bot] | 0349d266fe |
16
DataTypes.cs
16
DataTypes.cs
|
@ -35,7 +35,17 @@ namespace RPG_Maker_LDB_Printer
|
|||
ContinueIndent();
|
||||
GetInt();
|
||||
OpenIndent();
|
||||
for (bool Data_end = false; Data_end == false;)
|
||||
ReadSubdata(PartID, data);
|
||||
CloseIndent();
|
||||
}
|
||||
CloseIndent();
|
||||
}
|
||||
}
|
||||
|
||||
public static void ReadSubdata(byte PartID, int data)
|
||||
{
|
||||
bool Data_end = false;
|
||||
while (Data_end == false)
|
||||
{
|
||||
ContinueIndent();
|
||||
int subData = GetInt();
|
||||
|
@ -46,10 +56,6 @@ namespace RPG_Maker_LDB_Printer
|
|||
else
|
||||
GetBytes();
|
||||
}
|
||||
CloseIndent();
|
||||
}
|
||||
CloseIndent();
|
||||
}
|
||||
}
|
||||
|
||||
public static int GetInt()
|
||||
|
|
45
GetEvent.cs
45
GetEvent.cs
|
@ -34,18 +34,10 @@ namespace RPG_Maker_LDB_Printer
|
|||
break;
|
||||
case 12010://DD 6A
|
||||
case 13310://E7 7E
|
||||
while (stop == false)
|
||||
{
|
||||
GetEvent();
|
||||
}
|
||||
stop = false;
|
||||
CheckEnd();
|
||||
if (gotInts[5] == 1)
|
||||
{
|
||||
while (stop == false)
|
||||
{
|
||||
GetEvent();
|
||||
}
|
||||
stop = false;
|
||||
CheckEnd();
|
||||
}
|
||||
GetEvent();
|
||||
break;
|
||||
|
@ -53,17 +45,9 @@ namespace RPG_Maker_LDB_Printer
|
|||
if (gotInts[3] == 2 || gotInts[4] == 1)
|
||||
{
|
||||
GetEvent();
|
||||
while (stop == false)
|
||||
{
|
||||
CheckEnd();
|
||||
GetEvent();
|
||||
}
|
||||
stop = false;
|
||||
GetEvent();
|
||||
while (stop == false)
|
||||
{
|
||||
GetEvent();
|
||||
}
|
||||
stop = false;
|
||||
CheckEnd();
|
||||
GetEvent();
|
||||
}
|
||||
break;
|
||||
|
@ -73,17 +57,9 @@ namespace RPG_Maker_LDB_Printer
|
|||
{
|
||||
stop = false;
|
||||
GetEvent();
|
||||
while (stop == false)
|
||||
{
|
||||
CheckEnd();
|
||||
GetEvent();
|
||||
}
|
||||
stop = false;
|
||||
GetEvent();
|
||||
while (stop == false)
|
||||
{
|
||||
GetEvent();
|
||||
}
|
||||
stop = false;
|
||||
CheckEnd();
|
||||
GetEvent();
|
||||
}
|
||||
break;
|
||||
|
@ -99,5 +75,14 @@ namespace RPG_Maker_LDB_Printer
|
|||
Formating.CloseIndent();
|
||||
Formating.CloseIndent();
|
||||
}
|
||||
|
||||
static void CheckEnd()
|
||||
{
|
||||
while (stop == false)
|
||||
{
|
||||
GetEvent();
|
||||
}
|
||||
stop = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue