2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-01-24 00:51:50 +00:00

Allow game parameter to be set in ImageConverter

This commit is contained in:
hindercanrun
2026-01-23 12:27:57 +08:00
parent 2a034d512e
commit c97b756b2c

View File

@@ -153,5 +153,16 @@ bool ImageConverterArgs::ParseArgs(const int argc, const char** argv, bool& shou
// --no-color // --no-color
con::set_use_color(!m_argument_parser.IsOptionSpecified(OPTION_NO_COLOR)); con::set_use_color(!m_argument_parser.IsOptionSpecified(OPTION_NO_COLOR));
if (m_argument_parser.IsOptionSpecified(OPTION_GAME_IW3))
m_game_to_convert_to = GameId::IW3;
else if (m_argument_parser.IsOptionSpecified(OPTION_GAME_IW4))
m_game_to_convert_to = GameId::IW4;
else if (m_argument_parser.IsOptionSpecified(OPTION_GAME_IW5))
m_game_to_convert_to = GameId::IW5;
else if (m_argument_parser.IsOptionSpecified(OPTION_GAME_T5))
m_game_to_convert_to = GameId::T5;
else if (m_argument_parser.IsOptionSpecified(OPTION_GAME_T6))
m_game_to_convert_to = GameId::T6;
return true; return true;
} }