mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-20 02:47:02 +02:00
Add add-on (DLC) support (#1519)
Add add-on content support Co-authored-by: nmzik <Nmzik@mail.ru>
This commit is contained in:
@@ -46,6 +46,7 @@ static void PrintUsage() {
|
||||
::printf("Options:\n");
|
||||
::printf(" --game <dir|elf|zar> Game directory, ELF, or ZArchive to load.\n");
|
||||
::printf(" --game-patch <json> ETAHen cheat file.\n");
|
||||
::printf(" --addcont-dir <dir> Add-ons (DLC) folder (default: none).\n");
|
||||
::printf(" --screen-width <num> Window width. Default: 1280.\n");
|
||||
::printf(" --screen-height <num> Window height. Default: 720.\n");
|
||||
::printf(
|
||||
@@ -326,6 +327,12 @@ static bool ParseArgs(int argc, char* argv[], RunOptions& options, bool& show_he
|
||||
return false;
|
||||
}
|
||||
options.game_patch = path;
|
||||
} else if (arg == "--addcont-dir") {
|
||||
if (!options.addcont_dir.empty()) {
|
||||
::printf("--addcont-dir can only be specified once\n");
|
||||
return false;
|
||||
}
|
||||
options.addcont_dir = Common::PathFromUtf8(Common::FixFilenameSlash(value));
|
||||
} else if (arg == "--screen-width") {
|
||||
if (!ParseUint32(value, options.config.screen_width) ||
|
||||
options.config.screen_width == 0) {
|
||||
|
||||
Reference in New Issue
Block a user