保存聊天记录

This commit is contained in:
2026-05-21 20:06:06 +08:00
parent 51e5fbf60b
commit beefabd04d
4 changed files with 633 additions and 2 deletions
+2 -2
View File
@@ -30,8 +30,8 @@ public class Preferences
{
if (OperatingSystem.IsMacOS())
{
string home = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
DatabasePath = Path.Combine(home, "Library", "Application Support", "Resonance", "Databases");
string home = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
DatabasePath = Path.Combine(home, "OCES","Resonance", "Databases");
PreferencesPath = Path.Combine(home, "Library", "Preferences", "com.oces.Resonance.json");
}
else if (OperatingSystem.IsWindows())