开放资源解密外部调用

This commit is contained in:
陈思海 2025-11-18 10:12:32 +08:00
parent f43eb7344e
commit d729d435d2
3 changed files with 62 additions and 53 deletions

View File

@ -29,6 +29,7 @@ namespace AlicizaX.Framework.Runtime.ABase
if (_resourceComponent != null) if (_resourceComponent != null)
{ {
_resourceComponent.SetPlayMode(_dynamicBindInfo.ResMode); _resourceComponent.SetPlayMode(_dynamicBindInfo.ResMode);
_resourceComponent.SetDecryptionServices(_dynamicBindInfo.DecryptionServices);
} }
if (_debuggerComponent != null) if (_debuggerComponent != null)
@ -48,5 +49,6 @@ namespace AlicizaX.Framework.Runtime.ABase
public DebuggerActiveWindowType DebuggerActiveWindowType; public DebuggerActiveWindowType DebuggerActiveWindowType;
public int ResMode; public int ResMode;
public string Language; public string Language;
public string DecryptionServices;
} }
} }

View File

@ -180,6 +180,11 @@ namespace AlicizaX.Resource.Runtime
_playMode = (EPlayMode)playMode; _playMode = (EPlayMode)playMode;
} }
public void SetDecryptionServices(string decryption)
{
decryptionServices = decryption;
}
private void Awake() private void Awake()
{ {
_resourceModule = ModuleSystem.RegisterModule<IResourceModule, ResourceModule>(); _resourceModule = ModuleSystem.RegisterModule<IResourceModule, ResourceModule>();

View File

@ -161,6 +161,7 @@ namespace AlicizaX.Resource.Runtime
public BundleStream(string path, FileMode mode, FileAccess access, FileShare share) : base(path, mode, access, share) public BundleStream(string path, FileMode mode, FileAccess access, FileShare share) : base(path, mode, access, share)
{ {
} }
public BundleStream(string path, FileMode mode) : base(path, mode) public BundleStream(string path, FileMode mode) : base(path, mode)
{ {
} }
@ -172,6 +173,7 @@ namespace AlicizaX.Resource.Runtime
{ {
array[i] ^= KEY; array[i] ^= KEY;
} }
return index; return index;
} }
} }