Skip to content

Commit b01625d

Browse files
committed
Merge pull request #1 from pangweiwei/master
merge from slua
2 parents 2e6f9d1 + 592b1e2 commit b01625d

File tree

5 files changed

+30
-3
lines changed

5 files changed

+30
-3
lines changed
Binary file not shown.
0 Bytes
Binary file not shown.

Assets/Slua/Editor/SLuaSetting.cs

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,26 @@
1-
using UnityEngine;
1+
// The MIT License (MIT)
2+
3+
// Copyright 2015 Siney/Pangweiwei [email protected]
4+
//
5+
// Permission is hereby granted, free of charge, to any person obtaining a copy
6+
// of this software and associated documentation files (the "Software"), to deal
7+
// in the Software without restriction, including without limitation the rights
8+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
// copies of the Software, and to permit persons to whom the Software is
10+
// furnished to do so, subject to the following conditions:
11+
//
12+
// The above copyright notice and this permission notice shall be included in
13+
// all copies or substantial portions of the Software.
14+
//
15+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
// THE SOFTWARE.
22+
23+
using UnityEngine;
224
using System.Collections;
325
using UnityEditor;
426

@@ -20,7 +42,11 @@ public static SLuaSetting Instance{
2042
get{
2143
if(_instance == null){
2244
string path = "Assets/Slua/setting.asset";
45+
#if UNITY_5
2346
_instance = AssetDatabase.LoadAssetAtPath<SLuaSetting>(path);
47+
#else
48+
_instance = (SLuaSetting)AssetDatabase.LoadAssetAtPath(path,typeof(SLuaSetting));
49+
#endif
2450
if(_instance == null){
2551
_instance = SLuaSetting.CreateInstance<SLuaSetting>();
2652
AssetDatabase.CreateAsset(_instance,path);

Assets/Slua/Script/LuaVarObject.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ object checkVar(IntPtr l, int p, Type t)
8080
break;
8181
case "Int32":
8282
return (int)LuaDLL.lua_tointeger(l, p);
83-
case "Uint32":
83+
case "UInt32":
8484
return (uint)LuaDLL.lua_tointeger(l, p);
8585
case "Single":
8686
return (float)LuaDLL.lua_tonumber(l, p);

build/make_android.sh

100644100755
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ NDK=/Users/sineysan/android-ndk-r10
99
NDKABI=8
1010
NDKVER=$NDK/toolchains/arm-linux-androideabi-4.8
1111
NDKP=$NDKVER/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-
12-
NDKF="--sysroot $NDK/platforms/android-$NDKABI/arch-arm"
12+
NDKF="--sysroot $NDK/platforms/android-$NDKABI/arch-arm"
1313

1414
# # Android/ARM, armeabi (ARMv5TE soft-float), Android 2.2+ (Froyo)
1515
# DESTDIR=$DIR/android/armeabi
@@ -25,6 +25,7 @@ NDKF="--sysroot $NDK/platforms/android-$NDKABI/arch-arm"
2525
# Android/ARM, armeabi-v7a (ARMv7 VFP), Android 4.0+ (ICS)
2626
NDKARCH="-march=armv7-a -mfloat-abi=softfp -Wl,--fix-cortex-a8"
2727
NDKABI=14
28+
NDKF="--sysroot $NDK/platforms/android-$NDKABI/arch-arm"
2829
DESTDIR=$DIR/android/armeabi-v7a
2930
mkdir -p $DESTDIR
3031
rm -rf "$DESTDIR"/*.a

0 commit comments

Comments
 (0)