diff --git a/VRCFaceTracking.Core/Contracts/Services/ILocalSettingsService.cs b/VRCFaceTracking.Core/Contracts/Services/ILocalSettingsService.cs index 33799038..5a8026b2 100644 --- a/VRCFaceTracking.Core/Contracts/Services/ILocalSettingsService.cs +++ b/VRCFaceTracking.Core/Contracts/Services/ILocalSettingsService.cs @@ -2,7 +2,7 @@ public interface ILocalSettingsService { - Task ReadSettingAsync(string key, T? defaultValue = default); + Task ReadSettingAsync(string key, T? defaultValue = default, bool forceLocal = false); - Task SaveSettingAsync(string key, T value); + Task SaveSettingAsync(string key, T value, bool forceLocal = false); } diff --git a/VRCFaceTracking.Core/Params/Data/UnifiedTrackingMutator.cs b/VRCFaceTracking.Core/Params/Data/UnifiedTrackingMutator.cs index 37b76dd5..3bfbbfc0 100644 --- a/VRCFaceTracking.Core/Params/Data/UnifiedTrackingMutator.cs +++ b/VRCFaceTracking.Core/Params/Data/UnifiedTrackingMutator.cs @@ -180,7 +180,7 @@ public async Task SaveCalibration() await _localSettingsService.SaveSettingAsync("CalibrationEnabled", Enabled); await _localSettingsService.SaveSettingAsync("CalibrationWeight", CalibrationWeight); await _localSettingsService.SaveSettingAsync("ContinuousCalibrationEnabled", ContinuousCalibration); - await _localSettingsService.SaveSettingAsync("Mutations", mutationData); + await _localSettingsService.SaveSettingAsync("Mutations", mutationData, true); } public async void LoadCalibration() diff --git a/VRCFaceTracking.Core/VRCFaceTracking.Core.csproj b/VRCFaceTracking.Core/VRCFaceTracking.Core.csproj index b8964475..5617f51a 100644 --- a/VRCFaceTracking.Core/VRCFaceTracking.Core.csproj +++ b/VRCFaceTracking.Core/VRCFaceTracking.Core.csproj @@ -5,7 +5,7 @@ x64 x64 enable - 5.0.2.3 + 5.1.0.0 diff --git a/VRCFaceTracking/BundleArtifacts/VRCFaceTracking_x64.appinstaller.xml b/VRCFaceTracking/BundleArtifacts/VRCFaceTracking_x64.appinstaller.xml index a98d214d..aeecb52f 100644 --- a/VRCFaceTracking/BundleArtifacts/VRCFaceTracking_x64.appinstaller.xml +++ b/VRCFaceTracking/BundleArtifacts/VRCFaceTracking_x64.appinstaller.xml @@ -1,2 +1,2 @@  - \ No newline at end of file + \ No newline at end of file diff --git a/VRCFaceTracking/Package.appinstaller b/VRCFaceTracking/Package.appinstaller index 90b95de4..71a2c422 100644 --- a/VRCFaceTracking/Package.appinstaller +++ b/VRCFaceTracking/Package.appinstaller @@ -11,7 +11,7 @@ Uri="{MainPackageUri}"/> - + diff --git a/VRCFaceTracking/Package.appxmanifest b/VRCFaceTracking/Package.appxmanifest index 53ee90a6..a5cc837d 100644 --- a/VRCFaceTracking/Package.appxmanifest +++ b/VRCFaceTracking/Package.appxmanifest @@ -14,7 +14,7 @@ + Version="5.1.0.0" /> diff --git a/VRCFaceTracking/Services/LocalSettingsService.cs b/VRCFaceTracking/Services/LocalSettingsService.cs index e600ec3b..a36528cf 100644 --- a/VRCFaceTracking/Services/LocalSettingsService.cs +++ b/VRCFaceTracking/Services/LocalSettingsService.cs @@ -48,9 +48,9 @@ private async Task InitializeAsync() } } - public async Task ReadSettingAsync(string key, T? defaultValue = default) + public async Task ReadSettingAsync(string key, T? defaultValue = default, bool forceLocal = false) { - if (RuntimeHelper.IsMSIX) + if (RuntimeHelper.IsMSIX && !forceLocal) { if (ApplicationData.Current.LocalSettings.Values.TryGetValue(key, out var obj)) { @@ -70,9 +70,9 @@ private async Task InitializeAsync() return defaultValue; } - public async Task SaveSettingAsync(string key, T value) + public async Task SaveSettingAsync(string key, T value, bool forceLocal = false) { - if (RuntimeHelper.IsMSIX) + if (RuntimeHelper.IsMSIX && !forceLocal) { ApplicationData.Current.LocalSettings.Values[key] = await Json.StringifyAsync(value); } diff --git a/VRCFaceTracking/VRCFaceTracking.csproj b/VRCFaceTracking/VRCFaceTracking.csproj index 46c6a8a2..97b9476a 100644 --- a/VRCFaceTracking/VRCFaceTracking.csproj +++ b/VRCFaceTracking/VRCFaceTracking.csproj @@ -21,7 +21,7 @@ False True Auto - 5.0.2.3 + 5.1.0.0 https://github.com/benaclejames/VRCFaceTracking/releases/latest/download/ x64