Skip to content

Commit 225b6d5

Browse files
committed
Apply dos2unix
1 parent 16af44e commit 225b6d5

File tree

5 files changed

+89
-90
lines changed

5 files changed

+89
-90
lines changed

Diff for: VRChatRejoinTool.csproj

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
2-
1+
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
32
<PropertyGroup>
43
<OutputType>WinExe</OutputType>
54
<TargetFrameworks>net40;netcoreapp3.1</TargetFrameworks>

Diff for: src/Utility/ClipboardUtility.cs

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
using System;
2-
using System.Windows.Forms;
3-
4-
namespace VRChatRejoinTool.Utility {
5-
public static class ClipboardUtility {
6-
internal static void CopyLaunchInstanceLinkToClipboard(Instance i) {
7-
Clipboard.SetText(LinkGenerator.GetLaunchInstanceLink(i));
8-
}
9-
10-
internal static void CopyInstanceLinkToClipboard(Instance i) {
11-
Clipboard.SetText(LinkGenerator.GetInstanceLink(i));
12-
}
13-
}
14-
}
1+
using System;
2+
using System.Windows.Forms;
3+
4+
namespace VRChatRejoinTool.Utility {
5+
public static class ClipboardUtility {
6+
internal static void CopyLaunchInstanceLinkToClipboard(Instance i) {
7+
Clipboard.SetText(LinkGenerator.GetLaunchInstanceLink(i));
8+
}
9+
10+
internal static void CopyInstanceLinkToClipboard(Instance i) {
11+
Clipboard.SetText(LinkGenerator.GetInstanceLink(i));
12+
}
13+
}
14+
}

Diff for: src/Utility/LinkGenerator.cs

+23-23
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
namespace VRChatRejoinTool.Utility {
2-
public static class LinkGenerator {
3-
public static string GetLaunchInstanceLink(Instance i) {
4-
return "vrchat://launch?id=" + i.Id;
5-
}
6-
7-
public static string GetInstanceLink(Instance i) {
8-
return string.Format(
9-
"https://vrchat.com/home/launch?worldId={0}{1}{2}",
10-
i.WorldId,
11-
i.IdWithoutWorldId == "" ? "" : "&instanceId=",
12-
i.IdWithoutWorldId
13-
);
14-
}
15-
16-
public static string GetUserIdLink(Instance i) {
17-
return string.Format(
18-
"https://vrchat.com/home/user/{0}",
19-
i.OwnerId
20-
);
21-
}
22-
}
23-
}
1+
namespace VRChatRejoinTool.Utility {
2+
public static class LinkGenerator {
3+
public static string GetLaunchInstanceLink(Instance i) {
4+
return "vrchat://launch?id=" + i.Id;
5+
}
6+
7+
public static string GetInstanceLink(Instance i) {
8+
return string.Format(
9+
"https://vrchat.com/home/launch?worldId={0}{1}{2}",
10+
i.WorldId,
11+
i.IdWithoutWorldId == "" ? "" : "&instanceId=",
12+
i.IdWithoutWorldId
13+
);
14+
}
15+
16+
public static string GetUserIdLink(Instance i) {
17+
return string.Format(
18+
"https://vrchat.com/home/user/{0}",
19+
i.OwnerId
20+
);
21+
}
22+
}
23+
}

Diff for: src/Utility/SaveInstanceUtility.cs

+31-31
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
using System.Windows.Forms;
2-
3-
namespace VRChatRejoinTool.Utility {
4-
static class SaveInstanceUtility {
5-
internal static void SaveInstanceToShortcutGui(Instance i, bool httpLink = false) {
6-
var sfd = new SaveFileDialog();
7-
8-
var filename = i.WorldId;
9-
var idWithoutWorldId = i.IdWithoutWorldId;
10-
11-
if (httpLink)
12-
filename = "web-" + filename;
13-
14-
if (idWithoutWorldId != "") {
15-
filename += "-";
16-
filename += idWithoutWorldId;
17-
}
18-
19-
filename += ".lnk";
20-
21-
sfd.FileName = filename;
22-
23-
sfd.Filter = "Link (*.lnk)|*.lnk|All files (*.*)|*.*";
24-
sfd.Title = "Save Instance";
25-
26-
if (sfd.ShowDialog() != DialogResult.OK) return;
27-
28-
VRChat.SaveInstanceToShortcut(i, sfd.FileName, httpLink);
29-
}
30-
}
31-
}
1+
using System.Windows.Forms;
2+
3+
namespace VRChatRejoinTool.Utility {
4+
static class SaveInstanceUtility {
5+
internal static void SaveInstanceToShortcutGui(Instance i, bool httpLink = false) {
6+
var sfd = new SaveFileDialog();
7+
8+
var filename = i.WorldId;
9+
var idWithoutWorldId = i.IdWithoutWorldId;
10+
11+
if (httpLink)
12+
filename = "web-" + filename;
13+
14+
if (idWithoutWorldId != "") {
15+
filename += "-";
16+
filename += idWithoutWorldId;
17+
}
18+
19+
filename += ".lnk";
20+
21+
sfd.FileName = filename;
22+
23+
sfd.Filter = "Link (*.lnk)|*.lnk|All files (*.*)|*.*";
24+
sfd.Title = "Save Instance";
25+
26+
if (sfd.ShowDialog() != DialogResult.OK) return;
27+
28+
VRChat.SaveInstanceToShortcut(i, sfd.FileName, httpLink);
29+
}
30+
}
31+
}

Diff for: src/Utility/ShellUtility.cs

+20-20
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
using System.Diagnostics;
2-
3-
namespace VRChatRejoinTool.Utility {
4-
public static class ShellUtility {
5-
internal static void ShowDetail(Instance i) {
6-
start(LinkGenerator.GetInstanceLink(i));
7-
}
8-
9-
internal static void ShowUserDetail(Instance i) {
10-
start(LinkGenerator.GetUserIdLink(i));
11-
}
12-
13-
private static void start(string path) {
14-
Process.Start(new ProcessStartInfo {
15-
FileName = path,
16-
UseShellExecute = true,
17-
});
18-
}
19-
}
20-
}
1+
using System.Diagnostics;
2+
3+
namespace VRChatRejoinTool.Utility {
4+
public static class ShellUtility {
5+
internal static void ShowDetail(Instance i) {
6+
start(LinkGenerator.GetInstanceLink(i));
7+
}
8+
9+
internal static void ShowUserDetail(Instance i) {
10+
start(LinkGenerator.GetUserIdLink(i));
11+
}
12+
13+
private static void start(string path) {
14+
Process.Start(new ProcessStartInfo {
15+
FileName = path,
16+
UseShellExecute = true,
17+
});
18+
}
19+
}
20+
}

0 commit comments

Comments
 (0)