Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add exe easier to use for multiple builds option #31

Open
BialySztorm opened this issue Feb 27, 2024 · 0 comments
Open

Add exe easier to use for multiple builds option #31

BialySztorm opened this issue Feb 27, 2024 · 0 comments

Comments

@BialySztorm
Copy link

BialySztorm commented Feb 27, 2024

what about creating an exe with something like this:

import os
import sys


def run3dsconv():
    if not os.path.exists("cias"):
        os.makedirs("cias")
    input_directory = "roms"
    for root, dirs, files in os.walk(input_directory):
        for file in files:
            if file.endswith(".3ds"):
                input_path = os.path.join(root, file)
                output_dir = "cias"
                print("Converting", input_path, "to", output_dir)
                os.system("python 3dsconv.py --output=\"" + output_dir + "\" --boot9=\"boot9.bin\" \"" + input_path + "\"")


if __name__ == "__main__":
    if not os.path.exists("roms"):
        print("Error: roms directory not found")
        os.makedirs("roms")
        sys.exit(1)
    if not os.path.exists("boot9.bin"):
        print("Error: boot9.bin not found")
        sys.exit(1)
    run3dsconv()

so you can simply run the code and everything will be done automaticaly without any data parsing in

@BialySztorm BialySztorm changed the title Add easier to use for multiple builds option Add exe easier to use for multiple builds option Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant