Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[F] Set ForceAsSserver to default ON #92

Merged
merged 2 commits into from
Nov 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading