mirror of
https://github.com/ctruLua/ctruLua.git
synced 2025-10-28 00:39:30 +00:00
Added CIA, bugfixes, portlibs update
This commit is contained in:
parent
2725dce383
commit
b19ec95cc7
14 changed files with 757 additions and 158 deletions
|
|
@ -1,4 +1,6 @@
|
|||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <3ds.h>
|
||||
|
||||
|
|
@ -42,6 +44,13 @@ int main(int argc, char** argv) {
|
|||
char* mainFile = "main.lua";
|
||||
#endif
|
||||
|
||||
// Change root dir
|
||||
#ifdef ROOT
|
||||
if(chdir(ROOT)) {
|
||||
error(strerror(errno));
|
||||
}
|
||||
#endif
|
||||
|
||||
// Init Lua
|
||||
lua_State *L = luaL_newstate();
|
||||
if (L == NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue