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:
@@ -102,7 +102,7 @@ public sealed class Release
|
||||
using var response = await http.GetAsync(ApiUrl(ctx), both.Token).ConfigureAwait(false);
|
||||
if (response.StatusCode == HttpStatusCode.NotFound) throw new NoReleaseException();
|
||||
response.EnsureSuccessStatusCode();
|
||||
var r = Parse(await response.Content.ReadAsStringAsync(both.Token).ConfigureAwait(false));
|
||||
var r = Parse(await Downloader.TextAsync(response.Content, 4 << 20, both.Token).ConfigureAwait(false));
|
||||
if (r.Tag.Length == 0) throw new NoReleaseException(); // (an empty list: nothing published)
|
||||
return r;
|
||||
}
|
||||
@@ -143,7 +143,8 @@ public static class ReleaseNotes
|
||||
/// <summary>Markdown out: [text](link) -> text, `code` -> code, ** and __ gone, &amp; and the like read.</summary>
|
||||
public static string Plain(string s)
|
||||
{
|
||||
s = Regex.Replace(s, @"\[([^\]]*)\]\([^)]*\)", "$1");
|
||||
// ((Triforce, 11-26) without backtracking: a long line of "[" took the regex quadratic time)
|
||||
s = Regex.Replace(s, @"\[([^\]]*)\]\([^)]*\)", "$1", RegexOptions.NonBacktracking);
|
||||
s = s.Replace("**", "").Replace("__", "").Replace("`", "");
|
||||
s = WebUtility.HtmlDecode(s);
|
||||
return Regex.Replace(s, @"\s+", " ").Trim();
|
||||
|
||||
Reference in New Issue
Block a user