Skip to content

Commit 1dcda29

Browse files
committed
up 修bug
1 parent 16bd920 commit 1dcda29

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/ColorMC.Core/Helpers/AddGameHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ private static async Task<GameRes> UnzipAsync(string? name, string? group, strin
592592
packgui?.SetNowSub(index, size);
593593
packgui?.SetSubText(e.Key);
594594
index++;
595-
string file1 = Path.GetFullPath(game.GetGamePath() + e.Key);
595+
string file1 = Path.GetFullPath(game.GetGamePath() + Path.DirectorySeparatorChar + e.Key);
596596
if (e.Key!.EndsWith(Names.NameIconFile))
597597
{
598598
file1 = game.GetIconFile();

src/ColorMC.Gui/UIBinding/GameBinding.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1368,6 +1368,10 @@ public static async Task<bool> AddFileAsync(GameSettingObj obj, IDataTransfer da
13681368
{
13691369
return PackType.HMCLServer;
13701370
}
1371+
else if (item.Key == Names.NameModrinthFile)
1372+
{
1373+
return PackType.Modrinth;
1374+
}
13711375
}
13721376
foreach (var item in zip.Entries)
13731377
{

0 commit comments

Comments
 (0)