mirror of
https://github.com/HolographicHat/Yae.git
synced 2025-12-10 08:28:12 +08:00
14 lines
360 B
C#
14 lines
360 B
C#
using System.ComponentModel;
|
|
using YaeAchievement.AppCenterSDK;
|
|
|
|
namespace YaeAchievement.Win32;
|
|
|
|
public static class Extensions {
|
|
|
|
public static int PrintMsgAndReturnErrCode(this Win32Exception ex, string msg) {
|
|
Console.WriteLine($"{msg}: {ex.Message}");
|
|
AppCenter.TrackCrash(ex, false);
|
|
return ex.NativeErrorCode;
|
|
}
|
|
|
|
} |