mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-12-19 23:02:41 -05:00
0ce0ab1260
* Update LUS imported paths * Introduce GameMenuBar * Fix imports after LUS import paths change * Move Randomizer * Replace needs_save * Migrate Developer Tools * Migrate Cheats * Migrate Enhancements * Separate UIWidgets * Add missing Hooks.cpp file * Migrate Settings * Remove UI methods from LUS * Cleanup imports and exposed properties * Cleanup more methods * Fix project generation * Fix CI compilation * Remove resolved TODO
43 lines
755 B
C
43 lines
755 B
C
#ifndef _GAMECONSOLE_H_
|
|
#define _GAMECONSOLE_H_
|
|
|
|
#include <ultra64.h>
|
|
#include <z64.h>
|
|
#include <libultraship/Cvar.h>
|
|
|
|
#define MAX_CVARS 2048
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
typedef enum
|
|
{
|
|
CONSOLECOMMAND_RESULT_SUCCESS,
|
|
CONSOLECOMMAND_RESULT_INVALIDARGS,
|
|
CONSOLECOMMAND_RESULT_INVALIDCOMMAND,
|
|
CONSOLECOMMAND_RESULT_FAILURE
|
|
} ConsoleCommandResult;
|
|
|
|
typedef ConsoleCommandResult(*ConsoleCommandFunc)(char** argv, s32 argc); // Returns the number of arguments it read
|
|
|
|
typedef struct ConsoleCommand
|
|
{
|
|
char* name;
|
|
ConsoleCommandFunc func;
|
|
char* description;
|
|
} ConsoleCommand;
|
|
|
|
extern GlobalContext* gGlobalCtx;
|
|
|
|
void GameConsole_Init();
|
|
|
|
s32 GameConsole_Split(char* str, char** argv);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|