Initial
Rust validation / Windows x64 build and tests (push) Waiting to run
Rust validation / Formatting (push) Failing after 27s
EonaCat/ci-workflows: SonarQube / sonar (push) Successful in 45s

This commit is contained in:
EonaCat committed 2026-12-04 21:08:34 +01:00
1 parent 2cff35f215
commit 0f7377a1b5
359 files changed
+253980 -74

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
using System.Drawing;
namespace EonaCat.XSBOX.Launcher;
internal static class LauncherBrand
{
public static string? ResolveLogoPath()
{
var candidates = new List<string>
{
Path.Combine(AppContext.BaseDirectory, "assets", "eonacat-logo.ico"),
Path.Combine(AppContext.BaseDirectory, "eonacat-logo.ico")
};
var directory = new DirectoryInfo(AppContext.BaseDirectory);
for (var depth = 0; depth < 8 && directory != null; depth++, directory = directory.Parent)
{
candidates.Add(Path.Combine(directory.FullName, "assets", "eonacat-logo.ico"));
candidates.Add(Path.Combine(directory.FullName, "eonacat-logo.ico"));
}
return candidates.FirstOrDefault(File.Exists);
}
public static Icon? CreateIcon()
{
var path = ResolveLogoPath();
if (path == null) return null;
try { return new Icon(path); }
catch { return null; }
}
}