【ios】修改宏定义,修复resconfig加载失败
parent
683a13bf2a
commit
b2f88a0d29
|
|
@ -173,7 +173,12 @@ namespace ResMgr
|
|||
/// </summary>
|
||||
void InitResPathConfig()
|
||||
{
|
||||
|
||||
#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)));
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Reference in New Issue