mirror of
https://github.com/ctruLua/ctruLua.git
synced 2025-10-27 16:39:29 +00:00
Cleaned initialisation process
This commit is contained in:
parent
8da0e47ae3
commit
0af33d0b3a
6 changed files with 70 additions and 58 deletions
|
|
@ -71,7 +71,7 @@ int luaopen_fs_lib(lua_State *L) {
|
|||
return 1;
|
||||
}
|
||||
|
||||
int load_fs_lib(lua_State *L) {
|
||||
void load_fs_lib(lua_State *L) {
|
||||
fsInit();
|
||||
|
||||
fsuHandle = fsGetSessionHandle();
|
||||
|
|
@ -81,8 +81,6 @@ int load_fs_lib(lua_State *L) {
|
|||
FSUSER_OpenArchive(fsuHandle, &sdmcArchive);
|
||||
|
||||
luaL_requiref(L, "ctr.fs", luaopen_fs_lib, false);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void unload_fs_lib(lua_State *L) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue