Commit 0803a304 authored by nanahira's avatar nanahira

add as an option

parent 4497cb18
......@@ -90,6 +90,7 @@ extern unsigned short PRO_VERSION;
extern int enable_log;
extern bool exit_on_return;
extern bool auto_watch_mode;
extern bool raw_video_mode;
extern bool open_file;
extern wchar_t open_file_name[256];
extern bool bot_mode;
......
......@@ -981,6 +981,7 @@ void Game::MainLoop() {
DuelClient::try_needed = false;
DuelClient::StartClient(DuelClient::temp_ip, DuelClient::temp_port, false);
}
if(raw_video_mode)
takeScreenshotLoop();
}
DuelClient::StopClient(true);
......
......@@ -10,6 +10,7 @@
int enable_log = 0;
bool exit_on_return = false;
bool auto_watch_mode = false;
bool raw_video_mode = false;
bool open_file = false;
wchar_t open_file_name[256] = L"";
bool bot_mode = false;
......@@ -112,6 +113,8 @@ int main(int argc, char* argv[]) {
keep_on_return = true;
} else if(!wcscmp(wargv[i], L"--auto-watch")) { // Auto watch mode
auto_watch_mode = true;
} else if(!wcscmp(wargv[i], L"--raw-video")) { // Raw video mode
raw_video_mode = true;
} else if(!wcscmp(wargv[i], L"-d")) { // Deck
++i;
if(i + 1 < wargc) { // select deck
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment