Skip to content

Commit

Permalink
Minor changes for UI version
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadowtrance committed Jun 7, 2016
1 parent 43c2208 commit 5f9e490
Show file tree
Hide file tree
Showing 154 changed files with 19 additions and 10 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ include $(DEVKITARM)/ds_rules
# INCLUDES is a list of directories containing header files
# SPECS is the directory containing the important build and link files
#---------------------------------------------------------------------------------
export TARGET := Decrypt9WIP
export TARGET := Decrypt9UI
BUILD := build
SOURCES := source source/fatfs source/decryptor source/abstraction
DATA := data
Expand All @@ -25,7 +25,7 @@ INCLUDES := source source/fatfs
#---------------------------------------------------------------------------------
# THEME: if set to anything, name of the themes file folder inside resources
#---------------------------------------------------------------------------------
THEME :=
THEME := /D9UI

#---------------------------------------------------------------------------------
# options for code generation
Expand Down Expand Up @@ -161,7 +161,6 @@ release:
@-cp $(OUTPUT).nds $(RELEASE)
@-cp $(OUTPUT).3dsx $(RELEASE)/$(TARGET)
@-cp $(OUTPUT).smdh $(RELEASE)/$(TARGET)
@-cp $(CURDIR)/resources/d9logo.bin $(RELEASE)/d9logo.bin
@cp $(CURDIR)/scripts/*.py $(RELEASE)/scripts
@cp $(CURDIR)/README.md $(RELEASE)
@-[ ! -n "$(strip $(THEME))" ] || (mkdir $(RELEASE)/$(THEME) && cp $(CURDIR)/resources/$(THEME)/*.bin $(RELEASE)/$(THEME))
Expand Down
2 changes: 1 addition & 1 deletion resources/BrahmaAppInfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
APP_TITLE = Decrypt9
APP_TITLE = Decrypt9UI
APP_DESCRIPTION = Open source 3DS decryption & dumping tools.
APP_AUTHOR = Archshift, d0k3, Shadowtrance & others

Expand Down
Binary file modified resources/BrahmaIcon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/CakesROP/drunkenlogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/D9UI/danger_e.bin
Binary file not shown.
Binary file added resources/D9UI/danger_s.bin
Binary file not shown.
Binary file not shown.
Binary file added resources/D9UI/done.bin
Binary file not shown.
Binary file added resources/D9UI/failed.bin
Binary file not shown.
Binary file added resources/D9UI/logo.bin
Binary file not shown.
Binary file added resources/D9UI/logo_b.bin
Binary file not shown.
Binary file added resources/D9UI/menu0000.bin
Binary file not shown.
Binary file added resources/D9UI/menu0001.bin
Binary file not shown.
Binary file added resources/D9UI/menu0002.bin
Binary file not shown.
Binary file added resources/D9UI/menu0003.bin
Binary file not shown.
Binary file added resources/D9UI/menu0004.bin
Binary file not shown.
Binary file added resources/D9UI/menu0005.bin
Binary file not shown.
Binary file added resources/D9UI/menu0006.bin
Binary file not shown.
Binary file added resources/D9UI/menu0007.bin
Binary file not shown.
Binary file added resources/D9UI/menu0100.bin
Binary file not shown.
Binary file added resources/D9UI/menu0101.bin
Binary file not shown.
Binary file added resources/D9UI/menu0102.bin
Binary file not shown.
Binary file added resources/D9UI/menu0103.bin
Binary file not shown.
Binary file added resources/D9UI/menu0104.bin
Binary file not shown.
Binary file added resources/D9UI/menu0105.bin
Binary file not shown.
Binary file added resources/D9UI/menu0200.bin
Binary file not shown.
Binary file added resources/D9UI/menu0201.bin
Binary file not shown.
Binary file added resources/D9UI/menu0202.bin
Binary file not shown.
Binary file added resources/D9UI/menu0203.bin
Binary file not shown.
Binary file added resources/D9UI/menu0204.bin
Binary file not shown.
Binary file added resources/D9UI/menu0205.bin
Binary file not shown.
Binary file added resources/D9UI/menu0300.bin
Binary file not shown.
Binary file added resources/D9UI/menu0301.bin
Binary file not shown.
Binary file added resources/D9UI/menu0302.bin
Binary file not shown.
Binary file added resources/D9UI/menu0303.bin
Binary file not shown.
Binary file added resources/D9UI/menu0304.bin
Binary file not shown.
Binary file added resources/D9UI/menu0305.bin
Binary file not shown.
Binary file added resources/D9UI/menu0400.bin
Binary file not shown.
Binary file added resources/D9UI/menu0401.bin
Binary file not shown.
Binary file added resources/D9UI/menu0402.bin
Binary file not shown.
Binary file added resources/D9UI/menu0403.bin
Binary file not shown.
Binary file added resources/D9UI/menu0404.bin
Binary file not shown.
Binary file added resources/D9UI/menu0405.bin
Binary file not shown.
Binary file added resources/D9UI/menu0406.bin
Binary file not shown.
Binary file added resources/D9UI/menu0407.bin
Binary file not shown.
Binary file added resources/D9UI/menu0408.bin
Binary file not shown.
Binary file added resources/D9UI/menu0409.bin
Binary file not shown.
Binary file added resources/D9UI/menu0410.bin
Binary file not shown.
Binary file added resources/D9UI/menu0500.bin
Binary file not shown.
Binary file added resources/D9UI/menu0501.bin
Binary file not shown.
Binary file added resources/D9UI/menu0502.bin
Binary file not shown.
Binary file added resources/D9UI/menu0503.bin
Binary file not shown.
Binary file added resources/D9UI/menu0504.bin
Binary file not shown.
Binary file added resources/D9UI/menu0600.bin
Binary file not shown.
Binary file added resources/D9UI/menu0601.bin
Binary file not shown.
Binary file added resources/D9UI/menu0602.bin
Binary file not shown.
Binary file added resources/D9UI/menu0603.bin
Binary file not shown.
Binary file added resources/D9UI/menu0604.bin
Binary file not shown.
Binary file added resources/D9UI/menu0605.bin
Binary file not shown.
Binary file added resources/D9UI/menu0700.bin
Binary file not shown.
Binary file added resources/D9UI/menu0701.bin
Binary file not shown.
Binary file added resources/D9UI/menu0702.bin
Binary file not shown.
Binary file added resources/D9UI/menu0703.bin
Binary file not shown.
Binary file added resources/D9UI/menu0704.bin
Binary file not shown.
Binary file added resources/D9UI/menu0800.bin
Binary file not shown.
Binary file added resources/D9UI/menu0801.bin
Binary file not shown.
Binary file added resources/D9UI/menu0802.bin
Binary file not shown.
Binary file added resources/D9UI/menu0803.bin
Binary file not shown.
Binary file added resources/D9UI/menu0804.bin
Binary file not shown.
Binary file added resources/D9UI/menu0805.bin
Binary file not shown.
Binary file added resources/D9UI/menu0806.bin
Binary file not shown.
Binary file added resources/D9UI/menu0807.bin
Binary file not shown.
Binary file added resources/D9UI/menu0900.bin
Binary file not shown.
Binary file added resources/D9UI/menu0901.bin
Binary file not shown.
Binary file added resources/D9UI/menu0902.bin
Binary file not shown.
Binary file added resources/D9UI/menu0903.bin
Binary file not shown.
Binary file added resources/D9UI/menu0904.bin
Binary file not shown.
Binary file added resources/D9UI/menu0905.bin
Binary file not shown.
Binary file added resources/D9UI/menu0906.bin
Binary file not shown.
Binary file added resources/D9UI/menu0907.bin
Binary file not shown.
Binary file added resources/D9UI/menu1000.bin
Binary file not shown.
Binary file added resources/D9UI/menu1001.bin
Binary file not shown.
Binary file added resources/D9UI/menu1002.bin
Binary file not shown.
Binary file added resources/D9UI/menu1003.bin
Binary file not shown.
Binary file added resources/D9UI/menu1004.bin
Binary file not shown.
Binary file added resources/D9UI/menu1005.bin
Binary file not shown.
Binary file added resources/D9UI/menu1006.bin
Binary file not shown.
Binary file added resources/D9UI/menu1007.bin
Binary file not shown.
Binary file added resources/D9UI/menu1100.bin
Binary file not shown.
Binary file added resources/D9UI/menu1101.bin
Binary file not shown.
Binary file added resources/D9UI/menu1102.bin
Binary file not shown.
Binary file added resources/D9UI/menu1103.bin
Binary file not shown.
Binary file added resources/D9UI/menu1104.bin
Binary file not shown.
Binary file added resources/D9UI/menu1105.bin
Binary file not shown.
Binary file added resources/D9UI/menu1200.bin
Binary file not shown.
Binary file added resources/D9UI/menu1201.bin
Binary file not shown.
Binary file added resources/D9UI/menu1202.bin
Binary file not shown.
Binary file added resources/D9UI/menu1203.bin
Binary file not shown.
Binary file added resources/D9UI/menu1204.bin
Binary file not shown.
Binary file added resources/D9UI/menu1205.bin
Binary file not shown.
Binary file added resources/D9UI/menu1206.bin
Binary file not shown.
Binary file added resources/D9UI/menu1207.bin
Binary file not shown.
Binary file added resources/D9UI/menu1208.bin
Binary file not shown.
Binary file added resources/D9UI/menu1209.bin
Binary file not shown.
Binary file added resources/D9UI/menu1210.bin
Binary file not shown.
Binary file added resources/D9UI/menu1300.bin
Binary file not shown.
Binary file added resources/D9UI/menu1301.bin
Binary file not shown.
Binary file added resources/D9UI/menu1302.bin
Binary file not shown.
Binary file added resources/D9UI/menu1303.bin
Binary file not shown.
Binary file added resources/D9UI/menu1304.bin
Binary file not shown.
Binary file added resources/D9UI/menu1305.bin
Binary file not shown.
Binary file added resources/D9UI/menu1306.bin
Binary file not shown.
Binary file added resources/D9UI/menu1307.bin
Binary file not shown.
Binary file added resources/D9UI/menu1308.bin
Binary file not shown.
Binary file added resources/D9UI/menu1309.bin
Binary file not shown.
Binary file added resources/D9UI/menu1310.bin
Binary file not shown.
Binary file added resources/D9UI/menu1400.bin
Binary file not shown.
Binary file added resources/D9UI/menu1401.bin
Binary file not shown.
Binary file added resources/D9UI/menu1402.bin
Binary file not shown.
Binary file added resources/D9UI/menu1403.bin
Binary file not shown.
Binary file added resources/D9UI/menu1404.bin
Binary file not shown.
Binary file added resources/D9UI/menu1405.bin
Binary file not shown.
Binary file added resources/D9UI/menu1406.bin
Binary file not shown.
Binary file added resources/D9UI/menu1407.bin
Binary file not shown.
Binary file added resources/D9UI/menu1408.bin
Binary file not shown.
Binary file added resources/D9UI/menu1409.bin
Binary file not shown.
Binary file added resources/D9UI/menu1410.bin
Binary file not shown.
Binary file added resources/D9UI/menu1500.bin
Binary file not shown.
Binary file added resources/D9UI/menu1501.bin
Binary file not shown.
Binary file added resources/D9UI/menu1502.bin
Binary file not shown.
Binary file added resources/D9UI/menu1503.bin
Binary file not shown.
Binary file added resources/D9UI/menu1504.bin
Binary file not shown.
Binary file added resources/D9UI/menu1505.bin
Binary file not shown.
Binary file added resources/D9UI/menu1506.bin
Binary file not shown.
Binary file added resources/D9UI/menu1507.bin
Binary file not shown.
Binary file added resources/D9UI/menu1508.bin
Binary file not shown.
Binary file added resources/D9UI/menu1509.bin
Binary file not shown.
Binary file added resources/D9UI/menu1510.bin
Binary file not shown.
Binary file added resources/D9UI/menu1600.bin
Binary file not shown.
Binary file added resources/D9UI/menu1601.bin
Binary file not shown.
Binary file added resources/D9UI/menu1602.bin
Binary file not shown.
Binary file added resources/D9UI/menu1603.bin
Binary file not shown.
Binary file added resources/D9UI/menu1604.bin
Binary file not shown.
Binary file added resources/D9UI/menu1700.bin
Binary file not shown.
Binary file added resources/D9UI/menu1701.bin
Binary file not shown.
Binary file added resources/D9UI/menu1702.bin
Binary file not shown.
Binary file added resources/D9UI/menu1703.bin
Binary file not shown.
Binary file added resources/D9UI/menu1704.bin
Binary file not shown.
Binary file added resources/D9UI/progress.bin
Binary file not shown.
Binary file added resources/D9UI/unmount.bin
Binary file not shown.
1 change: 1 addition & 0 deletions source/draw.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#define COLOR_BLACK RGB(0x00, 0x00, 0x00)
#define COLOR_WHITE RGB(0xFF, 0xFF, 0xFF)
#define COLOR_TRANSPARENT RGB(0xFF, 0x00, 0xEF) // otherwise known as 'super fuchsia'
#define COLOR_FBLUE RGB(0x26, 0x60, 0x95) // matches the menu gfx text color

#ifndef USE_THEME
#define STD_COLOR_BG COLOR_BLACK
Expand Down
8 changes: 8 additions & 0 deletions source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
#include "decryptor/selftest.h"
#include "decryptor/xorpad.h"

#ifdef USE_THEME
#include "theme.h"
#endif

#define SUBMENU_START 6

MenuInfo menu[] =
Expand Down Expand Up @@ -298,8 +302,12 @@ u32 InitializeD9()

if (InitFS()) {
Debug("Initializing SD card... success");
#ifdef USE_THEME
LoadThemeGfx(GFX_LOGO_B, false);
#else
FileGetData("d9logo.bin", BOT_SCREEN0, 320 * 240 * 3, 0);
memcpy(BOT_SCREEN1, BOT_SCREEN0, 320 * 240 * 3);
#endif
SetupSector0x96Key0x11(); // Sector0x96 key - no effect on error level
if (SetupTwlKey0x03() != 0) // TWL KeyX / KeyY
errorlevel = 2;
Expand Down
6 changes: 3 additions & 3 deletions source/theme.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ void LoadThemeGfxLogo(void) {
LoadThemeGfx(GFX_LOGO, LOGO_TOP);
#if defined LOGO_TEXT_X && defined LOGO_TEXT_Y
u32 emunand_state = CheckEmuNand();
DrawStringF(LOGO_TEXT_X, LOGO_TEXT_Y - 0, LOGO_TOP, "SD card: %lluMB/%lluMB & %s", RemainingStorageSpace() / 1024 / 1024, TotalStorageSpace() / 1024 / 1024, (emunand_state == EMUNAND_READY) ? "EmuNAND ready" : (emunand_state == EMUNAND_GATEWAY) ? "GW EmuNAND" : (emunand_state == EMUNAND_REDNAND) ? "RedNAND" : (emunand_state > 3) ? "MultiNAND" : "no EmuNAND");
DrawStringF(LOGO_TEXT_X, LOGO_TEXT_Y - 10, LOGO_TOP, "Game directory: %s", GAME_DIR);
DrawStringF(LOGO_TEXT_X, LOGO_TEXT_Y - 8, LOGO_TOP, "SD card: %lluMB/%lluMB & %s", RemainingStorageSpace() / 1024 / 1024, TotalStorageSpace() / 1024 / 1024, (emunand_state == EMUNAND_READY) ? "EmuNAND ready" : (emunand_state == EMUNAND_GATEWAY) ? "GW EmuNAND" : (emunand_state == EMUNAND_REDNAND) ? "RedNAND" : (emunand_state > 3) ? "MultiNAND" : "no EmuNAND");
DrawStringF(LOGO_TEXT_X + 56, LOGO_TEXT_Y - 28, LOGO_TOP, "Game directory: %s", GAME_DIR);
#ifdef WORK_DIR
if (DirOpen(WORK_DIR)) {
DrawStringF(LOGO_TEXT_X, LOGO_TEXT_Y - 20, LOGO_TOP, "Work directory: %s", WORK_DIR);
DrawStringF(LOGO_TEXT_X + 48, LOGO_TEXT_Y - 18, LOGO_TOP, "Work directory: %s", WORK_DIR);
DirClose();
}
#endif
Expand Down
7 changes: 4 additions & 3 deletions source/theme.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#define GFX_DANGER_S "danger_s.bin"
#define GFX_DEBUG_BG "debug_bg.bin"
#define GFX_LOGO "logo.bin"
#define GFX_LOGO_B "logo_b.bin"

#define COLOR_RED RGB(0xFF, 0x00, 0x00)
#define COLOR_GREEN RGB(0x00, 0xFF, 0x00)
Expand All @@ -20,16 +21,16 @@
#define COLOR_PURPLE RGB(0x66, 0x00, 0xFF)

#define LOGO_TOP true
#define LOGO_TEXT_X 10
#define LOGO_TEXT_X 50
#define LOGO_TEXT_Y SCREEN_HEIGHT - 10
#define LOGO_COLOR_BG COLOR_TRANSPARENT
#define LOGO_COLOR_FONT COLOR_WHITE
#define LOGO_COLOR_FONT COLOR_FBLUE

#define ALT_PROGRESS // use alternative progress indicator if defined
#define PRG_COLOR_BG LOGO_COLOR_BG
#define PRG_COLOR_FONT LOGO_COLOR_FONT
#define PRG_START_X 20
#define PRG_START_Y 10
#define PRG_START_Y 210
#define PRG_BARWIDTH 280 // must be multiple of 8

#define STD_COLOR_BG LOGO_COLOR_BG
Expand Down

0 comments on commit 5f9e490

Please sign in to comment.