Skip to content

Add exe easier to use for multiple builds option #31

@BialySztorm

Description

@BialySztorm

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions