mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-29 04:18:49 -04:00
Triforce v0.8.5
A Randomizer page in the launcher, a new title screen with Mods and Save Select tabs, scaling changes applied in game, the Jabu-Jabu bars fixed, renderer frame-time work and the brightness-flash fix, and fixes from the 0.8.4 reports.
This commit is contained in:
@@ -101,9 +101,11 @@ public static class BuildProtocol
|
||||
var d = new Dictionary<string, double>();
|
||||
foreach (var part in text.Split(", "))
|
||||
{
|
||||
var m = Regex.Match(part.Trim(), @"^(.*\S)\s+(\d+(?::\d{1,2}){1,2})$");
|
||||
// ((Triforce, 11-26) digits 0-9, at most 9 of them in the first part: "x 99999999999:00" threw OverflowException in the
|
||||
// build's output reader, which ended the launcher)
|
||||
var m = Regex.Match(part.Trim(), @"^(.*\S)\s+([0-9]{1,9}(?::[0-9]{1,2}){1,2})$");
|
||||
if (!m.Success) continue;
|
||||
var secs = m.Groups[2].Value.Split(':').Aggregate(0.0, (acc, x) => acc * 60 + int.Parse(x));
|
||||
var secs = m.Groups[2].Value.Split(':').Aggregate(0.0, (acc, x) => acc * 60 + int.Parse(x, System.Globalization.CultureInfo.InvariantCulture));
|
||||
d[m.Groups[1].Value] = secs;
|
||||
}
|
||||
return d;
|
||||
|
||||
@@ -166,6 +166,13 @@ public sealed class BuildRunner
|
||||
|
||||
// (stdout and stderr come on two threads: the state is changed under the lock, the App's handlers run outside it)
|
||||
void Take(string l)
|
||||
{
|
||||
// ((Triforce, 11-26) a line that cannot be read, or a handler that throws, is logged: thrown in stderr's reader it
|
||||
// ended the launcher, and in stdout's it was taken for a build that could not start while the build ran on unseen)
|
||||
try { TakeOne(l); }
|
||||
catch (Exception x) { try { ctx.Log.Write("build: a line of its output was not taken (" + x.GetType().Name + ": " + x.Message + "): " + (l.Length > 200 ? l.Substring(0, 200) : l)); } catch (Exception) { } }
|
||||
}
|
||||
void TakeOne(string l)
|
||||
{
|
||||
BuildEvent e;
|
||||
string? was;
|
||||
|
||||
Reference in New Issue
Block a user