-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathProgram.cs
More file actions
28 lines (27 loc) · 808 Bytes
/
Copy pathProgram.cs
File metadata and controls
28 lines (27 loc) · 808 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
28
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
namespace Shortcake
{
class Program
{
private static void Main(string[] args)
{
Strawberry presence = new Strawberry();
presence.Initialize();
if(!Process.GetProcesses().Where(x => x.ProcessName == presence.Process.ProcessName).Any())
return;
while(true)
{
presence.Update();
if(!Process.GetProcesses().Where(x => x.ProcessName == presence.Process.ProcessName).Any())
{
presence.Deinitialize();
Console.WriteLine("Thanks for using Shortcake!");
return;
}
}
}
}
}