diff --git a/AM2RPortHelperLib/HelperMethods.cs b/AM2RPortHelperLib/HelperMethods.cs index 71426b3..1d8cfaf 100644 --- a/AM2RPortHelperLib/HelperMethods.cs +++ b/AM2RPortHelperLib/HelperMethods.cs @@ -80,6 +80,7 @@ public static class HelperMethods public static void SaveAndroidIcon(string iconPath, int dimensions, string filePath) { Image picture = Image.Load(iconPath); + // Most am2r cover is pixelart, hence why NN is used. Hermite would probably be a decent alternative too though. picture.Mutate(x => x.Resize(dimensions, dimensions, KnownResamplers.NearestNeighbor)); picture.SaveAsPng(filePath); } diff --git a/AM2RPortHelperLib/RawMods.cs b/AM2RPortHelperLib/RawMods.cs index 15d0fa9..1963279 100644 --- a/AM2RPortHelperLib/RawMods.cs +++ b/AM2RPortHelperLib/RawMods.cs @@ -18,7 +18,7 @@ public abstract class RawMods : IMods { ZipArchive archive = ZipFile.OpenRead(inputRawZipPath); if (archive.Entries.Any(f => f.FullName == "AM2R.exe") && archive.Entries.Any(f => f.FullName == "data.win")) - return ModOS.Linux; + return ModOS.Windows; if (archive.Entries.Any(f => f.FullName == "runner") && archive.Entries.Any(f => f.FullName == "assets/game.unx")) return ModOS.Linux; @@ -183,8 +183,6 @@ public abstract class RawMods : IMods HelperMethods.SaveAndroidIcon(origPath, 144, resPath + "/drawable-xxhdpi-v4/icon.png"); HelperMethods.SaveAndroidIcon(origPath, 192, resPath + "/drawable-xxxhdpi-v4/icon.png"); - // TODO: Hermite probably best as image upscaler, but we'll see - // On certain occasions, we need to modify the manifest file. if (useCustomSaveDirectory || usesInternet) {