Skip to content

Commit 84f1eaf

Browse files
authored
Merge pull request #92 from lilyremigia/master
Update links
2 parents 52822fc + 3c3f9ea commit 84f1eaf

File tree

7 files changed

+22
-18
lines changed

7 files changed

+22
-18
lines changed

.github/FUNDING.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
44
patreon: # Replace with a single Patreon username
5-
open_collective: # Replace with a single Open Collective username
6-
ko_fi: tudi20
5+
open_collective: thpatch
6+
ko_fi: # tudi20
77
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
88
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
99
liberapay: # Replace with a single Liberapay username

Universal THCRAP Launcher/MainForm.cs

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ public MainForm()
4444
private const string CONFIG_FILE = CONFIG_FOLDER + @"utl_config.json";
4545
private const string FAVORITE_FILE = CONFIG_FOLDER + @"favorite.json";
4646
private const string GAMES_FILE = CONFIG_FOLDER + @"games.js";
47+
private const string DONATE_LINK = @"https://opencollective.com/thpatch/";
48+
private const string REPO = @"thpatch/Universal-THCRAP-Launcher";
49+
4750

4851
private readonly Image _custom = new Bitmap(Resources.Custom);
4952
private readonly Image _game = new Bitmap(Resources.Game);
@@ -386,16 +389,16 @@ private void filterByType_button_Click(object sender, EventArgs e)
386389
private void exitTS_Click(object sender, EventArgs e) => Application.Exit();
387390

388391
private void bugReportTS_Click(object sender, EventArgs e) => Process.Start(
389-
"https://github.com/thpatch/Universal-THCRAP-Launcher/issues/" +
392+
$"https://github.com/{REPO}/issues/" +
390393
"new?assignees=&labels=bug&template=bug_report.md&title=%5BBUG%5D");
391394

392395
private void otherTS_Click(object sender, EventArgs e) =>
393-
Process.Start("https://github.com/thpatch/Universal-THCRAP-Launcher/issues/new");
396+
Process.Start($"https://github.com/{REPO}/issues/new");
394397

395398
private void gitHubPageTS_Click(object sender, EventArgs e) =>
396-
Process.Start("https://github.com/thpatch/Universal-THCRAP-Launcher");
399+
Process.Start($"https://github.com/{REPO}");
397400

398-
private void DonateToolStripMenuItem_Click(object sender, EventArgs e) => Process.Start("https://ko-fi.com/tudi20");
401+
private void DonateToolStripMenuItem_Click(object sender, EventArgs e) => Process.Start(DONATE_LINK);
399402

400403
private void openConfigureTS_Click(object sender, EventArgs e)
401404
{
@@ -548,7 +551,7 @@ private void SetDefaultSettings()
548551
{
549552
MessageBox.Show($@"1. If you're a developer: Don't forget to set the working directory to thcrap's directory. Your current working directory is: {Environment.CurrentDirectory}
550553
2. If you're a dev in the right working directory this is for you:{Environment.NewLine}====={Environment.NewLine}{e}{Environment.NewLine}=====
551-
3. If you're an end user, try reinstalling again carefully following the instructions this time or try pinging Tudi20 in Discord.");
554+
3. If you're an end user, try reinstalling again carefully following the instructions this time or you can ask in #support on Discord (https://discord.thpatch.net/).");
552555
Application.Exit();
553556
}
554557
}
@@ -735,7 +738,7 @@ public void UpdateConfigFile()
735738

736739
private void CheckIfObsolote()
737740
{
738-
var url = (@"https://api.github.com/repos/thpatch/Universal-THCRAP-Launcher");
741+
var url = (@"https://api.github.com/repos/" + REPO);
739742

740743
HttpClient client = new HttpClient();
741744
client.DefaultRequestHeaders.Add("User-Agent", "request");
@@ -1270,9 +1273,10 @@ private string DownloadTranslation()
12701273
Directory.CreateDirectory(I18N.I18NDir);
12711274
}
12721275

1276+
const string langUrlBase = "https://raw.githubusercontent.com/" + REPO + "/master/langs/";
1277+
12731278
try
1274-
{
1275-
var langUrlBase = "https://raw.githubusercontent.com/Tudi20/Universal-THCRAP-Launcher/master/langs/";
1279+
{
12761280
try
12771281
{
12781282
string langUrl = langUrlBase + langCode + ".json";
@@ -1292,7 +1296,7 @@ private string DownloadTranslation()
12921296
catch (Exception ex)
12931297
{
12941298
_log.WriteLine($"Couldn't connect to GitHub for pulling down English language file.\nReason: {ex}");
1295-
MessageBox.Show($@"No language files found and couldn't connect to GitHub to download English language file. Either put one manually into {I18N.I18NDir} or find out why you can't connect to https://raw.githubusercontent.com/Tudi20/Universal-THCRAP-Launcher/master/langs/en.json . Or use an older version of the program ¯\_(ツ)_/¯.",
1299+
MessageBox.Show($@"No language files found and couldn't connect to GitHub to download English language file. Either put one manually into {I18N.I18NDir} or find out why you can't connect to {langUrlBase}en.json . Or use an older version of the program ¯\_(ツ)_/¯.",
12961300
@"Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
12971301
return null;
12981302
}
@@ -1361,7 +1365,7 @@ private void DownloadCurrentLanguage()
13611365
try
13621366
{
13631367
string newlang =
1364-
ReadTextFromUrl("https://raw.githubusercontent.com/Tudi20/Universal-THCRAP-Launcher/master/langs/" +
1368+
ReadTextFromUrl($"https://raw.githubusercontent.com/{REPO}/master/langs/" +
13651369
Configuration.Lang);
13661370
File.WriteAllText(I18N.I18NDir + "\\" + Configuration.Lang, newlang);
13671371
}

Universal THCRAP Launcher/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
[assembly: AssemblyTitle("Universal THCRAP Launcher")]
88
[assembly: AssemblyDescription("")]
99
[assembly: AssemblyConfiguration("")]
10-
[assembly: AssemblyCompany("Tudi20 @ THPATCH")]
10+
[assembly: AssemblyCompany("Touhou Patch Center")]
1111
[assembly: AssemblyProduct("Universal THCRAP Launcher")]
12-
[assembly: AssemblyCopyright("Copyright © THPATCH 2020")]
12+
[assembly: AssemblyCopyright("Copyright ©THPATCH 2020-2024")]
1313
[assembly: AssemblyTrademark("")]
1414
[assembly: AssemblyCulture("")]
1515

Universal THCRAP Launcher/SettingsForm.Designer.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Universal THCRAP Launcher/SettingsForm.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ private void Btn_dwnlAllLangs_Click(object sender, EventArgs e)
8888
btn_dwnlAllLangs.Enabled = false;
8989
try
9090
{
91-
string gh = ReadTextFromUrl("https://api.github.com/repos/Tudi20/Universal-THCRAP-Launcher/contents/langs?ref=master");
91+
string gh = ReadTextFromUrl("https://api.github.com/repos/thpatch/Universal-THCRAP-Launcher/contents/langs?ref=master");
9292
dynamic objGh = JsonConvert.DeserializeObject(gh);
9393
if (!(objGh is null))
9494
foreach (dynamic item in objGh)

langs/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"metadata": {
3-
"authors": ["Tudi20"],
3+
"authors": ["Touhou Patch Center"],
44
"native": "English",
55
"english": "English"
66
},

langs/hu.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"metadata": {
3-
"authors": ["Tudi20"],
3+
"authors": ["LilyRemigia"],
44
"native": "Magyar",
55
"english": "Hungarian"
66
},

0 commit comments

Comments
 (0)