From 8d104b824427bd4c11b0bfb271f04dc253e18e6a Mon Sep 17 00:00:00 2001 From: dualface Date: Tue, 25 Sep 2012 16:43:36 +0800 Subject: [PATCH] [Lua] add CCApplication:getTargetPaltform() --- .../cocos2dx_support/LuaCocos2d.cpp.REMOVED.git-id | 2 +- tools/tolua++/CCApplication.pkg | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/scripting/lua/cocos2dx_support/LuaCocos2d.cpp.REMOVED.git-id b/scripting/lua/cocos2dx_support/LuaCocos2d.cpp.REMOVED.git-id index 8c3e2590b3..8079a39171 100644 --- a/scripting/lua/cocos2dx_support/LuaCocos2d.cpp.REMOVED.git-id +++ b/scripting/lua/cocos2dx_support/LuaCocos2d.cpp.REMOVED.git-id @@ -1 +1 @@ -bc9430117558083bc356dc1490ae82621c4db0f3 \ No newline at end of file +57601a5ee61c442f04b4d1bbfd2697330dfc63cb \ No newline at end of file diff --git a/tools/tolua++/CCApplication.pkg b/tools/tolua++/CCApplication.pkg index 35f5f5606e..669cea1698 100644 --- a/tools/tolua++/CCApplication.pkg +++ b/tools/tolua++/CCApplication.pkg @@ -10,8 +10,20 @@ typedef enum LanguageType kLanguageRussian } ccLanguageType; +enum TargetPlatform +{ + kTargetWindows, + kTargetLinux, + kTargetMacOS, + kTargetAndroid, + kTargetIphone, + kTargetIpad, + kTargetBlackBerry, +}; + class CCApplication { static CCApplication* sharedApplication(); ccLanguageType getCurrentLanguage(); + TargetPlatform getTargetPlatform(); };