mirror of
https://github.com/MikuLeaks/MikuSB.git
synced 2026-06-04 17:04:13 +00:00
Compare commits
3 Commits
v2.5
...
548c77850e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
548c77850e | ||
|
|
d8c356a01f | ||
|
|
4ee11618be |
@@ -6,8 +6,7 @@ public static class PatchDownloadService
|
||||
{
|
||||
private static readonly Logger Logger = new("PatchDownloader");
|
||||
private const string PatchRelativePath = @"Patch\MikuSB-Patch.dll";
|
||||
private const string PatchDownloadUrl =
|
||||
"https://github.com/Kei-Luna/MikuSB-Patch/releases/download/MikuSB-Patch/MikuSB-Patch.dll";
|
||||
private const string PatchDownloadUrl = "https://github.com/Kei-Luna/MikuSB-Patch/releases/download/MikuSB-Patch/MikuSB-Patch.dll";
|
||||
private const int DownloadTimeoutSeconds = 60;
|
||||
|
||||
public static void EnsurePatchPresent()
|
||||
|
||||
@@ -1,16 +1,14 @@
|
||||
using MikuSB.Util.Extensions;
|
||||
|
||||
namespace MikuSB.GameServer.Server.CallGS.Handlers.Misc;
|
||||
|
||||
// Client requests server time to calculate timezone offset.
|
||||
// nTime1/nTime2 are DST transition reference timestamps; returning the same value means no offset.
|
||||
// In the client, ZoneTime.lua hardcodes sTime1/sTime2; if nTime1/nTime2 are false, the client ignores this update.
|
||||
// Otherwise, offset = nTimeX - ParseTimeNative(sTimeX).
|
||||
[CallGSApi("ZoneTime_ReqTime")]
|
||||
public class ZoneTime_ReqTime : ICallGSHandler
|
||||
{
|
||||
public async Task Handle(Connection connection, string param, ushort seqNo)
|
||||
{
|
||||
var now = Extensions.GetUnixSec();
|
||||
var arg = $"{{\"nTime1\":{now},\"nTime2\":{now}}}";
|
||||
var arg = $"{{\"nTime1\":false,\"nTime2\":false}}";
|
||||
await CallGSRouter.SendScript(connection, "ZoneTime_ChangeTime", arg);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user