// Set up and check availability public FetchContent(string type) { gameType = type; if (type.Equals("D2E")) { finder = new RtLFinder(); } else if (type.Equals("MoM")) { finder = new MoMFinder(); } else { return; } string appVersion = finder.RequiredFFGVersion(); // Open up the assets to get the actual version number string ffgVersion = fetchAppVersion(); // Add version found to log if (ffgVersion.Length != 0) { ValkyrieDebug.Log("FFG " + type + " Version Found: " + ffgVersion + System.Environment.NewLine); } else { ValkyrieDebug.Log("FFG " + type + " not found." + System.Environment.NewLine); } // Check if version is acceptable for import importAvailable = VersionNewerOrEqual(appVersion, ffgVersion); }
public FetchContent(string type) { gameType = type; if (type.Equals("D2E")) { finder = new RtLFinder(); } else if (type.Equals("MoM")) { finder = new MoMFinder(); } else { return; } string appVersion = finder.RequiredFFGVersion(); string ffgVersion = fetchAppVersion(); if (ffgVersion.Length != 0) { Debug.Log("FFG " + type + " Version Found: " + ffgVersion + System.Environment.NewLine); } else { Debug.Log("FFG " + type + " not found." + System.Environment.NewLine); } importAvailable = VersionNewerOrEqual(appVersion, ffgVersion); }