From 25d50dc3c348595ba88977bb239e48c78aeb4f70 Mon Sep 17 00:00:00 2001 From: Nifyr Date: Wed, 5 Jun 2024 23:01:55 +0200 Subject: [PATCH] =?UTF-8?q?Enable=20Pok=C3=A9mon=20inserter=20tool=20to=20?= =?UTF-8?q?continue=20despite=20missing=20assetbundles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PokemonInserter.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PokemonInserter.cs b/PokemonInserter.cs index 2de5988..ebea701 100644 --- a/PokemonInserter.cs +++ b/PokemonInserter.cs @@ -487,7 +487,7 @@ private void FillTexture2D(AssetTypeValueField atvf) atvf["m_CompleteImageSize"].GetValue().Set(7744); atvf["m_TextureFormat"].GetValue().Set(50); atvf["m_MipCount"].GetValue().Set(1); - atvf["m_IsReadable"].GetValue().Set(true); + atvf["m_IsReadable"].GetValue().Set(false); atvf["m_ImageCount"].GetValue().Set(1); atvf["m_TextureDimension"].GetValue().Set(2); atvf["m_TextureSettings"]["m_FilterMode"].GetValue().Set(1); @@ -1164,6 +1164,8 @@ private CloneMode DuplicateAssetBundle(string srcPath, string dstPath, CloneMode bfi = fileManager.GetPokemonBundleFileInstance(srcPath.Replace('/', '\\')); break; } + if (bfi == null) + return c; bfi.name = ReplacePM(bfi.name, refPM);