taisei/src/cli.h

42 lines
816 B
C
Raw Normal View History

2017-09-12 03:28:15 +02:00
/*
* This software is licensed under the terms of the MIT License.
2017-09-12 03:28:15 +02:00
* See COPYING for further information.
* ---
* Copyright (c) 2011-2019, Lukas Weber <laochailan@web.de>.
2019-07-03 20:00:56 +02:00
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
2017-09-12 03:28:15 +02:00
*/
#pragma once
#include "taisei.h"
2017-04-02 10:16:52 +02:00
#include "plrmodes.h"
2017-04-02 10:16:52 +02:00
typedef enum {
CLI_RunNormally = 0,
CLI_PlayReplay,
CLI_VerifyReplay,
2017-04-02 10:16:52 +02:00
CLI_SelectStage,
CLI_DumpStages,
2017-04-18 21:48:18 +02:00
CLI_DumpVFSTree,
2017-04-02 10:16:52 +02:00
CLI_Quit,
CLI_QuitLate,
2017-10-23 12:48:30 +02:00
CLI_Credits,
CLI_Cutscene,
2017-04-02 10:16:52 +02:00
} CLIActionType;
typedef struct CLIAction CLIAction;
struct CLIAction {
CLIActionType type;
bool force_intro;
2017-04-02 10:16:52 +02:00
int stageid;
int diff;
int frameskip;
CutsceneID cutscene;
char *filename;
char *out_replay;
PlayerMode *plrmode;
2017-04-02 10:16:52 +02:00
};
int cli_args(int argc, char **argv, CLIAction *a);
void free_cli_action(CLIAction *a);