Commit 0803a304 authored by nanahira's avatar nanahira

add as an option

parent 4497cb18
...@@ -90,6 +90,7 @@ extern unsigned short PRO_VERSION; ...@@ -90,6 +90,7 @@ extern unsigned short PRO_VERSION;
extern int enable_log; extern int enable_log;
extern bool exit_on_return; extern bool exit_on_return;
extern bool auto_watch_mode; extern bool auto_watch_mode;
extern bool raw_video_mode;
extern bool open_file; extern bool open_file;
extern wchar_t open_file_name[256]; extern wchar_t open_file_name[256];
extern bool bot_mode; extern bool bot_mode;
......
...@@ -981,7 +981,8 @@ void Game::MainLoop() { ...@@ -981,7 +981,8 @@ void Game::MainLoop() {
DuelClient::try_needed = false; DuelClient::try_needed = false;
DuelClient::StartClient(DuelClient::temp_ip, DuelClient::temp_port, false); DuelClient::StartClient(DuelClient::temp_ip, DuelClient::temp_port, false);
} }
takeScreenshotLoop(); if(raw_video_mode)
takeScreenshotLoop();
} }
DuelClient::StopClient(true); DuelClient::StopClient(true);
if(dInfo.isSingleMode) if(dInfo.isSingleMode)
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
int enable_log = 0; int enable_log = 0;
bool exit_on_return = false; bool exit_on_return = false;
bool auto_watch_mode = false; bool auto_watch_mode = false;
bool raw_video_mode = false;
bool open_file = false; bool open_file = false;
wchar_t open_file_name[256] = L""; wchar_t open_file_name[256] = L"";
bool bot_mode = false; bool bot_mode = false;
...@@ -112,6 +113,8 @@ int main(int argc, char* argv[]) { ...@@ -112,6 +113,8 @@ int main(int argc, char* argv[]) {
keep_on_return = true; keep_on_return = true;
} else if(!wcscmp(wargv[i], L"--auto-watch")) { // Auto watch mode } else if(!wcscmp(wargv[i], L"--auto-watch")) { // Auto watch mode
auto_watch_mode = true; 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 } else if(!wcscmp(wargv[i], L"-d")) { // Deck
++i; ++i;
if(i + 1 < wargc) { // select deck 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