bug fix
This commit is contained in:
@@ -14,7 +14,7 @@ public class Config
|
||||
public string MainPathTip = "Path to game folder, eg. D:/Backup/Cygames/umamusume";
|
||||
public string MainPath = "";
|
||||
|
||||
public string WorkModeTip = "Affects how application work, options: 0 - work with game client, 1 - work without game client, Database needs to be updated manually";
|
||||
public string WorkModeTip = "Affects how application work, options: 0 - work with game client, 1 - work without game client(slow), Database needs to be updated manually";
|
||||
public WorkMode WorkMode = WorkMode.Default;
|
||||
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ public class ManifestDB
|
||||
callback?.Invoke("Checking Resource Version", UIMessageType.Default);
|
||||
yield return UpdateMetaDB();
|
||||
yield return UpdateMasterDB();
|
||||
callback?.Invoke(isError ? "Update aborted." : $"Done. Please restart the application.", isError ? UIMessageType.Error : UIMessageType.Success);
|
||||
callback?.Invoke(isError ? "Update aborted." : $"Done. Please restart the application.\n", isError ? UIMessageType.Error : UIMessageType.Success);
|
||||
}
|
||||
|
||||
//umamusume uses the manifest file to generate meta database.
|
||||
|
||||
@@ -31,7 +31,6 @@ public class UmaViewerDownload : MonoBehaviour
|
||||
|
||||
public static void DownloadAssetSync(UmaDatabaseEntry entry,string path, Action<string , UIMessageType> callback = null)
|
||||
{
|
||||
callback?.Invoke($"Downloading AssetBundle: {Path.GetFileName(entry.Name)}", UIMessageType.Default);
|
||||
string baseurl = (string.IsNullOrEmpty(Path.GetExtension(entry.Name)) ? GetAssetRequestUrl(entry.Url) : GetGenericRequestUrl(entry.Url));
|
||||
|
||||
using UnityWebRequest www = UnityWebRequest.Get(baseurl);
|
||||
|
||||
@@ -45,6 +45,11 @@ public class UmaViewerMain : MonoBehaviour
|
||||
Dictionary<int, string> enNames = new Dictionary<int, string>();
|
||||
Dictionary<int, string> mobNames = new Dictionary<int, string>();
|
||||
|
||||
if(Config.Instance.WorkMode == WorkMode.Standalone)
|
||||
{
|
||||
UI.ShowMessage("Initializing...",UIMessageType.Default);
|
||||
}
|
||||
|
||||
//Main chara names (En only)
|
||||
if (Config.Instance.Language == Language.En)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user