add todos/unsupported exceptions

pull/5/head
Miepee 4 years ago
parent 3e235045e1
commit 305a93c0ff

@ -44,7 +44,7 @@ public static partial class PortHelper
var profile = Serializer.Deserialize<ProfileXML>(File.ReadAllText(extractDirectory + "/profile.xml")); var profile = Serializer.Deserialize<ProfileXML>(File.ReadAllText(extractDirectory + "/profile.xml"));
if (profile.UsesYYC) if (profile.UsesYYC)
throw new NotSupportedException("Launcher Modis YYC, cannot port!"); throw new NotSupportedException("Launcher Mod is YYC, cannot port!");
string currentOS = profile.OperatingSystem; string currentOS = profile.OperatingSystem;
bool isAndroidIncluded = profile.SupportsAndroid; bool isAndroidIncluded = profile.SupportsAndroid;
@ -54,6 +54,11 @@ public static partial class PortHelper
return; return;
} }
// TODO: Not sure if this is ever gonna be possible, since it requires one to shift back the patch.
// We'd need a 1.1 file to apply the patch to, run that with umtlib to shift it back, and then apply a new patch.
if (profile.OperatingSystem == "Mac")
throw new NotSupportedException("Porting Mac mods is currently not supported!");
switch (targetOS) switch (targetOS)
{ {
case "Windows": case "Windows":
@ -117,9 +122,9 @@ public static partial class PortHelper
case "Mac": case "Mac":
{ {
//TODO: write this Somewhat difficult, since it's not just a data swap, we need to run UMT on it as well to transfer the BC version n stuff // TODO: Not sure if this is ever gonna be possible, since it requires one to shift up the patch.
// We'd need a 1.1 file to apply the patch to, run that with umtlib to shift it up, and then apply a new patch.
break; throw new NotSupportedException("Porting Mac mods is currently not supported!");
} }
} }

Loading…
Cancel
Save