2017-09-12 03:28:15 +02:00
|
|
|
/*
|
2019-08-03 19:43:48 +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.
|
|
|
|
* ---
|
2024-05-16 23:30:41 +02:00
|
|
|
* Copyright (c) 2011-2024, Lukas Weber <laochailan@web.de>.
|
|
|
|
* Copyright (c) 2012-2024, Andrei Alexeyev <akari@taisei-project.org>.
|
2017-09-12 03:28:15 +02:00
|
|
|
*/
|
|
|
|
|
2021-08-12 23:09:01 +02:00
|
|
|
#pragma once
|
2017-11-25 20:45:11 +01:00
|
|
|
#include "taisei.h"
|
2017-04-02 10:16:52 +02:00
|
|
|
|
2017-10-08 13:30:51 +02:00
|
|
|
#include "plrmodes.h"
|
2017-04-02 10:16:52 +02:00
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
CLI_RunNormally = 0,
|
|
|
|
CLI_PlayReplay,
|
2018-04-18 01:17:28 +02:00
|
|
|
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,
|
2023-05-08 04:23:08 +02:00
|
|
|
CLI_QuitLate,
|
2017-10-23 12:48:30 +02:00
|
|
|
CLI_Credits,
|
2020-11-28 11:11:10 +01:00
|
|
|
CLI_Cutscene,
|
2017-04-02 10:16:52 +02:00
|
|
|
} CLIActionType;
|
|
|
|
|
|
|
|
typedef struct CLIAction CLIAction;
|
|
|
|
struct CLIAction {
|
2023-05-29 00:48:50 +02:00
|
|
|
char *filename;
|
|
|
|
char *out_replay;
|
|
|
|
PlayerMode *plrmode;
|
2017-04-02 10:16:52 +02:00
|
|
|
CLIActionType type;
|
|
|
|
int stageid;
|
|
|
|
int diff;
|
2017-04-03 01:30:12 +02:00
|
|
|
int frameskip;
|
2020-11-28 11:11:10 +01:00
|
|
|
CutsceneID cutscene;
|
2023-05-29 00:48:50 +02:00
|
|
|
bool force_intro;
|
|
|
|
bool unlock_all;
|
2024-05-02 00:24:06 +02:00
|
|
|
int width;
|
|
|
|
int height;
|
2017-04-02 10:16:52 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
int cli_args(int argc, char **argv, CLIAction *a);
|
|
|
|
void free_cli_action(CLIAction *a);
|