-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProgram.cs
More file actions
40 lines (33 loc) · 1.32 KB
/
Program.cs
File metadata and controls
40 lines (33 loc) · 1.32 KB
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
31
32
33
34
35
36
37
38
39
40
using BarRaider.SdTools;
using CommandLine;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace com.zaphop.nvidiabroadcast
{
internal class Program
{
static void Main(string[] args)
{
//TestBroadcastManager();
// Uncomment this line of code to allow for debugging
// This will cause the application to wait until you attach to the running process from Visual Studio.
//while (!System.Diagnostics.Debugger.IsAttached) { System.Threading.Thread.Sleep(100); }
SDWrapper.Run(args);
}
private static void TestBroadcastManager()
{
System.Globalization.CultureInfo ci = new System.Globalization.CultureInfo("pt-BR");
System.Threading.Thread.CurrentThread.CurrentCulture = ci;
System.Threading.Thread.CurrentThread.CurrentUICulture = ci;
Windows.Win32.PInvoke.SetThreadLocale(1046);
Windows.Win32.PInvoke.SetThreadUILanguage(1046); // This one did the trick!
var x = Windows.Win32.PInvoke.GetThreadLocale();
NvidiaBroadcastManager n = new NvidiaBroadcastManager(NvidiaBroadcastResourceID.AutoFrame, "FaceZoom");
}
}
}