mirror of
https://github.com/kichikuou/xsystem35-sdl2.git
synced 2026-09-27 09:23:11 +03:00
48 lines
964 B
C
48 lines
964 B
C
#include "config.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
#include "portab.h"
|
|
#include "system.h"
|
|
#include "xsystem35.h"
|
|
#include "modules.h"
|
|
#include "nact.h"
|
|
|
|
|
|
static void Init() {
|
|
int p1 = getCaliValue();
|
|
int p2 = getCaliValue();
|
|
int p3 = getCaliValue();
|
|
int *var = getCaliVariable();
|
|
|
|
*var = 1;
|
|
|
|
TRACE_UNIMPLEMENTED("oDEMO.Init %d,%d,%d,%p:", p1, p2, p3, var);
|
|
}
|
|
|
|
static void SetKeyCancelFlag() {
|
|
int cancelflag = getCaliValue();
|
|
|
|
TRACE_UNIMPLEMENTED("oDEMO.SetKeyCancelFlag %d:", cancelflag);
|
|
}
|
|
|
|
static void SetLoopFlag() {
|
|
/* Loop Flag */
|
|
int loopflag = getCaliValue(); /* 0 なら無限繰り返し */
|
|
|
|
TRACE_UNIMPLEMENTED("oDEMO.SetLoopFlag %d:", loopflag);
|
|
}
|
|
|
|
static void Run() {
|
|
TRACE_UNIMPLEMENTED("oDEMO.Run:");
|
|
}
|
|
|
|
static const ModuleFunc functions[] = {
|
|
{"Init", Init},
|
|
{"Run", Run},
|
|
{"SetKeyCancelFlag", SetKeyCancelFlag},
|
|
{"SetLoopFlag", SetLoopFlag},
|
|
};
|
|
|
|
const Module module_oDEMO = {"oDEMO", functions, sizeof(functions) / sizeof(ModuleFunc)};
|