From bf38c1d3223bd058f9ae69811ba30e7733afd0b3 Mon Sep 17 00:00:00 2001 From: Distortions81 <carlotto81@gmail.com> Date: Fri, 22 Dec 2023 20:23:04 -0700 Subject: [PATCH] private map prefix --- constants/consts.go | 1 + fact/factConfGen.go | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/constants/consts.go b/constants/consts.go index 50bef029..aef34655 100755 --- a/constants/consts.go +++ b/constants/consts.go @@ -24,6 +24,7 @@ const ( RoleListFile = "../RoleList.dat" VoteFile = "votes.dat" MembersPrefix = "M" + PrivatePrefix = "P" RegularsPrefix = "R" ArchiveFolderSuffix = " maps" TempSaveName = "softmod.tmp" diff --git a/fact/factConfGen.go b/fact/factConfGen.go index d8117b80..85ff22d1 100755 --- a/fact/factConfGen.go +++ b/fact/factConfGen.go @@ -57,7 +57,9 @@ func GenerateFactorioConfig() bool { constants.ServSettingsName var servName string - if cfg.Local.Options.MembersOnly || cfg.Local.Options.RegularsOnly { + if cfg.Local.Options.CustomWhitelist { + cfg.ServerPrefix = constants.PrivatePrefix + } else if cfg.Local.Options.MembersOnly || cfg.Local.Options.RegularsOnly { if cfg.Local.Options.RegularsOnly { cfg.ServerPrefix = constants.RegularsPrefix } else {