Skip to content

Commit f245f12

Browse files
committed
chore: update submodule references for AquaMai and MuConvert
同时修复 wine 无法运行的问题
1 parent 7ac01cf commit f245f12

4 files changed

Lines changed: 13 additions & 5 deletions

File tree

AquaMai

MaiChartManager/IapManager.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ public static class IapManager
66
{
77
private const string storeId = "9NPJ5N4MMBR5";
88

9+
# if !CRACK
910
private static StoreContext StoreContext { get; } = StoreContext.GetDefault();
11+
# endif
1012

1113
private static Form _form;
1214

@@ -24,7 +26,7 @@ public static async Task Init()
2426
# if CRACK
2527
License = LicenseStatus.Active;
2628
return;
27-
# endif
29+
# else
2830
if (!string.IsNullOrWhiteSpace(StaticSettings.Config.OfflineKey) && (await OfflineReg.VerifyAsync(StaticSettings.Config.OfflineKey)).IsValid)
2931
{
3032
License = LicenseStatus.Active;
@@ -53,12 +55,15 @@ public static async Task Init()
5355
{
5456
License = LicenseStatus.Inactive;
5557
}
58+
# endif
5659
}
5760

5861
public static void BindToForm(Form form)
5962
{
6063
_form = form;
64+
# if !CRACK
6165
WinRT.Interop.InitializeWithWindow.Initialize(StoreContext, form.Handle);
66+
# endif
6267
}
6368

6469
public static void SetOfflineLicenseActive()
@@ -75,12 +80,15 @@ public static async Task<StorePurchaseResult> Purchase()
7580

7681
_form.Show();
7782
_form.Activate();
83+
# if CRACK
84+
return null!;
85+
# else
7886
var res = await StoreContext.RequestPurchaseAsync(storeId);
7987
if (res.Status == StorePurchaseStatus.Succeeded)
8088
{
8189
License = LicenseStatus.Active;
8290
}
83-
8491
return res;
92+
# endif
8593
}
8694
}

MaiChartManager/Launcher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public Launcher()
3333
# if DEBUG
3434
checkBox1.Checked = true;
3535
StaticSettings.Config.Export = true;
36-
textBox1.Text = @"D:\Arcade\Maimai\SDEZ160 Debug";
36+
textBox1.Text = @"Z:\mnt\Arcade\SDEZ165";
3737
StartClicked(null, null);
3838
notifyIcon1.Visible = true;
3939
WindowState = FormWindowState.Minimized;

0 commit comments

Comments
 (0)