Welcome Luma3DS

This commit is contained in:
Aurora
2016-04-23 01:43:11 +02:00
parent c14526068a
commit 3fd4603553
31 changed files with 28 additions and 82 deletions

View File

@@ -1,7 +1,5 @@
/*
* buttons.h
* by Aurora Wright
* Copyright (c) 2016 All Rights Reserved
*/
#pragma once

View File

@@ -1,7 +1,5 @@
/*
* config.c
* by Aurora Wright
* Copyright (c) 2016 All Rights Reserved
*/
#include "config.h"

View File

@@ -1,7 +1,5 @@
/*
* config.h
* by Aurora Wright
* Copyright (c) 2016 All Rights Reserved
*/
#pragma once

View File

@@ -1,9 +1,7 @@
/*
* crypto.c
* by Reisyukaku / Aurora Wright
* Crypto libs from http://github.com/b1l1s/ctr
*
* Copyright (c) 2016 All Rights Reserved
* Crypto libs from http://github.com/b1l1s/ctr
*/
#include "crypto.h"

View File

@@ -1,9 +1,7 @@
/*
* crypto.h
* by Reisyukaku / Aurora Wright
* Crypto libs from http://github.com/b1l1s/ctr
*
* Copyright (c) 2016 All Rights Reserved
* Crypto libs from http://github.com/b1l1s/ctr
*/
#pragma once

View File

@@ -1,9 +1,7 @@
/*
* draw.c
* by Reisyukaku / Aurora Wright
* Code to print to the screen by mid-kid @CakesFW
*
* Copyright (c) 2016 All Rights Reserved
* Code to print to the screen by mid-kid @CakesFW
*/
#include "draw.h"
@@ -41,8 +39,8 @@ void loadSplash(void)
initScreens();
//Don't delay boot if no splash image is on the SD
if(fileRead(fb->top_left, "/aurei/splash.bin", 0x46500) +
fileRead(fb->bottom, "/aurei/splashbottom.bin", 0x38400))
if(fileRead(fb->top_left, "/luma/splash.bin", 0x46500) +
fileRead(fb->bottom, "/luma/splashbottom.bin", 0x38400))
{
u64 i = 0x1400000;
while(--i) __asm("mov r0, r0"); //Less Ghetto sleep func

View File

@@ -1,9 +1,7 @@
/*
* draw.h
* by Reisyukaku / Aurora Wright
* Code to print to the screen by mid-kid @CakesFW
*
* Copyright (c) 2016 All Rights Reserved
* Code to print to the screen by mid-kid @CakesFW
*/
#pragma once

View File

@@ -1,7 +1,5 @@
/*
* emunand.c
* by Reisyukaku / Aurora Wright
* Copyright (c) 2016 All Rights Reserved
*/
#include "emunand.h"

View File

@@ -1,7 +1,5 @@
/*
* emunand.h
* by Reisyukaku / Aurora Wright
* Copyright (c) 2016 All Rights Reserved
*/
#pragma once

View File

@@ -1,7 +1,5 @@
/*
* firm.c
* by Reisyukaku / Aurora Wright
* Copyright (c) 2016 All Rights Reserved
*/
#include "firm.h"
@@ -44,7 +42,7 @@ void main(void)
mountFs();
//Attempt to read the configuration file
const char configPath[] = "/aurei/config.bin";
const char configPath[] = "/luma/config.bin";
if(fileRead(&config, configPath, 4)) needConfig = 1;
else
{
@@ -196,7 +194,7 @@ static inline void loadFirm(u32 firmType, u32 externalFirm)
/* If the conditions to load the external FIRM aren't met, or reading fails, or the FIRM
doesn't match the console, load it from CTRNAND */
if(!externalFirm || !fileRead(firm, "/aurei/firmware.bin", 0) ||
if(!externalFirm || !fileRead(firm, "/luma/firmware.bin", 0) ||
(((u32)section[2].address >> 8) & 0xFF) != (console ? 0x60 : 0x68))
{
const char *firmFolders[3][2] = {{ "00000002", "20000002" },

View File

@@ -1,7 +1,5 @@
/*
* firm.h
* by Reisyukaku / Aurora Wright
* Copyright (c) 2016 All Rights Reserved
*/
#pragma once

View File

@@ -1,7 +1,5 @@
/*
* fs.c
* by Reisyukaku / Aurora Wright
* Copyright (c) 2016 All Rights Reserved
*/
#include "fs.h"
@@ -56,7 +54,7 @@ u32 defPayloadExists(void)
DIR dir;
FILINFO info;
FRESULT result = f_findfirst(&dir, &info, "/aurei/payloads", "def_*.bin");
FRESULT result = f_findfirst(&dir, &info, "/luma/payloads", "def_*.bin");
f_closedir(&dir);

View File

@@ -1,7 +1,5 @@
/*
* fs.h
* by Reisyukaku / Aurora Wright
* Copyright (c) 2016 All Rights Reserved
*/
#pragma once

View File

@@ -1,7 +1,5 @@
/*
* loader.c
* by Aurora Wright
* Copyright (c) 2016 All Rights Reserved
*/
#include "loader.h"

View File

@@ -1,7 +1,5 @@
/*
* loader.h
* by Aurora Wright
* Copyright (c) 2016 All Rights Reserved
*/
#pragma once

View File

@@ -1,7 +1,5 @@
/*
* memory.c
* by Reisyukaku / Aurora Wright
* Copyright (c) 2016 All Rights Reserved
*
* Quick Search algorithm adapted from http://igm.univ-mlv.fr/~lecroq/string/node19.html#SECTION00190
*/

View File

@@ -1,7 +1,5 @@
/*
* memory.h
* by Reisyukaku / Aurora Wright
* Copyright (c) 2016 All Rights Reserved
*
* Quick Search algorithm adapted from http://igm.univ-mlv.fr/~lecroq/string/node19.html#SECTION00190
*/

View File

@@ -1,7 +1,5 @@
/*
* patches.c
* by Reisyukaku / Aurora Wright
* Copyright (c) 2016 All Rights Reserved
*/
#include "patches.h"

View File

@@ -1,7 +1,5 @@
/*
* patches.h
* by Reisyukaku / Aurora Wright
* Copyright (c) 2016 All Rights Reserved
*/
#pragma once

View File

@@ -1,10 +1,8 @@
/*
* screeninit.c
* by Aurora Wright
*
* Screen init code by dark_samus, bil1s, Normmatt, delebile and others.
* Screen deinit code by tiniVi.
*
* Copyright (c) 2016 All Rights Reserved
*/
#include "screeninit.h"

View File

@@ -1,10 +1,8 @@
/*
* screeninit.h
* by Aurora Wright
*
* Screen init code by dark_samus, bil1s, Normmatt, delebile and others.
* Screen deinit code by tiniVi.
*
* Copyright (c) 2016 All Rights Reserved
*/
#pragma once

View File

@@ -1,7 +1,5 @@
/*
* types.h
* by Reisyukaku
* Copyright (c) 2015 All Rights Reserved
*/
#pragma once

View File

@@ -1,7 +1,5 @@
/*
* utils.c
* by Aurora Wright
* Copyright (c) 2016 All Rights Reserved
*/
#include "utils.h"

View File

@@ -1,7 +1,5 @@
/*
* utils.h
* by Aurora Wright
* Copyright (c) 2016 All Rights Reserved
*/
#pragma once