Fixed launch without data files
changed load order to fix error log on missing data files
This commit is contained in:
@@ -13,10 +13,11 @@ public class ManifestDB
|
|||||||
{
|
{
|
||||||
public SqliteConnection MetaDB;
|
public SqliteConnection MetaDB;
|
||||||
public static string DBPath;
|
public static string DBPath;
|
||||||
public const string DefaultDBPath = "umamusume/meta";
|
|
||||||
public Action<string> callback;
|
public Action<string> callback;
|
||||||
public ManifestDB(string DBPath = DefaultDBPath)
|
|
||||||
|
public ManifestDB()
|
||||||
{
|
{
|
||||||
|
string DBPath = $"{Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + "Low"}\\Cygames\\umamusume\\meta";
|
||||||
ManifestDB.DBPath = DBPath;
|
ManifestDB.DBPath = DBPath;
|
||||||
if (File.Exists(DBPath))
|
if (File.Exists(DBPath))
|
||||||
{
|
{
|
||||||
@@ -25,6 +26,7 @@ public class ManifestDB
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Directory.CreateDirectory(Path.GetDirectoryName(DBPath));
|
||||||
SqliteConnection.CreateFile(DBPath);
|
SqliteConnection.CreateFile(DBPath);
|
||||||
MetaDB = new SqliteConnection($@"Data Source={DBPath}");
|
MetaDB = new SqliteConnection($@"Data Source={DBPath}");
|
||||||
MetaDB.Open();
|
MetaDB.Open();
|
||||||
@@ -51,7 +53,7 @@ public class ManifestDB
|
|||||||
callback?.Invoke("Checking Resource Version");
|
callback?.Invoke("Checking Resource Version");
|
||||||
yield return UpdateMetaDB();
|
yield return UpdateMetaDB();
|
||||||
yield return UpdateMasterDB();
|
yield return UpdateMasterDB();
|
||||||
callback?.Invoke($"Done");
|
callback?.Invoke($"Done. Please restart the application.");
|
||||||
}
|
}
|
||||||
|
|
||||||
//umamusume uses the manifest file to generate meta database.
|
//umamusume uses the manifest file to generate meta database.
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ MonoImporter:
|
|||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
defaultReferences: []
|
defaultReferences: []
|
||||||
executionOrder: 0
|
executionOrder: -3
|
||||||
icon: {instanceID: 0}
|
icon: {instanceID: 0}
|
||||||
userData:
|
userData:
|
||||||
assetBundleName:
|
assetBundleName:
|
||||||
|
|||||||
+12
-12
@@ -5,7 +5,7 @@
|
|||||||
"depth": 1,
|
"depth": 1,
|
||||||
"source": "registry",
|
"source": "registry",
|
||||||
"dependencies": {},
|
"dependencies": {},
|
||||||
"url": "https://packages.unity.cn"
|
"url": "https://packages.unity.com"
|
||||||
},
|
},
|
||||||
"com.unity.assetbundlebrowser": {
|
"com.unity.assetbundlebrowser": {
|
||||||
"version": "https://github.com/Unity-Technologies/AssetBundles-Browser.git",
|
"version": "https://github.com/Unity-Technologies/AssetBundles-Browser.git",
|
||||||
@@ -21,14 +21,14 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"com.unity.services.core": "1.0.1"
|
"com.unity.services.core": "1.0.1"
|
||||||
},
|
},
|
||||||
"url": "https://packages.unity.cn"
|
"url": "https://packages.unity.com"
|
||||||
},
|
},
|
||||||
"com.unity.ext.nunit": {
|
"com.unity.ext.nunit": {
|
||||||
"version": "1.0.6",
|
"version": "1.0.6",
|
||||||
"depth": 1,
|
"depth": 1,
|
||||||
"source": "registry",
|
"source": "registry",
|
||||||
"dependencies": {},
|
"dependencies": {},
|
||||||
"url": "https://packages.unity.cn"
|
"url": "https://packages.unity.com"
|
||||||
},
|
},
|
||||||
"com.unity.formats.fbx": {
|
"com.unity.formats.fbx": {
|
||||||
"version": "4.1.2",
|
"version": "4.1.2",
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
"com.unity.timeline": "1.5.2",
|
"com.unity.timeline": "1.5.2",
|
||||||
"com.autodesk.fbx": "4.1.1"
|
"com.autodesk.fbx": "4.1.1"
|
||||||
},
|
},
|
||||||
"url": "https://packages.unity.cn"
|
"url": "https://packages.unity.com"
|
||||||
},
|
},
|
||||||
"com.unity.ide.rider": {
|
"com.unity.ide.rider": {
|
||||||
"version": "2.0.7",
|
"version": "2.0.7",
|
||||||
@@ -47,7 +47,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"com.unity.test-framework": "1.1.1"
|
"com.unity.test-framework": "1.1.1"
|
||||||
},
|
},
|
||||||
"url": "https://packages.unity.cn"
|
"url": "https://packages.unity.com"
|
||||||
},
|
},
|
||||||
"com.unity.ide.visualstudio": {
|
"com.unity.ide.visualstudio": {
|
||||||
"version": "2.0.16",
|
"version": "2.0.16",
|
||||||
@@ -56,14 +56,14 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"com.unity.test-framework": "1.1.9"
|
"com.unity.test-framework": "1.1.9"
|
||||||
},
|
},
|
||||||
"url": "https://packages.unity.cn"
|
"url": "https://packages.unity.com"
|
||||||
},
|
},
|
||||||
"com.unity.ide.vscode": {
|
"com.unity.ide.vscode": {
|
||||||
"version": "1.2.5",
|
"version": "1.2.5",
|
||||||
"depth": 0,
|
"depth": 0,
|
||||||
"source": "registry",
|
"source": "registry",
|
||||||
"dependencies": {},
|
"dependencies": {},
|
||||||
"url": "https://packages.unity.cn"
|
"url": "https://packages.unity.com"
|
||||||
},
|
},
|
||||||
"com.unity.postprocessing": {
|
"com.unity.postprocessing": {
|
||||||
"version": "3.2.2",
|
"version": "3.2.2",
|
||||||
@@ -72,7 +72,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"com.unity.modules.physics": "1.0.0"
|
"com.unity.modules.physics": "1.0.0"
|
||||||
},
|
},
|
||||||
"url": "https://packages.unity.cn"
|
"url": "https://packages.unity.com"
|
||||||
},
|
},
|
||||||
"com.unity.services.core": {
|
"com.unity.services.core": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
@@ -81,7 +81,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"com.unity.modules.unitywebrequest": "1.0.0"
|
"com.unity.modules.unitywebrequest": "1.0.0"
|
||||||
},
|
},
|
||||||
"url": "https://packages.unity.cn"
|
"url": "https://packages.unity.com"
|
||||||
},
|
},
|
||||||
"com.unity.test-framework": {
|
"com.unity.test-framework": {
|
||||||
"version": "1.1.31",
|
"version": "1.1.31",
|
||||||
@@ -92,7 +92,7 @@
|
|||||||
"com.unity.modules.imgui": "1.0.0",
|
"com.unity.modules.imgui": "1.0.0",
|
||||||
"com.unity.modules.jsonserialize": "1.0.0"
|
"com.unity.modules.jsonserialize": "1.0.0"
|
||||||
},
|
},
|
||||||
"url": "https://packages.unity.cn"
|
"url": "https://packages.unity.com"
|
||||||
},
|
},
|
||||||
"com.unity.textmeshpro": {
|
"com.unity.textmeshpro": {
|
||||||
"version": "3.0.6",
|
"version": "3.0.6",
|
||||||
@@ -101,7 +101,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"com.unity.ugui": "1.0.0"
|
"com.unity.ugui": "1.0.0"
|
||||||
},
|
},
|
||||||
"url": "https://packages.unity.cn"
|
"url": "https://packages.unity.com"
|
||||||
},
|
},
|
||||||
"com.unity.timeline": {
|
"com.unity.timeline": {
|
||||||
"version": "1.5.2",
|
"version": "1.5.2",
|
||||||
@@ -113,7 +113,7 @@
|
|||||||
"com.unity.modules.audio": "1.0.0",
|
"com.unity.modules.audio": "1.0.0",
|
||||||
"com.unity.modules.particlesystem": "1.0.0"
|
"com.unity.modules.particlesystem": "1.0.0"
|
||||||
},
|
},
|
||||||
"url": "https://packages.unity.cn"
|
"url": "https://packages.unity.com"
|
||||||
},
|
},
|
||||||
"com.unity.ugui": {
|
"com.unity.ugui": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ MonoBehaviour:
|
|||||||
m_Registries:
|
m_Registries:
|
||||||
- m_Id: main
|
- m_Id: main
|
||||||
m_Name:
|
m_Name:
|
||||||
m_Url: https://packages.unity.cn
|
m_Url: https://packages.unity.com
|
||||||
m_Scopes: []
|
m_Scopes: []
|
||||||
m_IsDefault: 1
|
m_IsDefault: 1
|
||||||
m_Capabilities: 7
|
m_Capabilities: 7
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
m_EditorVersion: 2020.3.24f1c2
|
m_EditorVersion: 2020.3.28f1
|
||||||
m_EditorVersionWithRevision: 2020.3.24f1c2 (f3616f7ef48a)
|
m_EditorVersionWithRevision: 2020.3.28f1 (f5400f52e03f)
|
||||||
|
|||||||
Reference in New Issue
Block a user