From bbf79bacac8002ae6fae81195f3f8a2d6db9c1de Mon Sep 17 00:00:00 2001 From: Professor Fartsalot Date: Wed, 27 Aug 2025 04:22:09 -0400 Subject: [PATCH 1/4] Changed display name in advanced config + Renamed to snowcloak to support planned api changes --- MareSynchronos/FileCache/CacheMonitor.cs | 16 ++++++++-------- MareSynchronos/UI/SettingsUi.cs | 14 +++++++------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/MareSynchronos/FileCache/CacheMonitor.cs b/MareSynchronos/FileCache/CacheMonitor.cs index 2677319..483fa0c 100644 --- a/MareSynchronos/FileCache/CacheMonitor.cs +++ b/MareSynchronos/FileCache/CacheMonitor.cs @@ -122,24 +122,24 @@ public sealed class CacheMonitor : DisposableMediatorSubscriberBase public bool StorageisNTFS { get; private set; } = false; - public void StartMareWatcher(string? marePath) + public void StartMareWatcher(string? snowPath) { MareWatcher?.Dispose(); - if (string.IsNullOrEmpty(marePath) || !Directory.Exists(marePath)) + if (string.IsNullOrEmpty(snowPath) || !Directory.Exists(snowPath)) { MareWatcher = null; - Logger.LogWarning("Mare file path is not set, cannot start the FSW for Mare."); + Logger.LogWarning("Snowcloak file path is not set, cannot start the FSW for Snowcloak."); return; } DriveInfo di = new(new DirectoryInfo(_configService.Current.CacheFolder).Root.FullName); StorageisNTFS = string.Equals("NTFS", di.DriveFormat, StringComparison.OrdinalIgnoreCase); - Logger.LogInformation("Mare Storage is on NTFS drive: {isNtfs}", StorageisNTFS); + Logger.LogInformation("Snowcloak Storage is on NTFS drive: {isNtfs}", StorageisNTFS); - Logger.LogDebug("Initializing Mare FSW on {path}", marePath); + Logger.LogDebug("Initializing Mare FSW on {path}", snowPath); MareWatcher = new() { - Path = marePath, + Path = snowPath, InternalBufferSize = 8388608, NotifyFilter = NotifyFilters.CreationTime | NotifyFilters.LastWrite @@ -161,7 +161,7 @@ public sealed class CacheMonitor : DisposableMediatorSubscriberBase if (string.IsNullOrEmpty(substPath)) { SubstWatcher = null; - Logger.LogWarning("Mare file path is not set, cannot start the FSW for Mare."); + Logger.LogWarning("Snowcloak file path is not set, cannot start the FSW for Snowcloak."); return; } @@ -197,7 +197,7 @@ public sealed class CacheMonitor : DisposableMediatorSubscriberBase private void MareWatcher_FileChanged(object sender, FileSystemEventArgs e) { - Logger.LogTrace("Mare FSW: FileChanged: {change} => {path}", e.ChangeType, e.FullPath); + Logger.LogTrace("Snowcloak FSW: FileChanged: {change} => {path}", e.ChangeType, e.FullPath); if (!AllowedFileExtensions.Any(ext => e.FullPath.EndsWith(ext, StringComparison.OrdinalIgnoreCase))) return; diff --git a/MareSynchronos/UI/SettingsUi.cs b/MareSynchronos/UI/SettingsUi.cs index ec2f703..a6ae0bb 100644 --- a/MareSynchronos/UI/SettingsUi.cs +++ b/MareSynchronos/UI/SettingsUi.cs @@ -581,32 +581,32 @@ public class SettingsUi : WindowMediatorSubscriberBase _uiShared.BigText("Advanced"); bool mareApi = _configService.Current.MareAPI; - if (ImGui.Checkbox("Enable Mare Synchronos API", ref mareApi)) + if (ImGui.Checkbox("Enable Snowcloak Sync API", ref mareApi)) { _configService.Current.MareAPI = mareApi; _configService.Save(); _ipcProvider.HandleMareImpersonation(); } - _uiShared.DrawHelpText("Enables handling of the Mare Synchronos API. This currently includes:\n\n" + + _uiShared.DrawHelpText("Enables handling of the Snowcloak Sync API. This currently includes:\n\n" + " - MCDF loading support for other plugins\n" + " - Blocking Moodles applications to paired users\n\n" + - "If the Mare Synchronos plugin is loaded while this option is enabled, control of its API will be relinquished."); + "If the Snowcloak Sync plugin is loaded while this option is enabled, control of its API will be relinquished."); using (_ = ImRaii.PushIndent()) { ImGui.SameLine(300.0f * ImGuiHelpers.GlobalScale); if (_ipcProvider.ImpersonationActive) { - UiSharedService.ColorTextWrapped("Mare API active!", ImGuiColors.HealerGreen); + UiSharedService.ColorTextWrapped("Snowcloak API active!", ImGuiColors.HealerGreen); } else { if (!mareApi) - UiSharedService.ColorTextWrapped("Mare API inactive: Option is disabled", ImGuiColors.DalamudYellow); + UiSharedService.ColorTextWrapped("Snowcloak API inactive: Option is disabled", ImGuiColors.DalamudYellow); else if (_ipcProvider.MarePluginEnabled) - UiSharedService.ColorTextWrapped("Mare API inactive: Mare plugin is loaded", ImGuiColors.DalamudYellow); + UiSharedService.ColorTextWrapped("Snowcloak API inactive: Snowcloak plugin is loaded", ImGuiColors.DalamudYellow); else - UiSharedService.ColorTextWrapped("Mare API inactive: Unknown reason", ImGuiColors.DalamudRed); + UiSharedService.ColorTextWrapped("Snowcloak API inactive: Unknown reason", ImGuiColors.DalamudRed); } } From 86cb7d222172d8a8536aa1c5d9b0d0620af8dfc6 Mon Sep 17 00:00:00 2001 From: Professor Fartsalot Date: Wed, 27 Aug 2025 13:34:24 -0400 Subject: [PATCH 2/4] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 39e206f..c7cbce2 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Snowcloak Sync +The snow may cloak the world in silence, but come in, warm up, and reveal your true colours. +[![Discord](https://img.shields.io/discord/1408265972720078990?color=5865F2&label=discord&logo=discord&logoColor=white)](https://discord.gg/snowcloak) -Come in from the cold, and be your true self. - -A Dalamud plugin. +A Dalamud plugin. From 27a09aa420d6688da403364a550cd3fb54f89fcc Mon Sep 17 00:00:00 2001 From: Professor Fartsalot Date: Wed, 27 Aug 2025 14:16:33 -0400 Subject: [PATCH 3/4] Add discord invite and update catchphrase --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c7cbce2..b1119d8 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # Snowcloak Sync The snow may cloak the world in silence, but come in, warm up, and reveal your true colours. -[![Discord](https://img.shields.io/discord/1408265972720078990?color=5865F2&label=discord&logo=discord&logoColor=white)](https://discord.gg/snowcloak) A Dalamud plugin. + +[![Discord](https://img.shields.io/discord/1408265972720078990?color=5865F2&label=discord&logo=discord&logoColor=white)](https://discord.gg/snowcloak) From a6973018956522a4bab075aa0df5d04cd81fd8d8 Mon Sep 17 00:00:00 2001 From: Professor Fartsalot Date: Thu, 28 Aug 2025 10:29:40 -0400 Subject: [PATCH 4/4] Update main ui to match theme of snowcloak sync --- MareSynchronos/UI/CompactUI.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MareSynchronos/UI/CompactUI.cs b/MareSynchronos/UI/CompactUI.cs index dbd2c6d..b52722b 100644 --- a/MareSynchronos/UI/CompactUI.cs +++ b/MareSynchronos/UI/CompactUI.cs @@ -105,7 +105,7 @@ public class CompactUi : WindowMediatorSubscriberBase protected override void DrawInternal() { if (_serverManager.CurrentApiUrl.Equals(ApiController.SnowcloakServiceUri, StringComparison.Ordinal)) - UiSharedService.AccentColor = new Vector4(1.0f, 0.8666f, 0.06666f, 1.0f); + UiSharedService.AccentColor = new(0.4275f, 0.6863f, 1f, 1f); else UiSharedService.AccentColor = ImGuiColors.ParsedGreen; ImGui.SetCursorPosY(ImGui.GetCursorPosY() - ImGui.GetStyle().WindowPadding.Y - 1f * ImGuiHelpers.GlobalScale + ImGui.GetStyle().ItemSpacing.Y);