taisei/src/cli.h
Andrei Alexeyev 3d4226ce04
replay/cli: --rereplay option
"Re-records" a replay into a file. TAISEI_REPLAY_DESYNC_CHECK_FREQUENCY
is defaulted to 1 in this mode, but may be overriden as normal. Requires
-r or -R; in case of -R will not stop even if a desync is encountered.
2021-06-16 01:43:10 +03:00

44 lines
855 B
C

/*
* This software is licensed under the terms of the MIT License.
* See COPYING for further information.
* ---
* Copyright (c) 2011-2019, Lukas Weber <laochailan@web.de>.
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_cli_h
#define IGUARD_cli_h
#include "taisei.h"
#include "plrmodes.h"
typedef enum {
CLI_RunNormally = 0,
CLI_PlayReplay,
CLI_VerifyReplay,
CLI_SelectStage,
CLI_DumpStages,
CLI_DumpVFSTree,
CLI_Quit,
CLI_Credits,
CLI_Cutscene,
} CLIActionType;
typedef struct CLIAction CLIAction;
struct CLIAction {
CLIActionType type;
bool force_intro;
int stageid;
int diff;
int frameskip;
CutsceneID cutscene;
char *filename;
char *out_replay;
PlayerMode *plrmode;
};
int cli_args(int argc, char **argv, CLIAction *a);
void free_cli_action(CLIAction *a);
#endif // IGUARD_cli_h