Skip to content

Instantly share code, notes, and snippets.

@HolyMcDiver
Last active February 7, 2019 10:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HolyMcDiver/452633303294b6ab27a20c6324a44ed4 to your computer and use it in GitHub Desktop.
Save HolyMcDiver/452633303294b6ab27a20c6324a44ed4 to your computer and use it in GitHub Desktop.
For the Vita3K emulator.
import subprocess
import os
import time
# For Python 2.7.x
# Configure the paths (by default, it works if you place it in a new folder in the Vita3K directory)
# Logs are placed in that directory
# Warning: Will probably get pretty crazy with lots of games
# Original author for decaf-emu : VelocityRa6
# Author for Vita3K : Holy Diver
vita3k_path = r"../vita3k.exe"
game_path = r"../Games/"
is_jit = True
start_delay = 20 # Delay between starting each game in seconds
game_dirs = next(os.walk(game_path))[1]
def main():
for game in game_dirs:
action_arg = "play"
jit_arg = "--jit" if is_jit else ""
game_path_arg = game_path + game
log_file_arg = "--log-file"
log_level_arg = "--log-level=" + "debug"
sound_arg = "--sound"
subprocess.call(["start", vita3k_path_path, action_arg, jit_arg, sound_arg, log_file_arg, log_level_arg, game_path_arg], shell=True)
time.sleep(start_delay)
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment