mirror of
https://github.com/decaf-emu/decaf-emu.git
synced 2025-04-02 10:42:13 -04:00
22 lines
678 B
C
22 lines
678 B
C
#ifndef CONSOLE_H
|
|
#define CONSOLE_H
|
|
#include "sysfuncs.h"
|
|
#include "../../../libwiiu/src/coreinit.h"
|
|
#include "../../../libwiiu/src/types.h"
|
|
|
|
#define MAX_CONSOLE_LINE_LENGTH 64
|
|
#define MAX_CONSOLE_LINES 16
|
|
#define LOG(c, ...) __os_snprintf(nextConsoleLine(c), MAX_CONSOLE_LINE_LENGTH, __VA_ARGS__); renderConsole(&consoleData);
|
|
|
|
struct ConsoleData
|
|
{
|
|
unsigned activeLine;
|
|
char *line[MAX_CONSOLE_LINES];
|
|
};
|
|
|
|
void allocConsole(struct SystemFunctions *funcs, struct ConsoleData *console);
|
|
void freeConsole(struct SystemFunctions *funcs, struct ConsoleData *console);
|
|
void renderConsole(struct ConsoleData *console);
|
|
char *nextConsoleLine(struct ConsoleData *console);
|
|
|
|
#endif
|