diff --git a/Assets/Scripts/Core/ResMgr/ResourcesMgr/ResLoader/RuntimeResLoader.cs b/Assets/Scripts/Core/ResMgr/ResourcesMgr/ResLoader/RuntimeResLoader.cs index 97f8e327ae..c0793e7377 100644 --- a/Assets/Scripts/Core/ResMgr/ResourcesMgr/ResLoader/RuntimeResLoader.cs +++ b/Assets/Scripts/Core/ResMgr/ResourcesMgr/ResLoader/RuntimeResLoader.cs @@ -173,8 +173,13 @@ namespace ResMgr /// void InitResPathConfig() { - string path = string.Format("LZMA/ResConfigs").ToLower() + ResConfig.ABExtName; - string fullPath = PathHelper.GetFullPath (path); + +#if UNITY_IOS + string path = string.Format("LZMA_ResConfigs").ToLower() + ResConfig.ABExtName; +#else + string path = string.Format("LZMA/ResConfigs").ToLower() + ResConfig.ABExtName; +#endif + string fullPath = PathHelper.GetFullPath (path); AssetBundle ab = AssetBundle.LoadFromFile(fullPath, 0, GameLogic.AppConst.EncyptBytesLength); //AssetBundle ab = AssetBundle.LoadFromMemory(XXTEA.Decrypt(File.ReadAllBytes(fullPath))); ResPathConfig = ab.LoadAsset("ResourcePathConfig"); diff --git a/Assets/Scripts/GameInit/GameStart.cs b/Assets/Scripts/GameInit/GameStart.cs index 47bcbb14a5..c9762a57b8 100644 --- a/Assets/Scripts/GameInit/GameStart.cs +++ b/Assets/Scripts/GameInit/GameStart.cs @@ -52,7 +52,7 @@ public class GameStart : MonoBehaviour bool isShowSplash = true; if (isShowSplash) { -#if PLATFORM_IOS +#if UNITY_IOS string splashFilePath = "lz4_splashpanel.unity3d"; #else string splashFilePath = "lz4/splashpanel.unity3d"; diff --git a/Assets/Scripts/GameInit/UpdateManager.cs b/Assets/Scripts/GameInit/UpdateManager.cs index 66a6843c1f..22020c9e22 100644 --- a/Assets/Scripts/GameInit/UpdateManager.cs +++ b/Assets/Scripts/GameInit/UpdateManager.cs @@ -114,7 +114,7 @@ namespace GameLogic { void CreateUpdatePanel() { if (AppConst.bundleMode) { -#if PLATFORM_IOS +#if UNITY_IOS string updateFilePath = "lz4_updatepanel.unity3d"; #else string updateFilePath = "lz4/updatepanel.unity3d";