Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Lightgazer authored Apr 3, 2018
1 parent 6b72893 commit 8046e28
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
9 changes: 5 additions & 4 deletions TuBS/TuBS.userprefs
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,19 @@
<Breakpoint file="/home/lightgazer/etc/bs/mono/TuBS/TuBS/MainWindow.cs" line="677" column="1" />
</BreakpointStore>
</MonoDevelop.Ide.DebuggingService.Breakpoints>
<MonoDevelop.Ide.Workbench ActiveDocument="TuBS/DATA4.cs">
<MonoDevelop.Ide.Workbench ActiveDocument="TuBS/MainWindow.cs">
<Files>
<File FileName="TuBS/MainWindow.cs" Line="162" Column="76" />
<File FileName="TuBS/MainWindow.cs" Line="392" Column="15" />
<File FileName="TuBS/EmptyClass.cs" Line="1" Column="1" />
<File FileName="TuBS/CodePage.cs" Line="1" Column="1" />
<File FileName="TuBS/ImportScript.cs" Line="1" Column="1" />
<File FileName="TuBS/ExportScript.cs" Line="1" Column="1" />
<File FileName="TuBS/ImageConv.cs" Line="1" Column="1" />
<File FileName="TuBS/Comp.cs" Line="1" Column="1" />
<File FileName="TuBS/DatScript.cs" Line="209" Column="3" />
<File FileName="TuBS/DATA4.cs" Line="14" Column="23" />
<File FileName="TuBS/DatScript.cs" Line="117" Column="1" />
<File FileName="TuBS/DATA4.cs" Line="1" Column="1" />
<File FileName="TuBS/Config.cs" Line="1" Column="1" />
<File FileName="TuBS/Program.cs" Line="1" Column="1" />
</Files>
</MonoDevelop.Ide.Workbench>
<MonoDevelop.Ide.ItemProperties.TuBS PreferredExecutionTarget="MonoDevelop.Default" />
Expand Down
7 changes: 7 additions & 0 deletions TuBS/TuBS/DatScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ public Field (byte[] data)
BinaryReader reader = new BinaryReader (new MemoryStream (data));
type = reader.ReadInt32 ();
if (type == 6) { //Complex
dry = true;
int first_size = reader.ReadInt32 ();
int second_size = reader.ReadInt32 ();
int last_size = reader.ReadInt32 ();
Expand All @@ -236,6 +237,8 @@ public Field (byte[] data)
int size = reader.ReadInt32 ();
first_size -= size;
flds.Add(new Field (reader.ReadBytes (size - 4)));
if (flds.Last ().dry == false)
dry = false;
}
flask1 = flds.ToArray ();

Expand All @@ -244,6 +247,8 @@ public Field (byte[] data)
int size = reader.ReadInt32 ();
second_size -= size;
flds.Add(new Field (reader.ReadBytes (size - 4)));
if (flds.Last ().dry == false)
dry = false;
}
flask2 = flds.ToArray ();

Expand All @@ -252,6 +257,8 @@ public Field (byte[] data)
int size = reader.ReadInt32 ();
last_size -= size;
flds.Add(new Field (reader.ReadBytes (size - 4)));
if (flds.Last ().dry == false)
dry = false;
}
flask3 = flds.ToArray ();

Expand Down

0 comments on commit 8046e28

Please sign in to comment.