Homebrew [Release] GM9 Script - Backup/Restore Boot Animation

DNA64

Active Member
OP
Newcomer
Joined
Sep 12, 2017
Messages
35
Trophies
0
Location
127.0.0.1
XP
102
Country
Canada
BARBA-GM9.png

[Release] GM9 Script - Backup/Restore Boot Animation

This is for Boot Animations ONLY! Not for Splash Screens (Which are not affected anyways).

I made these (2) scripts for Godmode9 to easily Backup and Restore my current Boot Animation (It works by changing filenames) before updating Luma which of course would replace the Boot.Firm breaking the Boot Animation.
Usually I wouldn't release such simple things like this, but I'm trying to share more :P



How to use these scripts:
Simply put just run the Backup Script "backup_boot_animation.gm9" before updating, then the Restore Script "restore_boot_animation.gm9" once you've updated Luma and you'll still have your boot animation.
If you need further details read/follow the instructions below.


1. Download & Unpack the .7z file below and Install/Copy the included scripts into the gm9 scripts folder in the root of your SD Card "SD:/gm9/scripts".
2. Re-insert your SD card into your system and boot your system into Godmode9 (Default: Hold start while pressing the power button).
3. Press the Homebutton once Godmode9 has loaded. Scroll down and select "More..." and press (A). Scroll down and select the "Scripts..." option.
4. Select and and press (A) to run the Backup Script "backup_boot_animation.gm9" and follow the onscreen instructions.
5. Reboot and run the luma updater, then shutdown and loadup Godmode9 again.
6. Repeat steps 1, 2 & 3 again.
7. Select and and press (A) to run the Restore Script "restore_boot_animation.gm9" and follow the onscreen instructions.
8. All done! If you did everything right your system should boot into the updated Luma with your default boot animation.

Can't run scripts, missing script option?
If the scripts option is missing from Godmode9 make sure the "scripts" folder located under the "gm9" folder is present on your SD Card with the ".gm9" scripts in the folder.
If you still don't see the scripts option, make sure you're running 1.2.7 or greater (1.3.1 is the current build at the time of writing).
Alternatively, you can run the scripts from any location on the SD Card.
Source Code Preview
Code:
# Version 1.0.0, Released: 2017-09-02
# Author: DNA64
 
set SUCCESSMSG "Backup was successful! :)"
set ERRORMSG "User aborted or something went wrong :(\n\nDNA64"
 
ask "Boot Animation Backup script by DNA64\n \nRun this before updating Luma!\n \nContinue?"

#allows SD modifications to 0:/
allow -a 0:/
 
ask "Backup anim files? \nContinue?"
 
#renames your files to preserve the animated boot intro.
mv -w -n 0:/boot.firm 0:/bootanim.firm
mv -w -n 0:/bootluma.firm 0:/boot.firm
Code:
# Version 1.0.0, Released: 2017-09-02
# Author: DNA64

set SUCCESSMSG "Boot animation was successfully restored! :)"
set ERRORMSG "User aborted or something went wrong :(\n\nDNA64"

ask "Boot Animation Restore script by DNA64\n \nRun after updating Luma to restore \nthe boot animation. \nContinue?"
#allows SD modifications to 0:/
allow -a 0:/

ask "Restore anim files? \nContinue?"

mv -w -n 0:/boot.firm 0:/bootluma.firm
mv -w -n 0:/bootanim.firm 0:/boot.firm

File name: BootAnimationTools[GM9_SCRIPT][DNA64].7z
File size: 626 B
SHA-256: a6024a1250ea65f71c0ab9750b49f376e914a4d8aefb0d944119d0010ae3caea
Virus Total: #/file/a6024a1250ea65f71c0ab9750b49f376e914a4d8aefb0d944119d0010ae3caea/detection

Questions? Comments?
Leave a like or say thanks if this helped you, or you think it's useful. - Thx!
 

Attachments

  • BootAnimationTools[GM9_SCRIPT][DNA64].7z
    626 bytes · Views: 215
Last edited by DNA64,
  • Like
Reactions: iAqua

Giodude

GBAtemp's official rock
Member
Joined
May 17, 2015
Messages
5,094
Trophies
1
Age
23
Location
New York
XP
2,761
Country
United States
not bad, could be useful for people who have issues with simple renaming. (not a dis on your part ive met people like that).
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Sonic Angel Knight @ Sonic Angel Knight: :ninja: