开放资源解密外部调用
This commit is contained in:
parent
f43eb7344e
commit
d729d435d2
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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>();
|
||||||
|
|||||||
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user