-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathApp.xaml.cs
More file actions
27 lines (26 loc) · 937 Bytes
/
Copy pathApp.xaml.cs
File metadata and controls
27 lines (26 loc) · 937 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System.Globalization;
using System.Windows;
using CefSharp;
using System;
namespace PSO2ModManager {
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application {
internal static string locale;
public App() {
// i18n settings
locale = CultureInfo.CurrentCulture.ToString();
var settings = new CefSettings {
// Uncomment for version 49
//CefCommandLineArgs.Add("disable-gpu", "1"),
// Sync browser locale to system
LocalesDirPath = System.Windows.Forms.Application.StartupPath + "\\locales",
Locale = locale
};
System.IO.Directory.CreateDirectory(settings.LocalesDirPath);
Cef.Initialize(settings);
//Cef.Initialize(settings, shutdownOnProcessExit: true, performDependencyCheck: true);
}
}
}