private void WritePreferences()
{
EditorPrefs.SetString("kScriptsDefaultApp", this.m_ScriptEditorPath);
EditorPrefs.SetString("kScriptEditorArgs", this.m_ScriptEditorArgs);
EditorPrefs.SetString("kImagesDefaultApp", this.m_ImageAppPath);
EditorPrefs.SetString("kDiffsDefaultApp", (this.m_DiffTools.Length != 0) ? this.m_DiffTools[this.m_DiffToolIndex] : string.Empty);
EditorPrefs.SetString("AndroidSdkRoot", this.m_AndroidSdkPath);
this.WriteRecentAppsList(this.m_ScriptApps, this.m_ScriptEditorPath, "RecentlyUsedScriptApp");
this.WriteRecentAppsList(this.m_ImageApps, this.m_ImageAppPath, "RecentlyUsedImageApp");
EditorPrefs.SetBool("kAutoRefresh", this.m_AutoRefresh);
EditorPrefs.SetBool("ReopenLastUsedProjectOnStartup", this.m_ReopenLastUsedProjectOnStartup);
EditorPrefs.SetBool("UseOSColorPicker", this.m_UseOSColorPicker);
EditorPrefs.SetBool("EnableEditorAnalytics", this.m_EnableEditorAnalytics);
EditorPrefs.SetBool("ShowAssetStoreSearchHits", this.m_ShowAssetStoreSearchHits);
EditorPrefs.SetBool("VerifySavingAssets", this.m_VerifySavingAssets);
EditorPrefs.SetBool("AllowAttachedDebuggingOfEditor", this.m_AllowAttachedDebuggingOfEditor);
EditorPrefs.SetBool("AllowAlphaNumericHierarchy", this.m_AllowAlphaNumericHierarchy);
EditorPrefs.SetBool("GICacheEnableCustomPath", this.m_GICacheSettings.m_EnableCustomPath);
EditorPrefs.SetInt("GICacheMaximumSizeGB", this.m_GICacheSettings.m_MaximumSize);
EditorPrefs.SetString("GICacheFolder", this.m_GICacheSettings.m_CachePath);
EditorPrefs.SetInt("GICacheCompressionLevel", this.m_GICacheSettings.m_CompressionLevel);
foreach (IPreferenceWindowExtension current in this.prefWinExtensions)
{
current.WritePreferences();
}
Lightmapping.UpdateCachePath();
}