Skip to content

Commit

Permalink
DS Classic Menu: Add blue and purple battery colors for DSi/3DS
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Aug 17, 2024
1 parent c753b9c commit ed98e9f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions quickmenu/arm9/source/graphics/graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,11 @@ void batteryIconLoad() {
// Load full battery icon

const char* filePath = "nitro:/graphics/battery/batteryfull.png";
if (dsiFeatures() && ms().consoleModel < 2 && ms().powerLedColor) {
filePath = "nitro:/graphics/battery/batteryfullPurple.png";
} else if (sys().isRegularDS()) {
filePath = "nitro:/graphics/battery/batteryfullDS.png";
}

FILE* file = fopen(filePath, "rb");

Expand Down Expand Up @@ -351,6 +356,9 @@ void batteryIconLoad() {
// Load low battery icon

filePath = "nitro:/graphics/battery/batterylow.png";
if (ms().consoleModel < 2 && ms().powerLedColor) {
filePath = "nitro:/graphics/battery/batteryfullPurple.png";
}

file = fopen(filePath, "rb");
if (file) {
Expand Down
Binary file modified quickmenu/nitrofiles/graphics/battery/batteryfull.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ed98e9f

Please sign in to comment.