Skip to content

Commit

Permalink
Update InstancesPath.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Coloryr committed Dec 23, 2024
1 parent e66facb commit 638c539
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ColorMC.Core/LaunchPath/InstancesPath.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1057,9 +1057,12 @@ await Task.Run(() =>
/// <returns>数据</returns>
public static async Task<MessageRes> SetGameLoader(this GameSettingObj obj, string path)
{
if (!File.Exists(path))
if (SystemInfo.Os != OsType.Android)
{
return new() { Message = LanguageHelper.Get("Core.Game.Error16") };
if (!File.Exists(path))
{
return new() { Message = LanguageHelper.Get("Core.Game.Error16") };
}
}

var list = await DownloadItemHelper.DecodeLoaderJarAsync(obj, path);
Expand Down

0 comments on commit 638c539

Please sign in to comment.