-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#include "take/t_func.h" | ||
|
||
// TODO: uncomment these | ||
FUNCTBL MainFuncTbl[] = { | ||
// { tkMenuFuncTbl, -1 }, | ||
// { tkViewerFuncTbl, -1 }, | ||
// { D_00395E10, -1 }, | ||
// { tkTitleFuncTbl, -1 } | ||
}; | ||
|
||
s32 (*tkFuncTbl[])() = { | ||
tkInit, | ||
tkMain | ||
}; | ||
|
||
s32 tkInit() { | ||
SysGbl.nsmode++; | ||
// No return | ||
} | ||
|
||
s32 tkMain() { | ||
s32 (**subfunctbl)() = MainFuncTbl[SysGbl.fmode].func; | ||
if (subfunctbl != NULL) { | ||
subfunctbl[SysGbl.smode](); | ||
} else { | ||
SysGbl.fmode = 0; | ||
SysGbl.smode = 0; | ||
} | ||
// No return | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#ifndef TK_FUNC_H | ||
#define TK_FUNC_H | ||
|
||
#include "take.h" | ||
|
||
extern s32 (*tkFuncTbl[])(); | ||
|
||
extern s32 tkInit(); | ||
extern s32 tkMain(); | ||
|
||
#endif |