blob: 7f9c37c3e684aeba9bb76c2bf6f1c53d83cce5b5 (
plain) (
blame)
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
28
29
30
|
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.IO;
namespace writer
{
class Program
{
static void Main(string[] args)
{
try
{
var serializerSettings = new JsonSerializerSettings
{
MissingMemberHandling = MissingMemberHandling.Error,
};
var token = JObject.Parse(File.ReadAllText(args[0]))["AccelerationSettings"];
var settings = token.ToObject<DriverSettings>(JsonSerializer.Create(serializerSettings));
DriverInterop.SetActiveSettings(settings);
}
catch (Exception e)
{
Console.WriteLine(e);
Console.ReadLine();
}
}
}
}
|