Skip to content

Commit

Permalink
[F] Set ForceAsSserver to default ON (#92)
Browse files Browse the repository at this point in the history
* Set ForceAsSserver to default ON

* work as origin

---------

Co-authored-by: Clansty <[email protected]>
  • Loading branch information
Menci and clansty authored Nov 30, 2024
1 parent d5a9c98 commit 6225390
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", true))
{
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 6225390

Please sign in to comment.