-
Notifications
You must be signed in to change notification settings - Fork 4
To replace the scripts #4
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
Open
GlazedBelmont
wants to merge
11
commits into
ZetaDesigns:master
Choose a base branch
from
GlazedBelmont:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
63d5303
Added a merged script
GlazedBelmont cfca423
Update Dumping_script.gm9
GlazedBelmont 93c85bf
Added credits
GlazedBelmont dcef6d0
added the end quote
GlazedBelmont a332566
added "install"
GlazedBelmont caa5606
added a quote because I missed that one smh
GlazedBelmont 087f3e9
significantly shrunk the script
GlazedBelmont 9c66878
removed useless lines
GlazedBelmont 7170a92
fixed the quotes
GlazedBelmont 0279ce8
added some actions when user presses B
GlazedBelmont e7747a6
DISPLAY_MODE NEVER EXISTED PREVIEW_MODE WAS THE WAE
GlazedBelmont File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,275 @@ | ||
| # author: zeta , jisagi & Glazed_Belmont | ||
|
|
||
| @start | ||
| set PREVIEW_MODE "PKMN Randomizer script" | ||
|
|
||
| labelsel -o -s "Is your game a cartridge or digital install?" TYPE_* | ||
| goto start | ||
|
|
||
| ###CARTRIDGE### | ||
| @TYPE_Cartridge | ||
|
|
||
| set PREVIEW_MODE "PKMN Randomizer script\nTYPE_CARTRIDGE" | ||
| ask "Script will begin dumping." | ||
| if not find -o -s C:/*.trim.3ds CARTRIDGE | ||
| echo "No 3DS cart was detected" | ||
| goto end | ||
| end | ||
|
|
||
| imgmount $[CARTRIDGE] | ||
| mkdir 0:/gm9/out/romfs | ||
| mkdir 0:/gm9/out/exefs | ||
|
|
||
| if not cp -o -s G:/content0.game/romfs/ 0:/gm9/out/romfs | ||
| echo "Dumping romfs failed" | ||
| goto end | ||
| end | ||
|
|
||
| if not cp -o -s G:/content0.game/exefs/ 0:/gm9/out/exefs | ||
| echo "Dumping exefs failed" | ||
| goto end | ||
| end | ||
|
|
||
| if not -o -s labelsel -o -s "What game are you dumping?" CARTRIDGE_* | ||
| goto start | ||
| end | ||
|
|
||
| #-------------------------------------------------------------------------------# | ||
|
|
||
|
|
||
| ###DIGITAL### | ||
| @TYPE_Digital | ||
|
|
||
| set PREVIEW_MODE "PKMN Randomizer script\nTYPE_DIGITAL" | ||
|
|
||
| if not -o -s labelsel -o -s "What game are you dumping?" DIGITAL_* | ||
| goto start | ||
| end | ||
|
|
||
| ###PKMN X### | ||
| @CARTRIDGE_X | ||
|
|
||
| set GAMEID 00055D00 | ||
| goto Update_Dump | ||
|
|
||
| @DIGITAL_X | ||
|
|
||
| set X "A:/title/00040000/00055D00" | ||
| if not isdir -o -s $[X] | ||
| echo "The game wasn't found.\nMake sure you have Pokemon X installed." | ||
| goto start | ||
| end | ||
|
|
||
| set GAMEID 00055D00 | ||
| goto Confirm | ||
|
|
||
|
|
||
| ###PKMN Y### | ||
| @CARTRIDGE_Y | ||
|
|
||
| set GAMEID 00055E00 | ||
| goto Update_Dump | ||
|
|
||
| @DIGITAL_Y | ||
|
|
||
| set Y "A:/title/00040000/00055E00" | ||
| if not isdir -o -s $[Y] | ||
| echo "The game wasn't found.\nMake sure you have Pokemon Y installed." | ||
| goto start | ||
| end | ||
|
|
||
| set GAMEID 00055E00 | ||
| goto Confirm | ||
|
|
||
|
|
||
| ###PKMN OMEGA RUBY### | ||
| @CARTRIDGE_Omega_Ruby | ||
|
|
||
| set GAMEID 0011C400 | ||
| goto Update_Dump | ||
|
|
||
| @DIGITAL_Omega_Ruby | ||
|
|
||
| set OR "A:/title/00040000/0011C400" | ||
| if not isdir -o -s $[OR] | ||
| echo "The game wasn't found.\nMake sure you have Pokemon Omega Ruby installed." | ||
| goto start | ||
| end | ||
|
|
||
| set GAMEID 0011C400 | ||
| goto Confirm | ||
|
|
||
|
|
||
| ###PKMN ALPHA SAPPHIRE### | ||
| @CARTRIDGE_Alpha_Sapphire | ||
|
|
||
| set GAMEID 0011C500 | ||
| goto Update_Dump | ||
|
|
||
| @DIGITAL_Alpha_Sapphire | ||
|
|
||
| set AS "A:/title/00040000/0011C500" | ||
| if not isdir -o -s $[AS] | ||
| echo "The game wasn't found.\nMake sure you have Pokemon Alpha Sapphire installed." | ||
| goto start | ||
| end | ||
|
|
||
| set GAMEID 0011C500 | ||
| goto Confirm | ||
|
|
||
|
|
||
| ###PKMN SUN### | ||
| @CARTRIDGE_Sun | ||
|
|
||
| set GAMEID 00164800 | ||
| goto Update_Dump | ||
|
|
||
| @DIGITAL_Sun | ||
|
|
||
| set S "A:/title/00040000/00164800" | ||
| if not isdir -o -s $[S] | ||
| echo "The game wasn't found.\nMake sure you have Pokemon Sun installed." | ||
| goto start | ||
| end | ||
|
|
||
| set GAMEID 00164800 | ||
| goto Confirm | ||
|
|
||
|
|
||
| ###PKMN MOON### | ||
| @CARTRIDGE_Moon | ||
|
|
||
| set GAMEID 00175E00 | ||
| goto Update_Dump | ||
|
|
||
| @DIGITAL_Moon | ||
|
|
||
| set M "A:/title/00040000/00175E00" | ||
| if not isdir -o -s $[M] | ||
| echo "The game wasn't found.\nMake sure you have Pokemon Moon installed." | ||
| goto start | ||
| end | ||
|
|
||
| set GAMEID 00175E00 | ||
| goto Confirm | ||
|
|
||
|
|
||
| ###PKMN ULTRA SUN### | ||
| @CARTRIDGE_Ultra_Sun | ||
|
|
||
| set GAMEID 001B5000 | ||
| goto Update_Dump | ||
|
|
||
| @DIGITAL_Ultra_Sun | ||
|
|
||
| set US "A:/title/00040000/001B5000" | ||
| if not isdir -o -s $[US] | ||
| echo "The game wasn't found.\nMake sure you have Pokemon Ultra Sun installed." | ||
| goto start | ||
| end | ||
|
|
||
| set GAMEID 001B5000 | ||
| goto Confirm | ||
|
|
||
|
|
||
| ###PKMN ULTRA MOON### | ||
| @CARTRIDGE_Ultra_Moon | ||
|
|
||
| set GAMEID 001B5100 | ||
| goto Update_Dump | ||
|
|
||
| @DIGITAL_Ultra_Moon | ||
|
|
||
| set UM "A:/title/00040000/001B5100" | ||
| if not isdir -o -s $[UM] | ||
| echo "The game wasn't found.\nMake sure you have Pokemon Ultra Moon installed." | ||
| goto start | ||
| end | ||
|
|
||
| set GAMEID 001B5100 | ||
| goto Confirm | ||
|
|
||
| #---------------------------------------------------------------------------------------------# | ||
|
|
||
|
|
||
| ###Digital_Dump### | ||
| @Digital_Dump | ||
|
|
||
| if not -o -s filesel "Please select the bigger .app file" A:/title/00040000/$[GAMEID]/content/*.app GAME | ||
| goto start | ||
| end | ||
|
|
||
| imgmount $[GAME] | ||
| mkdir 0:/gm9/out/romfs | ||
| mkdir 0:/gm9/out/exefs | ||
|
|
||
| set ERRORMSG "Dumping failed.\nCopying romfs/exefs failed." | ||
| if not cp -o -s G:/romfs/ 0:/gm9/out/romfs | ||
| echo "Dumping romfs failed" | ||
| goto end | ||
| end | ||
|
|
||
| if not cp -o -s G:/exefs/ 0:/gm9/out/exefs | ||
| echo "Dumping exefs failed" | ||
| goto end | ||
| end | ||
| goto Update_Dump | ||
|
|
||
|
|
||
| ###Update_Dump### | ||
| @Update_Dump | ||
|
|
||
| echo "RomFS and ExeFS dumping done\nDumping the update now." | ||
| if not find -o -s A:/title/0004000e/$[GAMEID]/content/0000000?.app UPDATE | ||
| echo "No updates were found.\nMake sure you have them installed." | ||
| goto end | ||
| end | ||
|
|
||
| if not ask "The update was found, Continue?" | ||
| goto start | ||
| end | ||
|
|
||
| imgmount $[UPDATE] | ||
|
|
||
| if not cp -o -s G:/romfs/ 0:/gm9/out/romfs | ||
| echo "Dumping romfs failed" | ||
| goto end | ||
| end | ||
|
|
||
| if not cp -o -s G:/exefs/ 0:/gm9/out/exefs | ||
| echo "Dumping exefs failed" | ||
| goto end | ||
| end | ||
|
|
||
| echo "Dumping finished properly" | ||
| goto end | ||
|
|
||
|
|
||
| ##Confirm## | ||
| @Confirm | ||
|
|
||
| if not ask -o -s "The game was found, Continue?" | ||
| goto start | ||
| end | ||
|
|
||
| goto Digital_Dump | ||
|
|
||
|
|
||
| ##EXITING## | ||
| @TYPE_Exit | ||
|
|
||
| goto end | ||
|
|
||
| ##GOING BACK## | ||
| @DIGITAL_Back | ||
GlazedBelmont marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| @CARTRIDGE_Back | ||
| goto start | ||
|
|
||
|
|
||
| ##Credits## | ||
| @TYPE_Credits | ||
|
|
||
| echo "This script was made possible by:\nZeta\nJisagi\nGlazed_Belmont" | ||
| goto start | ||
|
|
||
| @end | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.