Skip to content

Commit

Permalink
歌曲播放
Browse files Browse the repository at this point in the history
  • Loading branch information
WhatDamon committed Aug 24, 2024
1 parent 41f8127 commit 68fb415
Show file tree
Hide file tree
Showing 5 changed files with 262 additions and 65 deletions.
2 changes: 1 addition & 1 deletion NCMDumpGUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="DarkNet" Version="2.3.0" />
<PackageReference Include="NAudio" Version="2.2.1" />
</ItemGroup>

</Project>
6 changes: 0 additions & 6 deletions Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using Dark.Net;

namespace NCMDumpGUI
{
public static class GlobalVariables
Expand All @@ -16,18 +14,14 @@ static void Main(string[] args)
Application.SetHighDpiMode(HighDpiMode.SystemAware);
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
IDarkNet darkNet = DarkNet.Instance;
if (!File.Exists(GlobalVariables.libncmdumpPath))
{
MessageBox.Show("核心不存在\n请确认libncmdump.dll与本程序在同一目录", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
Environment.Exit(0);
}
else
{
ApplicationConfiguration.Initialize();
Form mainForm = new WndMain(args);
Theme windowTheme = Theme.Auto;
darkNet.SetWindowThemeForms(mainForm, windowTheme);
Application.Run(mainForm);
}
}
Expand Down
68 changes: 66 additions & 2 deletions WndMain.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 68fb415

Please sign in to comment.