Skip to content

Commit 354b3a8

Browse files
committed
不检查 dobby.dll
1 parent c320e07 commit 354b3a8

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

AquaMai

MaiChartManager/Controllers/ModController.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ public class ModController(StaticSettings settings, ILogger<ModController> logge
1919
[HttpGet]
2020
public bool IsMelonInstalled()
2121
{
22-
return System.IO.File.Exists(Path.Combine(StaticSettings.GamePath, "dobby.dll"))
23-
&& System.IO.File.Exists(Path.Combine(StaticSettings.GamePath, "version.dll"))
24-
&& Directory.Exists(Path.Combine(StaticSettings.GamePath, "MelonLoader"));
22+
return System.IO.File.Exists(Path.Combine(StaticSettings.GamePath, "version.dll"))
23+
&& Directory.Exists(Path.Combine(StaticSettings.GamePath, "MelonLoader"));
2524
}
2625

2726
[HttpGet]
@@ -36,7 +35,8 @@ public record GameModInfo(
3635
string AquaMaiVersion,
3736
string BundledAquaMaiVersion,
3837
bool IsJudgeDisplay4BInstalled,
39-
bool IsHidConflictExist);
38+
bool IsHidConflictExist
39+
);
4040

4141
private static string AquaMaiConfigPath => Path.Combine(StaticSettings.GamePath, "AquaMai.toml");
4242
private static string AquaMaiConfigBackupDirPath => Path.Combine(StaticSettings.GamePath, "AquaMai.toml.bak");
@@ -209,7 +209,8 @@ public void SetAquaMaiConfig(AquaMaiConfigDto.ConfigSaveDto config)
209209
var newEntryValue = newEntryState.Value.Deserialize(entry.Field.FieldType, jsonOptions);
210210
if (!oldEntryState.Value.Equals(newEntryValue))
211211
{
212-
logger.LogInformation("Not same: {Path}, {type1}, {newEntryValue}, {type2}, {oldEntryState}", entry.Path, newEntryValue?.GetType(), newEntryValue, oldEntryState.Value?.GetType(), oldEntryState.Value);
212+
logger.LogInformation("Not same: {Path}, {type1}, {newEntryValue}, {type2}, {oldEntryState}", entry.Path, newEntryValue?.GetType(), newEntryValue, oldEntryState.Value?.GetType(),
213+
oldEntryState.Value);
213214
configEdit.SetEntryValue(entry, newEntryValue);
214215
}
215216
else if (!newEntryState.IsDefault)

0 commit comments

Comments
 (0)