public static void Init()
        {
            bool num = !new FileInfo(GenFilePaths.PrefsFilePath).Exists;

            data = new PrefsData();
            data = DirectXmlLoader.ItemFromXmlFile <PrefsData>(GenFilePaths.PrefsFilePath);
            BackCompatibility.PrefsDataPostLoad(data);
            if (num)
            {
                data.langFolderName = LanguageDatabase.SystemLanguageFolderName();
                data.uiScale        = ResolutionUtility.GetRecommendedUIScale(data.screenWidth, data.screenHeight);
            }
            if (DevModePermanentlyDisabledUtility.Disabled)
            {
                DevMode = false;
            }
            Apply();
        }