Skip to content

Commit

Permalink
Set ForceAsSserver to default ON
Browse files Browse the repository at this point in the history
  • Loading branch information
Menci committed Nov 28, 2024
1 parent c42f17c commit cd2fbee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,10 @@ public IConfigView Migrate(IConfigView src)
{
dst.SetValue("GameSystem.RemoveEncryption.Disabled", true); // Enabled by default in V2
}
MapBooleanTrueToSectionEnable(src, dst, "Fix.ForceAsServer", "GameSettings.ForceAsServer");
if (!src.GetValueOrDefault<bool>("Fix.ForceAsServer"))
{
dst.SetValue("GameSettings.ForceAsServer.Disabled", true); // Enabled by default in V2
}
if (src.GetValueOrDefault<bool>("Fix.ForceFreePlay"))
{
dst.SetValue("GameSettings.CreditConfig.IsFreePlay", true);
Expand Down Expand Up @@ -297,6 +300,7 @@ public IConfigView Migrate(IConfigView src)

// Default enabled in V2
dst.EnsureDictionary("GameSystem.RemoveEncryption");
dst.EnsureDictionary("GameSettings.ForceAsServer");

return dst;
}
Expand Down
3 changes: 2 additions & 1 deletion AquaMai/AquaMai.Mods/GameSettings/ForceAsServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ namespace AquaMai.Mods.GameSettings;

[ConfigSection(
en: "If you want to configure in-shop party-link, you should turn this off.",
zh: "如果要配置店内招募的话,应该要把这个关闭")]
zh: "如果要配置店内招募的话,应该要把这个关闭",
defaultOn: true)]
public class ForceAsServer
{
[HarmonyPrefix]
Expand Down

0 comments on commit cd2fbee

Please sign in to comment.