1
0
mirror of https://github.com/hacks-guide/Guide_3DS.git synced 2025-08-27 02:14:50 +02:00

ctrtransfer_ticket_copy script

This commit is contained in:
Plailect
2017-07-16 17:45:19 -04:00
committed by Plailect
parent cac9bd1f2e
commit 9761ab88e6
7 changed files with 50 additions and 26 deletions

View File

@@ -0,0 +1,24 @@
# CTRTransfer Ticket Copy script
# last changed: 20170716
# author: Plailect
set SUCCESSMSG "Copied tickets successfully"
ask "This will copy CTRTransfer tickets,\nallowing for your games to work correctly.\n\nContinue?"
allow 1:/
# Mount ticket image backup
set ERRORMSG "Could not find ticket backup.\nSomething has gone wrong with your CTRTransfer."
imgmount 1:/dbs/ticket.bak
# Check for "eshop" or "unknown" tickets, ignore "system" tickets (because "system" has no "o" in it)
# AFAIK there's no better way to do this because I can't do && in a "find" command
set ERRORMSG "No user tickets found.\nSkip the 'Reinstalling Tickets' section."
find T:/*o* NULL
set ERRORMSG ""
rm -o -s $[GM9OUT]/ctrtransfer_tickets
mkdir $[GM9OUT]/ctrtransfer_tickets
cp -o -s T:/eshop $[GM9OUT]/ctrtransfer_tickets/eshop
cp -o -s T:/unknown $[GM9OUT]/ctrtransfer_tickets/unknown