Skip to content

Commit

Permalink
fix: windows build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
timschneeb committed May 17, 2024
1 parent ac403fb commit 9861bf9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void Execute(GeneratorExecutionContext context)
// <auto-generated/>
namespace GalaxyBudsClient.Generated.I18N;
""");
dictionarySource.EnterScope("public static partial class LocalizationDictionaries");
dictionarySource.EnterScope("internal static partial class LocalizationDictionaries");
dictionarySource.EnterScope($"private static global::System.Collections.Generic.Dictionary<global::System.String, global::System.String> @{langCode} => new()");

foreach (var node in nodes)
Expand Down Expand Up @@ -152,7 +152,7 @@ namespace GalaxyBudsClient.Generated.I18N;
#nullable enable
namespace GalaxyBudsClient.Generated.I18N;
""");
lookupSource.EnterScope("public static partial class LocalizationDictionaries");
lookupSource.EnterScope("internal static partial class LocalizationDictionaries");
lookupSource.EnterScope("public static global::System.Collections.Generic.Dictionary<global::System.String, global::System.String>? GetByLangCode(global::System.String langCode)");
lookupSource.EnterScope("return langCode switch");
foreach (var lang in languages)
Expand Down
2 changes: 1 addition & 1 deletion GalaxyBudsClient.Platform/Stubs/HotkeyReceiver.Dummy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public async Task ValidateHotkeyAsync(IHotkey hotkey)
{
Log.Warning("Dummy.HotkeyReceiver: Platform not supported");
}

public event EventHandler<IHotkey>? HotkeyPressed;

Check warning on line 27 in GalaxyBudsClient.Platform/Stubs/HotkeyReceiver.Dummy.cs

View workflow job for this annotation

GitHub Actions / build-x64

The event 'DummyHotkeyReceiver.HotkeyPressed' is never used

Check warning on line 27 in GalaxyBudsClient.Platform/Stubs/HotkeyReceiver.Dummy.cs

View workflow job for this annotation

GitHub Actions / build-arm64

The event 'DummyHotkeyReceiver.HotkeyPressed' is never used

Check warning on line 27 in GalaxyBudsClient.Platform/Stubs/HotkeyReceiver.Dummy.cs

View workflow job for this annotation

GitHub Actions / build-arm64

The event 'DummyHotkeyReceiver.HotkeyPressed' is never used

Check warning on line 27 in GalaxyBudsClient.Platform/Stubs/HotkeyReceiver.Dummy.cs

View workflow job for this annotation

GitHub Actions / build-x86

The event 'DummyHotkeyReceiver.HotkeyPressed' is never used

Check warning on line 27 in GalaxyBudsClient.Platform/Stubs/HotkeyReceiver.Dummy.cs

View workflow job for this annotation

GitHub Actions / build-x64-musl

The event 'DummyHotkeyReceiver.HotkeyPressed' is never used

Check warning on line 27 in GalaxyBudsClient.Platform/Stubs/HotkeyReceiver.Dummy.cs

View workflow job for this annotation

GitHub Actions / build-universal

The event 'DummyHotkeyReceiver.HotkeyPressed' is never used

Check warning on line 27 in GalaxyBudsClient.Platform/Stubs/HotkeyReceiver.Dummy.cs

View workflow job for this annotation

GitHub Actions / build-x64

The event 'DummyHotkeyReceiver.HotkeyPressed' is never used

Check warning on line 27 in GalaxyBudsClient.Platform/Stubs/HotkeyReceiver.Dummy.cs

View workflow job for this annotation

GitHub Actions / build-x64

The event 'DummyHotkeyReceiver.HotkeyPressed' is never used

Check warning on line 27 in GalaxyBudsClient.Platform/Stubs/HotkeyReceiver.Dummy.cs

View workflow job for this annotation

GitHub Actions / build-arm

The event 'DummyHotkeyReceiver.HotkeyPressed' is never used

public void Dispose()
Expand Down
1 change: 1 addition & 0 deletions GalaxyBudsClient/Platform/PlatformImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using GalaxyBudsClient.Platform.OSX;
#endif
#if Windows
using GalaxyBudsClient.Model.Config;
using GalaxyBudsClient.Platform.Windows;
using GalaxyBudsClient.Platform.WindowsRT;
#endif
Expand Down
2 changes: 1 addition & 1 deletion GalaxyBudsClient/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static void Main(string[] args)
StartedAt = Stopwatch.GetTimestamp();

#if Windows
ThePBone.Interop.Win32.WindowsUtils.AttachConsole();
GalaxyBudsClient.Platform.Windows.WindowsUtils.AttachConsole();
#endif

var logPath = PlatformUtils.CombineDataPath("application.log");
Expand Down

0 comments on commit 9861bf9

Please sign in to comment.