Skip to content

Commit

Permalink
Enable Pokémon inserter tool to continue despite missing assetbundles
Browse files Browse the repository at this point in the history
  • Loading branch information
Nifyr committed Jun 5, 2024
1 parent 6bd7552 commit 25d50dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion PokemonInserter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 25d50dc

Please sign in to comment.