客户端rsa,冗余清理,bug修复,安卓build问题
This commit is contained in:
+10
-1
@@ -6,6 +6,7 @@ public sealed class GlobalAchievementService : MonoBehaviour
|
||||
{
|
||||
private const string SaveCategory = "global_achievement";
|
||||
private const string SaveKey = "runtime_state";
|
||||
private const string RecoverySlotKey = "global_achievement_runtime_state";
|
||||
public const string DefaultResourcesPath = "so/globalachievments";
|
||||
public const string DefaultEditorAssetFolder = "Assets/Resources/so/globalachievments";
|
||||
|
||||
@@ -79,7 +80,14 @@ public sealed class GlobalAchievementService : MonoBehaviour
|
||||
GlobalAchievementSaveData loaded;
|
||||
if (!SecureSaveVault.TryLoadJson(SaveCategory, SaveKey, out loaded))
|
||||
{
|
||||
loaded = new GlobalAchievementSaveData();
|
||||
if (!LocalRecoveryMirror.TryLoadJson(RecoverySlotKey, out loaded) || loaded == null)
|
||||
{
|
||||
loaded = new GlobalAchievementSaveData();
|
||||
}
|
||||
else
|
||||
{
|
||||
SecureSaveVault.SaveJson(SaveCategory, SaveKey, loaded);
|
||||
}
|
||||
}
|
||||
|
||||
saveData = loaded ?? new GlobalAchievementSaveData();
|
||||
@@ -274,6 +282,7 @@ public sealed class GlobalAchievementService : MonoBehaviour
|
||||
|
||||
lastSaveFrame = Application.isPlaying ? Time.frameCount : -1;
|
||||
SecureSaveVault.SaveJson(SaveCategory, SaveKey, saveData);
|
||||
LocalRecoveryMirror.SaveJson(RecoverySlotKey, saveData);
|
||||
}
|
||||
|
||||
private void EvaluateAll()
|
||||
|
||||
Reference in New Issue
Block a user