taisei/src/cli.h
2018-01-04 19:14:31 +02:00

35 lines
701 B
C

/*
* This software is licensed under the terms of the MIT-License
* See COPYING for further information.
* ---
* Copyright (c) 2011-2018, Lukas Weber <laochailan@web.de>.
* Copyright (c) 2012-2018, Andrei Alexeyev <akari@alienslab.net>.
*/
#pragma once
#include "taisei.h"
#include "plrmodes.h"
typedef enum {
CLI_RunNormally = 0,
CLI_PlayReplay,
CLI_SelectStage,
CLI_DumpStages,
CLI_DumpVFSTree,
CLI_Quit,
CLI_Credits,
} CLIActionType;
typedef struct CLIAction CLIAction;
struct CLIAction {
CLIActionType type;
char *filename;
int stageid;
int diff;
int frameskip;
PlayerMode *plrmode;
};
int cli_args(int argc, char **argv, CLIAction *a);
void free_cli_action(CLIAction *a);