【ios】修改宏定义,修复resconfig加载失败

dev_chengFeng
JLIOSM1 2021-07-13 18:20:03 +08:00
parent 683a13bf2a
commit b2f88a0d29
3 changed files with 9 additions and 4 deletions

View File

@ -173,7 +173,12 @@ namespace ResMgr
/// </summary> /// </summary>
void InitResPathConfig() void InitResPathConfig()
{ {
#if UNITY_IOS
string path = string.Format("LZMA_ResConfigs").ToLower() + ResConfig.ABExtName;
#else
string path = string.Format("LZMA/ResConfigs").ToLower() + ResConfig.ABExtName; string path = string.Format("LZMA/ResConfigs").ToLower() + ResConfig.ABExtName;
#endif
string fullPath = PathHelper.GetFullPath (path); string fullPath = PathHelper.GetFullPath (path);
AssetBundle ab = AssetBundle.LoadFromFile(fullPath, 0, GameLogic.AppConst.EncyptBytesLength); AssetBundle ab = AssetBundle.LoadFromFile(fullPath, 0, GameLogic.AppConst.EncyptBytesLength);
//AssetBundle ab = AssetBundle.LoadFromMemory(XXTEA.Decrypt(File.ReadAllBytes(fullPath))); //AssetBundle ab = AssetBundle.LoadFromMemory(XXTEA.Decrypt(File.ReadAllBytes(fullPath)));

View File

@ -52,7 +52,7 @@ public class GameStart : MonoBehaviour
bool isShowSplash = true; bool isShowSplash = true;
if (isShowSplash) if (isShowSplash)
{ {
#if PLATFORM_IOS #if UNITY_IOS
string splashFilePath = "lz4_splashpanel.unity3d"; string splashFilePath = "lz4_splashpanel.unity3d";
#else #else
string splashFilePath = "lz4/splashpanel.unity3d"; string splashFilePath = "lz4/splashpanel.unity3d";

View File

@ -114,7 +114,7 @@ namespace GameLogic {
void CreateUpdatePanel() { void CreateUpdatePanel() {
if (AppConst.bundleMode) if (AppConst.bundleMode)
{ {
#if PLATFORM_IOS #if UNITY_IOS
string updateFilePath = "lz4_updatepanel.unity3d"; string updateFilePath = "lz4_updatepanel.unity3d";
#else #else
string updateFilePath = "lz4/updatepanel.unity3d"; string updateFilePath = "lz4/updatepanel.unity3d";