Skip to content

extract_assets.py, allow drag & drop and downgrade match to elif. Do NOT merge#251

Closed
MegaMech wants to merge 2 commits intoHarbourMasters:developfrom
MegaMech:patch-5
Closed

extract_assets.py, allow drag & drop and downgrade match to elif. Do NOT merge#251
MegaMech wants to merge 2 commits intoHarbourMasters:developfrom
MegaMech:patch-5

Conversation

@MegaMech
Copy link
Contributor

@MegaMech MegaMech commented May 1, 2022

This PR changes the functionality of extract_assets.py.

The command argument now uses rom name (don't forget the extension):
./extract_assets.py <rom> it no longer uses <number> (selection based on num_roms in directory)

This allows dragging and dropping a rom straight into the python file

The match/switch statement has been downgraded to elif for those using python3 from the wood era.

Note: In Windows drag & drop submits the entire path: C:/Users/%USERNAME%/etc/OTRExporter/rom_name.z64 rather than just the file name and extension.
I recommend testing this change in Linux to make sure it's functional. Otherwise I'll add more logic to parse out the directory.

@MegaMech MegaMech changed the title extract_assets.py allow drag & drop and downgrade match to elif extract_assets.py, allow drag & drop and downgrade match to elif May 1, 2022
@Kenix3
Copy link
Collaborator

Kenix3 commented May 11, 2022

Merge pending conflict resolution.

@MegaMech MegaMech changed the title extract_assets.py, allow drag & drop and downgrade match to elif extract_assets.py, allow drag & drop and downgrade match to elif. Do NOT merge May 11, 2022
Kenix3 pushed a commit that referenced this pull request May 15, 2022
* add python version requirement to BUILDING.md

extract_assets uses match statements which were added in python version 3.10

* update wording/version on python requirement

#251 removes the 3.10 specific match statements, dropping the python version requirement to 3.6.

* Update BUILDING.md

* Update BUILDING.md

* Update BUILDING.md

* Update BUILDING.md

* switch python link to download page

* Fixed SHA-1 for retail ROM

* Added discord link

Co-authored-by: briaguya <70942617+briaguya-ai@users.noreply.github.com>
Co-authored-by: InfoManiac742 <ryanjgabel@gmail.com>
@Kenix3 Kenix3 marked this pull request as draft June 8, 2022 21:54
@Kenix3
Copy link
Collaborator

Kenix3 commented Jun 17, 2022

Feel free to reopen this PR when you have time to maintain it.

@Kenix3 Kenix3 closed this Jun 17, 2022
aMannus pushed a commit to aMannus/Shipwright that referenced this pull request Jul 2, 2022
Malkierian pushed a commit to Malkierian/Shipwright that referenced this pull request Nov 20, 2023
Resolves issue of assertions when the code was in StartFrame.
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

Successfully merging this pull request may close these issues.

2 participants