1
0
Fork 0
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:
Firew0lf 2017-05-23 21:49:03 +02:00
parent 2725dce383
commit b19ec95cc7
14 changed files with 757 additions and 158 deletions

View file

@ -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) {