Add logo (made by THEGUY)

also updated readme
This commit is contained in:
Robz8 2018-10-04 19:56:37 -06:00
parent 4ed92df134
commit 3606c2b4c8
9 changed files with 53 additions and 8 deletions

View File

@ -1,8 +1,13 @@
# GodMode9i
# ![GodMode9i](https://github.com/RocketRobz/GodMode9i/blob/master/resources/logo.png)
_A full access file browser for the DS and DSi consoles_ :godmode:
GodMode9i is a full access file browser for the Nintendo DS and DSi consoles, similar to d0k3's GodMode9 for Nintendo 3DS, giving you access to your SD card, and the flashcard's microSD card (check below for supported flashcards in DSi mode). You can copy, delete, rename files and create folders.
## Supported flashcards in DSi mode (from NAND/SD card)
* Acekard 2(i)
* R4 Ultra (r4ultra.com)
* R4 Ultra (r4ultra.com)
## Credits
* d0k3: Original GM9 app
* devkitPro: devkitARM, libnds, and original nds-hb-menu code
* THEGUY: GM9i logo

View File

@ -32,7 +32,7 @@
#include "driveMenu.h"
#include "file_browse.h"
//#include "iconTitle.h"
#include "gm9i_logo.h"
char titleName[32] = {" "};
@ -40,6 +40,8 @@ int screenMode = 0;
bool applaunch = false;
static int bg3;
using namespace std;
//---------------------------------------------------------------------------------
@ -65,22 +67,51 @@ int main(int argc, char **argv) {
int pathLen;
std::string filename;
//iconTitleInit();
snprintf(titleName, sizeof(titleName), "GodMode9i v%i.%i.%i", 0, 1, 0);
// initialize video mode
videoSetMode(MODE_4_2D);
// initialize VRAM banks
vramSetPrimaryBanks(VRAM_A_MAIN_BG,
VRAM_B_MAIN_SPRITE,
VRAM_C_LCD,
VRAM_D_LCD);
// Subscreen as a console
videoSetMode(MODE_0_2D);
vramSetBankG(VRAM_G_MAIN_BG);
videoSetModeSub(MODE_0_2D);
vramSetBankH(VRAM_H_SUB_BG);
consoleInit(NULL, 0, BgType_Text4bpp, BgSize_T_256x256, 15, 0, true, true);
consoleInit(NULL, 0, BgType_Text4bpp, BgSize_T_256x256, 15, 0, false, true);
// Display GM9i logo
bg3 = bgInit(3, BgType_Bmp16, BgSize_B16_256x256, 1, 0);
bgSetScroll(bg3, 0, 0);
decompress(gm9i_logoBitmap, bgGetGfxPtr(bg3), LZ77Vram);
printf ("\x1b[1;1H");
printf(titleName);
printf ("\x1b[2;1H");
printf ("------------------------------");
printf ("\x1b[3;1H");
printf ("https:/github.com/");
printf ("\x1b[4;11H");
printf ("RocketRobz/GodMode9i");
// Display for 2 seconds
for (int i = 0; i < 60*2; i++) {
swiWaitForVBlank();
}
if (!fatInitDefault()) {
consoleClear();
iprintf ("fatinitDefault failed!\n");
stop();
}
// Top screen as a console
videoSetMode(MODE_0_2D);
vramSetBankG(VRAM_G_MAIN_BG);
keysSetRepeat(25,5);
while(1) {

9
gfx/gm9i_logo.grit Normal file
View File

@ -0,0 +1,9 @@
-W3
# disable alpha and set opaque bit for all pixels
-gT!
# use lz77 compression
-gzl
# 16 bit bitmap
-gB16

BIN
gfx/gm9i_logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

BIN
resources/DS logo.xcf Normal file

Binary file not shown.

BIN
resources/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB