Talk:Lua for Wii

From WiiBrew
Jump to navigation Jump to search

Great stuff ! I don't think that initialize the fat for enable lua to access file is a bug. —Preceding unsigned comment added by TheDrev (talkcontribs) 06:45, 2 September 2009 (UTC)

Does anyone hav lua player prebuilt cus devkitPRO wont build it 4 me. :(

EDIT:It's actually devkitPro and devkitPPC srry Comment added by Lazboy1000 —Preceding undated comment added 03:45, 24 November 2009 (UTC).

RenPSP

Would it be possible to use this to get a working version of RenPSP on the Wii? --D1Hazel 21:44, 31 December 2010 (CET)

Note

There is a macro redefined error when GRRLIB and LUA are included in the same source file ( the G() macro is defined and used alot in both libraries ). A work around is keep the Lua code separate from the grrlib code by keeping all LUA references in separate lua_api.c file and then including a lua_api.h header file. Owen 20:53, 16 February 2011 (CET)

Don't #include the Lua header file which defines G(), lstate.h.--Michael 04:46, 17 February 2011 (CET)
I haven't tried that route but I think lstate has in the "struct lua_State" which is needed to create a Lua callback function Owen 16:05, 17 February 2011 (CET)
lua_State is typedef'd in lua.h and is the one you should be using.--Michael 23:56, 17 February 2011 (CET)
it seems to work without the lstate include now, I have no idea where I got those includes from, must be one of the examples, not sure Owen 02:37, 18 February 2011 (CET)