Closed yangc999 closed 1 year ago
please provide more detail information
please provide more detail information
in lua "Constants.lua" definition like this: cc.PLATFORM_WINDOWS = 0 cc.PLATFORM_LINUX = 1 cc.PLATFORM_MACOS = 2 cc.PLATFORM_ANDROID = 3 cc.PLATFORM_IOS = 4 but in cpp Enum like this: enum class Platform { Windows, /< Windows */ UWP, UWP_Phone, Linux, /*< Linux / macOS, /< macOS */ Android, /*< Android / iOS, /*< Apple iOS / };
So the only thing missing is the new UWP entries in LUA, which is causing the value of the constants to be incorrect when compared to the C++ enum.
So the only thing missing is the new UWP entries in LUA, which is causing the value of the constants to be incorrect when compared to the C++ enum.
not exactly.I found lua project can not run in mac platform due to initialize error in device.lua miss matched the platform definition.It may remains others.
not exactly.I found lua project can not run in mac platform due to initialize error in device.lua miss matched the platform definition.It may remains others.
Have you tried correcting those constants to see if it works?
Have you tried correcting those constants to see if it works?
I can only confirm mac platform which runs fine after correcting.