mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-02-20 04:31:55 -05:00

Co-authored-by: kenix3 <kenixwhisperwind@gmail.com> Co-authored-by: David Chavez <david@dcvz.io> Co-authored-by: KiritoDv <kiritodev01@gmail.com> Co-authored-by: Christopher Leggett <chris@leggett.dev>
43 lines
767 B
C
43 lines
767 B
C
#ifndef _GAMECONSOLE_H_
|
|
#define _GAMECONSOLE_H_
|
|
|
|
#include <libultraship/libultra.h>
|
|
#include <z64.h>
|
|
#include <libultraship/bridge.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 PlayState* gPlayState;
|
|
|
|
void GameConsole_Init();
|
|
|
|
s32 GameConsole_Split(char* str, char** argv);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|