Skip to content

Commit 468ffd7

Browse files
committed
[U] Nya!
[U] WorldLink is still WorldLink, but with some meow~
1 parent dfa44de commit 468ffd7

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

mod/WorldLink.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# WorldLink configuration file
1+
# NyaLink configuration file
22
#
33
# The Lobby URL can be one of {asia, euro, usw, use, cn}.link.aquadx.net
44
# Please select one that is closest to your location.

mod/WorldLink/FutariPatch.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
#endif
2424

2525
[ConfigSection(
26-
en: "Enable WorldLink Multiplayer",
27-
zh: "启用 WorldLink 多人游戏",
26+
en: "Enable NyaLink Multiplayer",
27+
zh: "启用 NyaLink 多人游戏",
2828
defaultOn: false)]
2929
public static class Futari
3030
{
@@ -53,7 +53,7 @@ public static class Futari
5353
private static readonly MethodInfo SetRecruitData = typeof(MusicSelectProcess).GetProperty("RecruitData")!.SetMethod;
5454
public static void OnBeforePatch()
5555
{
56-
Log.Info("Starting WorldLink patch...");
56+
Log.Info("Starting NyaLink patch...");
5757

5858
packetWriteUInt = typeof(Packet).GetMethod("write_uint", BindingFlags.NonPublic | BindingFlags.Static, null,
5959
new[]{typeof(PacketType), typeof(int), typeof(uint)}, null);
@@ -187,32 +187,32 @@ public static void CommonMonitorViewUpdate(CommonMonitor __instance,TextMeshProU
187187
switch (client.StatusCode)
188188
{
189189
case -1:
190-
____buildVersionText.text = $"WorldLink Offline";
190+
____buildVersionText.text = $"NyaLink Offline";
191191
____buildVersionText.color = Color.red;
192192
break;
193193
case 0:
194-
____buildVersionText.text = $"WorldLink Disconnect";
194+
____buildVersionText.text = $"NyaLink Disconnect";
195195
____buildVersionText.color = Color.gray;
196196
break;
197197
case 1:
198-
____buildVersionText.text = $"WorldLink Connecting";
198+
____buildVersionText.text = $"NyaLink Connecting";
199199
____buildVersionText.color = Color.yellow;
200200
break;
201201
case 2:
202202
var recruitCount = PartyMan == null ? 0 : PartyMan.GetRecruitList().Count;
203203
if (onlineUserCount > 0)
204204
{
205-
____buildVersionText.text = $"[WL] Room:{recruitCount} | Online:{onlineUserCount}";
205+
____buildVersionText.text = $"[NL] Room:{recruitCount} | Online:{onlineUserCount}";
206206
____buildVersionText.color = recruitCount > 0 ? Color.green : Color.cyan;
207207
}
208208
else if (onlineUserCount == 0)
209209
{
210-
____buildVersionText.text = $"[WL] Online:0";
210+
____buildVersionText.text = $"[NL] Online:0";
211211
____buildVersionText.color = Color.gray;
212212
}
213213
else
214214
{
215-
____buildVersionText.text = $"WorldLink Recruiting: {recruitCount}";
215+
____buildVersionText.text = $"NyaLink Recruiting: {recruitCount}";
216216
____buildVersionText.color = Color.cyan;
217217
}
218218
break;
@@ -405,7 +405,7 @@ public static bool preRecvStartRecruit(Packet packet)
405405
public static void postStartupOnUpdate(ref byte ____state, string[] ____statusMsg, string[] ____statusSubMsg)
406406
{
407407
// Status code
408-
____statusMsg[7] = "WORLD LINK";
408+
____statusMsg[7] = "NYALINK";
409409
____statusSubMsg[7] = client.StatusCode switch
410410
{
411411
-1 => "BAD",
@@ -636,7 +636,7 @@ public static void postPartyExec(MusicSelectProcess __instance)
636636
{
637637
// 设置房间信息显示
638638
var info = __instance.RecruitData.MechaInfo;
639-
var players = "WorldLink Room! Players: " +
639+
var players = "NyaLink Room! Players: " +
640640
string.Join(" and ", info.UserNames.Where((_, i) => info.FumenDifs[i] != -1));
641641

642642
__instance.MonitorArray.Where((_, i) => __instance.IsEntry(i))
@@ -875,14 +875,14 @@ private static void GetRelayInfoFromLobby()
875875
{
876876
if (e.Error != null)
877877
{
878-
Log.Error($"Failed to get WorldLink server address: {e.Error}");
878+
Log.Error($"Failed to get NyaLink server address: {e.Error}");
879879
return;
880880
}
881881
// Response Format: {"relayHost": "google.com", "relayPort": 20101}
882882
var info = JsonUtility.FromJson<ServerInfo>(e.Result);
883883
client.host = info.relayHost;
884884
client.port = info.relayPort;
885-
Log.Info($"WorldLink server address: {info.relayHost}:{info.relayPort}");
885+
Log.Info($"NyaLink server address: {info.relayHost}:{info.relayPort}");
886886
});
887887
}
888888
}

0 commit comments

Comments
 (0)