From 02d829cb3f1361beabf55531e091c7e8ff54f2d6 Mon Sep 17 00:00:00 2001 From: Anon Date: Sun, 9 Apr 2023 17:25:06 -0700 Subject: [PATCH] Added -z switch to set initial state --- src/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.py b/src/main.py index 75d99a4..86aa034 100755 --- a/src/main.py +++ b/src/main.py @@ -222,6 +222,7 @@ def main(): parser.add_argument("-i", "--index", help="Start at index (only matters if profile is set to sequential)", default=0) parser.add_argument("-s", "--state", help="Set comma seperated state (only matters if profile is set to sequential)", default=None) parser.add_argument("-l", "--list", help="Output profile names", action="store_true") + parser.add_argument("-z", "--zfill", help="Set initial state") parser.add_argument("remainder", help=argparse.SUPPRESS, nargs=argparse.REMAINDER) arguments = parser.parse_args() @@ -251,6 +252,9 @@ def main(): arguments.keyfile, debug_mode, ) + + if arguments.zfill: + yandere.currentProfileIndex = list(map(int, [arguments.zfill]*len(yandere_config.settings_post))) yandere.currentIndexCount = int(arguments.index) if arguments.state: