平台兼容性处理
This commit is contained in:
parent
33cf6c66db
commit
aa39e071e5
@ -26,7 +26,7 @@ namespace QFramework
|
||||
{
|
||||
var resSearchRule = SafeObjectPool<ResSearchKeys>.Instance.Allocate();
|
||||
|
||||
if (assetName.Contains("NetImage:") ||
|
||||
if (assetName.Contains("netimage:") ||
|
||||
assetName.Contains("localimage:") ||
|
||||
assetName.Contains("localaudio:") ||
|
||||
assetName.Contains("localtext:") ||
|
||||
|
||||
@ -33,7 +33,7 @@ namespace QFramework
|
||||
{
|
||||
public static string ToNetImageResName(this string selfHttpUrl)
|
||||
{
|
||||
return string.Format("NetImage:{0}", selfHttpUrl);
|
||||
return string.Format("netimage:{0}", selfHttpUrl);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ public class Global : Singleton<Global>
|
||||
public XMLTool.AppData appData;
|
||||
public Module curModule;
|
||||
public Body3D.Body cur3DPart;
|
||||
#if UNITY_WEBGL
|
||||
#if UNITY_WEBGL && !UNITY_EDITOR
|
||||
public static string dataPath = Application.dataPath + "/Data";
|
||||
#else
|
||||
public static string dataPath = Application.dataPath + "/../Data";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user