2022-11-13 13:36:50 +01:00
|
|
|
using RTSSSharedMemoryNET;
|
2022-11-13 14:39:29 +01:00
|
|
|
using System.Diagnostics;
|
2022-11-13 13:36:50 +01:00
|
|
|
|
|
|
|
|
namespace PerformanceOverlay
|
|
|
|
|
{
|
|
|
|
|
internal static class Program
|
|
|
|
|
{
|
|
|
|
|
[STAThread]
|
|
|
|
|
static void Main()
|
|
|
|
|
{
|
|
|
|
|
ApplicationConfiguration.Initialize();
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
foreach (var entry in RTSSSharedMemoryNET.OSD.GetOSDEntries())
|
|
|
|
|
{
|
2022-11-13 14:39:29 +01:00
|
|
|
Trace.WriteLine("Entry: {0}", entry.Owner);
|
|
|
|
|
Trace.WriteLine("\t", entry.Text);
|
|
|
|
|
|
|
|
|
|
using (var newOSD = new OSD("New OSD"))
|
|
|
|
|
{
|
|
|
|
|
newOSD.Update(entry.Text);
|
|
|
|
|
}
|
2022-11-13 13:36:50 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch(SystemException)
|
|
|
|
|
{ }
|
|
|
|
|
|
|
|
|
|
using (var controller = new Controller())
|
|
|
|
|
{
|
|
|
|
|
Application.Run();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|