Skip to content

Commit 481e543

Browse files
committed
Update copyright year
1 parent a7c400f commit 481e543

33 files changed

Lines changed: 258 additions & 257 deletions

Dotnet/AppApi/Cef/AppApiCef.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright(c) 2019-2022 pypy, Natsumi and individual contributors.
1+
// Copyright(c) 2019-2025 pypy, Natsumi and individual contributors.
22
// All rights reserved.
33
//
44
// This work is licensed under the terms of the MIT license.
@@ -27,7 +27,7 @@ namespace VRCX
2727
public partial class AppApiCef : AppApi
2828
{
2929
private static readonly Logger logger = LogManager.GetCurrentClassLogger();
30-
30+
3131
/// <summary>
3232
/// Shows the developer tools for the main browser window.
3333
/// </summary>
@@ -95,7 +95,7 @@ public override void DesktopNotification(string BoldText, string Text = "", stri
9595
logger.Error(ex, "Unknown error when sending desktop notification");
9696
}
9797
}
98-
98+
9999
public override void RestartApplication(bool isUpgrade)
100100
{
101101
var args = new List<string>();
@@ -125,12 +125,12 @@ public override void RestartApplication(bool isUpgrade)
125125
vrcxProcess.Start();
126126
Environment.Exit(0);
127127
}
128-
128+
129129
public override bool CheckForUpdateExe()
130130
{
131131
return File.Exists(Path.Join(Program.AppDataDirectory, "update.exe"));
132132
}
133-
133+
134134
public override void ExecuteAppFunction(string function, string json)
135135
{
136136
if (MainForm.Instance?.Browser != null && !MainForm.Instance.Browser.IsLoading && MainForm.Instance.Browser.CanExecuteJavascriptInMainFrame)
@@ -153,7 +153,7 @@ public override string GetLaunchCommand()
153153
StartupArgs.LaunchArguments.LaunchCommand = string.Empty;
154154
return command;
155155
}
156-
156+
157157
public override void FocusWindow()
158158
{
159159
MainForm.Instance.Invoke(new Action(() => { MainForm.Instance.Focus_Window(); }));
@@ -168,7 +168,7 @@ public override void DoFunny()
168168
{
169169
WinformThemer.DoFunny();
170170
}
171-
171+
172172
public override string GetClipboard()
173173
{
174174
var clipboard = string.Empty;
@@ -189,7 +189,7 @@ public override void SetStartup(bool enabled)
189189
logger.Warn("Failed to open startup registry key");
190190
return;
191191
}
192-
192+
193193
if (enabled)
194194
{
195195
var path = Application.ExecutablePath;
@@ -216,7 +216,7 @@ public override void CopyImageToClipboard(string path)
216216
!path.EndsWith(".bmp") &&
217217
!path.EndsWith(".webp")))
218218
return;
219-
219+
220220
MainForm.Instance.BeginInvoke(new MethodInvoker(() =>
221221
{
222222
var image = Image.FromFile(path);
@@ -227,12 +227,12 @@ public override void CopyImageToClipboard(string path)
227227
Clipboard.SetDataObject(data, true);
228228
}));
229229
}
230-
230+
231231
public override void FlashWindow()
232232
{
233233
MainForm.Instance.BeginInvoke(new MethodInvoker(() => { WinformThemer.Flash(MainForm.Instance); }));
234234
}
235-
235+
236236
public override void SetUserAgent()
237237
{
238238
using var client = MainForm.Instance.Browser.GetDevToolsClient();

Dotnet/AssetBundleManager.cs

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright(c) 2019-2022 pypy, Natsumi and individual contributors.
1+
// Copyright(c) 2019-2025 pypy, Natsumi and individual contributors.
22
// All rights reserved.
33
//
44
// This work is licensed under the terms of the MIT license.
@@ -28,7 +28,7 @@ static AssetBundleManager()
2828

2929
public string GetAssetId(string id, string variant = "")
3030
{
31-
using(var sha256 = SHA256.Create())
31+
using (var sha256 = SHA256.Create())
3232
{
3333
byte[] hash = sha256.ComputeHash(Encoding.UTF8.GetBytes(id + variant));
3434
StringBuilder idHex = new StringBuilder(hash.Length * 2);
@@ -53,16 +53,17 @@ public string GetAssetVersion(int version, int variantVersion = 0)
5353
{
5454
versionHex += b.ToString("X2");
5555
}
56-
56+
5757
return versionHex.PadLeft(32, '0');
5858
}
59-
59+
6060
public (int, int) ReverseHexToDecimal(string hexString)
6161
{
6262
if (hexString.Length != 32)
6363
return (0, 0); // it's cooked
64-
65-
try {
64+
65+
try
66+
{
6667
var variantVersionHexString = hexString.Substring(0, 8); // 0..8
6768
var versionHexString = hexString.Substring(24, 8); // 24..32
6869
var versionBytes = new byte[4];
@@ -110,7 +111,7 @@ public string GetVRChatCacheFullLocation(string id, int version, string variant
110111
var dirs = Directory.GetDirectories(topDir, versionSearchPattern);
111112
if (dirs.Length > 0)
112113
return dirs.OrderByDescending(dir => ReverseHexToDecimal(Path.GetFileName(dir)).Item2).First();
113-
114+
114115
return Path.Join(topDir, versionLocation);
115116
}
116117

@@ -129,7 +130,7 @@ public Tuple<long, bool, string> CheckVRChatCache(string id, int version, string
129130
var fullLocation = GetVRChatCacheFullLocation(id, version);
130131
if (!Directory.Exists(fullLocation))
131132
fullLocation = GetVRChatCacheFullLocation(id, version, variant, variantVersion);
132-
133+
133134
var fileLocation = Path.Join(fullLocation, "__data");
134135
var cachePath = string.Empty;
135136
if (File.Exists(fileLocation))
@@ -157,7 +158,7 @@ public void DeleteCache(string id, int version, string variant, int variantVersi
157158
var path = GetVRChatCacheFullLocation(id, version);
158159
if (Directory.Exists(path))
159160
Directory.Delete(path, true);
160-
161+
161162
path = GetVRChatCacheFullLocation(id, version, variant, variantVersion);
162163
if (Directory.Exists(path))
163164
Directory.Delete(path, true);
@@ -206,7 +207,7 @@ public List<string> SweepCache()
206207

207208
if (File.Exists(Path.Join(versionDirectory.FullName, "__lock")))
208209
continue; // skip locked version
209-
210+
210211
versionDirectory.Delete(true);
211212
output.Add($"{cacheDirectory.Name}\\{versionDirectory.Name}");
212213
}

Dotnet/Cef/CefCustomDownloadHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright(c) 2019-2022 pypy, Natsumi and individual contributors.
1+
// Copyright(c) 2019-2025 pypy, Natsumi and individual contributors.
22
// All rights reserved.
33
//
44
// This work is licensed under the terms of the MIT license.

Dotnet/Cef/CefCustomMenuHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright(c) 2019 pypy. All rights reserved.
1+
// Copyright(c) 2019-2025 pypy, Natsumi and individual contributors.
22
//
33
// This work is licensed under the terms of the MIT license.
44
// For a copy, see <https://opensource.org/licenses/MIT>.

Dotnet/Cef/CefNoopDragHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright(c) 2019-2022 pypy, Natsumi and individual contributors.
1+
// Copyright(c) 2019-2025 pypy, Natsumi and individual contributors.
22
// All rights reserved.
33
//
44
// This work is licensed under the terms of the MIT license.

Dotnet/Cef/MainForm.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.

Dotnet/Cef/MainForm.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright(c) 2019-2022 pypy, Natsumi and individual contributors.
1+
// Copyright(c) 2019-2025 pypy, Natsumi and individual contributors.
22
// All rights reserved.
33
//
44
// This work is licensed under the terms of the MIT license.

Dotnet/Discord.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright(c) 2019-2022 pypy, Natsumi and individual contributors.
1+
// Copyright(c) 2019-2025 pypy, Natsumi and individual contributors.
22
// All rights reserved.
33
//
44
// This work is licensed under the terms of the MIT license.
@@ -119,7 +119,7 @@ public void SetText(string details, string state)
119119
{
120120
if (m_Client == null || m_Lock.IsReadLockHeld)
121121
return;
122-
122+
123123
m_Lock.EnterWriteLock();
124124
try
125125
{
@@ -179,7 +179,7 @@ public void SetAssets(string largeKey, string largeText, string smallKey, string
179179
m_Lock.ExitWriteLock();
180180
}
181181
}
182-
182+
183183
public void SetTimestamps(double startUnixMilliseconds, double endUnixMilliseconds)
184184
{
185185
var _startUnixMilliseconds = (ulong)startUnixMilliseconds;

Dotnet/IPC/IPCClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright(c) 2019-2022 pypy, Natsumi and individual contributors.
1+
// Copyright(c) 2019-2025 pypy, Natsumi and individual contributors.
22
// All rights reserved.
33
//
44
// This work is licensed under the terms of the MIT license.
@@ -87,7 +87,7 @@ private void OnRead(IAsyncResult asyncResult)
8787
{
8888
if (string.IsNullOrEmpty(packet))
8989
continue;
90-
90+
9191
#if !LINUX
9292
if (MainForm.Instance?.Browser != null && !MainForm.Instance.Browser.IsLoading && MainForm.Instance.Browser.CanExecuteJavascriptInMainFrame)
9393
MainForm.Instance.Browser.ExecuteScriptAsync("$app.ipcEvent", packet);

Dotnet/IPC/IPCServer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright(c) 2019-2022 pypy, Natsumi and individual contributors.
1+
// Copyright(c) 2019-2025 pypy, Natsumi and individual contributors.
22
// All rights reserved.
33
//
44
// This work is licensed under the terms of the MIT license.
@@ -33,7 +33,7 @@ public static void Send(IPCPacket ipcPacket)
3333
client?.Send(ipcPacket);
3434
}
3535
}
36-
36+
3737
public static string GetIpcName()
3838
{
3939
var hash = 0;

0 commit comments

Comments
 (0)