Refactor Subdata function

This commit is contained in:
Michael Hinrichs 2024-07-27 16:04:27 -05:00
parent 0abfc8515a
commit cf7a9f6674
1 changed files with 18 additions and 13 deletions

View File

@ -35,6 +35,15 @@ namespace RPG_Maker_LDB_Printer
ContinueIndent(); ContinueIndent();
GetInt(); GetInt();
OpenIndent(); OpenIndent();
ReadSubdata(PartID, data);
CloseIndent();
}
CloseIndent();
}
}
public static void ReadSubdata(byte PartID, int data)
{
bool Data_end = false; bool Data_end = false;
while (Data_end == false) while (Data_end == false)
{ {
@ -47,10 +56,6 @@ namespace RPG_Maker_LDB_Printer
else else
GetBytes(); GetBytes();
} }
CloseIndent();
}
CloseIndent();
}
} }
public static int GetInt() public static int GetInt()