Skip to content

Commit bde2ce5

Browse files
committed
GlobalShaderCache and TonyHawkProSkater support
1 parent d5e7aba commit bde2ce5

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

FModel/ViewModels/CUE4ParseViewModel.cs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
using CUE4Parse.GameTypes.NetEase.MAR.Encryption.Aes;
2525
using CUE4Parse.GameTypes.PAXDEI.Encryption.Aes;
2626
using CUE4Parse.GameTypes.Rennsport.Encryption.Aes;
27-
using CUE4Parse.GameTypes.UDWN.Encryption.Aes;
27+
using CUE4Parse.GameTypes.UDWN.Encryption.Aes;
28+
using CUE4Parse.GameTypes.THPS.Encryption.Aes;
2829
using CUE4Parse.MappingsProvider;
2930
using CUE4Parse.UE4.AssetRegistry;
3031
using CUE4Parse.UE4.Assets.Exports;
@@ -200,7 +201,8 @@ public CUE4ParseViewModel()
200201
EGame.GAME_DeltaForceHawkOps => DeltaForceAes.DeltaForceDecrypt,
201202
EGame.GAME_MonsterJamShowdown => MonsterJamShowdownAes.MonsterJamShowdownDecrypt,
202203
EGame.GAME_Rennsport => RennsportAes.RennsportDecrypt,
203-
EGame.GAME_FunkoFusion => FunkoFusionAes.FunkoFusionDecrypt,
204+
EGame.GAME_FunkoFusion => FunkoFusionAes.FunkoFusionDecrypt,
205+
EGame.GAME_TonyHawkProSkater12 => THPS12Aes.THPS12Decrypt,
204206
_ => Provider.CustomEncryption
205207
};
206208

@@ -682,6 +684,16 @@ public void Extract(CancellationToken cancellationToken, string fullPath, bool a
682684
}
683685

684686
break;
687+
}
688+
case "bin" when fileName.Contains("GlobalShaderCache"):
689+
{
690+
if (Provider.TryCreateReader(fullPath, out var archive))
691+
{
692+
var registry = new FGlobalShaderCache(archive);
693+
TabControl.SelectedTab.SetDocumentText(JsonConvert.SerializeObject(registry, Formatting.Indented), saveProperties, updateUi);
694+
}
695+
696+
break;
685697
}
686698
case "bnk":
687699
case "pck":

0 commit comments

Comments
 (0)