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 Jul 20, 2017
1 parent f63e008 commit 9181351
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 19 deletions.
2 changes: 1 addition & 1 deletion TuBS/TuBS.sln
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ Global
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
description = Berwick Saga translation tool.
version = 1.3
version = 1.4
EndGlobalSection
EndGlobal
16 changes: 8 additions & 8 deletions TuBS/TuBS.userprefs
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@
<MonoDevelop.Ide.DebuggingService.PinnedWatches />
<MonoDevelop.Ide.DebuggingService.Breakpoints>
<BreakpointStore>
<Breakpoint file="/home/lightgazer/etc/bs/mono/TuBS/TuBS/MainWindow.cs" line="1400" column="1" />
<Breakpoint file="/home/lightgazer/etc/bs/mono/TuBS/TuBS/MainWindow.cs" line="1401" column="1" />
<Breakpoint file="/home/lightgazer/etc/bs/mono/TuBS/TuBS/MainWindow.cs" line="622" column="1" />
<Breakpoint file="/home/lightgazer/etc/bs/mono/TuBS/TuBS/MainWindow.cs" line="646" column="1" />
<Breakpoint file="/home/lightgazer/etc/bs/mono/TuBS/TuBS/MainWindow.cs" line="1398" column="1" />
<Breakpoint file="/home/lightgazer/etc/bs/mono/TuBS/TuBS/MainWindow.cs" line="1399" column="1" />
<Breakpoint file="/home/lightgazer/etc/bs/mono/TuBS/TuBS/MainWindow.cs" line="620" column="1" />
<Breakpoint file="/home/lightgazer/etc/bs/mono/TuBS/TuBS/MainWindow.cs" line="644" column="1" />
</BreakpointStore>
</MonoDevelop.Ide.DebuggingService.Breakpoints>
<MonoDevelop.Ide.Workbench ActiveDocument="TuBS/ExportScript.cs">
<Files>
<File FileName="TuBS/MainWindow.cs" Line="195" Column="18" />
<File FileName="TuBS/MainWindow.cs" Line="1" Column="1" />
<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="23" Column="25" />
<File FileName="TuBS/ImportScript.cs" Line="28" Column="14" />
<File FileName="TuBS/ExportScript.cs" Line="151" Column="21" />
<File FileName="TuBS/ImageConv.cs" Line="1" Column="1" />
<File FileName="TuBS/Comp.cs" Line="1" Column="1" />
<File FileName="TuBS/Palette.cs" Line="1" Column="1" />
<File FileName="TuBS/Program.cs" Line="20" Column="21" />
<File FileName="TuBS/Program.cs" Line="1" Column="1" />
</Files>
</MonoDevelop.Ide.Workbench>
<MonoDevelop.Ide.ItemProperties.TuBS PreferredExecutionTarget="MonoDevelop.Default" />
Expand Down
8 changes: 2 additions & 6 deletions TuBS/TuBS/ExportScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ class Scene
{
ushort upper_actor;
ushort lower_actor;
ushort last_actor;
public string Window;
public bool Active = false;

Expand All @@ -148,19 +147,16 @@ public void SetActor (ushort id)
Active = true;
if (Window == "Upper Window")
upper_actor = id;
if (Window == "Lower Window")
else //"Lower Window"
lower_actor = id;
last_actor = id;
}

public string GetActor ()
{
if (Window == "Upper Window")
return Cast.GetActorById (upper_actor);
else if (Window == "Lower Window")
else //if (Window == "Lower Window")
return Cast.GetActorById (lower_actor);

return Cast.GetActorById (last_actor);
}
}

Expand Down
2 changes: 1 addition & 1 deletion TuBS/TuBS/ImportScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ protected List<string> ScriptReader (string script_file)
} else
cir_match = cir_match.NextMatch ();
writer.Write (ushort.Parse (cir_match.Groups [1].Value));
i += cir_match.Length - 1;
i = cir_match.Index + cir_match.Length - 1;
} else {
i--;
writer.Write (FindChar ('●', code_page, original_code_page));
Expand Down
2 changes: 0 additions & 2 deletions TuBS/TuBS/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ public MainWindow () : base (Gtk.WindowType.Toplevel)
progressbar.Text = "Status: " + pathdat4 + " not found";
if (!File.Exists (pathdat3))
progressbar.Text = "Status: " + pathdat3 + " not found";
// if (File.Exists ("list.txt"))
// ReadImportList ();
foreach (string list in Directory.EnumerateFiles(Directory.GetCurrentDirectory (), "list*.txt", SearchOption.TopDirectoryOnly))
ReadImportList (list);
}
Expand Down
2 changes: 1 addition & 1 deletion TuBS/TuBS/TuBS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<RootNamespace>TuBS</RootNamespace>
<AssemblyName>TuBS</AssemblyName>
<Description>Berwick Saga translation tool.</Description>
<ReleaseVersion>1.3</ReleaseVersion>
<ReleaseVersion>1.4</ReleaseVersion>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
Expand Down

0 comments on commit 9181351

Please sign in to comment.