-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Thomas Rohloff <[email protected]>
- Loading branch information
Showing
22 changed files
with
22 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/*************************************************************************** | ||
* This file is part of NUSspli. * | ||
* Copyright (c) 2020-2022 V10lator <[email protected]> * | ||
* Copyright (c) 2020-2024 V10lator <[email protected]> * | ||
* Copyright (c) 2022 Xpl0itU <[email protected]> * | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
|
@@ -31,12 +31,7 @@ | |
#include <coreinit/mcp.h> | ||
#pragma GCC diagnostic pop | ||
|
||
#ifndef NUSSPLI_LITE | ||
#define CONFIG_PATH NUSDIR_SD "NUSspli.txt" | ||
#else | ||
#define CONFIG_PATH NUSDIR_SD "NUSspli-Lite.txt" | ||
#endif | ||
|
||
#define CONFIG_PATH NUSDIR_SD "NUSspli.txt" | ||
#define TITLE_KEY_URL_MAX_SIZE 1024 | ||
|
||
#ifdef __cplusplus | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/*************************************************************************** | ||
* This file is part of NUSspli. * | ||
* Copyright (c) 2020-2022 V10lator <[email protected]> * | ||
* Copyright (c) 2020-2024 V10lator <[email protected]> * | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
|
@@ -93,17 +93,13 @@ const char *cfwValid() | |
if(s == MOCHA_RESULT_UNSUPPORTED_API_VERSION || s == MOCHA_RESULT_UNSUPPORTED_COMMAND) | ||
return printCfwError("Can't dummy load RPX: %s", Mocha_GetStatusStr(s)); | ||
|
||
#ifndef NUSSPLI_LITE | ||
if(!isChannel()) | ||
{ | ||
#endif | ||
char path[FS_MAX_PATH]; | ||
RPXLoaderStatus rs = RPXLoader_GetPathOfRunningExecutable(path, FS_MAX_PATH); | ||
if(rs != RPX_LOADER_RESULT_SUCCESS) | ||
return printCfwError("RPXLoader error: %s", RPXLoader_GetStatusStr(rs)); | ||
#ifndef NUSSPLI_LITE | ||
} | ||
#endif | ||
|
||
for(; oi < 6; ++oi) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/*************************************************************************** | ||
* This file is part of NUSspli. * | ||
* Copyright (c) 2020-2022 V10lator <[email protected]> * | ||
* Copyright (c) 2020-2024 V10lator <[email protected]> * | ||
* Copyright (c) 2022 Xpl0itU <[email protected]> * | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
|
@@ -77,10 +77,8 @@ static bool autoResume = true; | |
static Swkbd_LanguageType lang = Swkbd_LanguageType__Invalid; | ||
static Swkbd_LanguageType sysLang; | ||
static Swkbd_LanguageType menuLang = Swkbd_LanguageType__English; | ||
#ifndef NUSSPLI_LITE | ||
static bool dlToUSB = true; | ||
static MCPRegion regionSetting = MCP_REGION_EUROPE | MCP_REGION_USA | MCP_REGION_JAPAN; | ||
#endif | ||
static NOTIF_METHOD notifSetting = NOTIF_METHOD_RUMBLE | NOTIF_METHOD_LED; | ||
|
||
static inline void intSetMenuLanguage() | ||
|
@@ -249,7 +247,6 @@ void initConfig() | |
changed = true; | ||
} | ||
|
||
#ifndef NUSSPLI_LITE | ||
configEntry = json_object_get(json, "Region"); | ||
if(configEntry != NULL && json_is_string(configEntry)) | ||
{ | ||
|
@@ -276,7 +273,6 @@ void initConfig() | |
addToScreenLog("Download to setting not found!"); | ||
changed = true; | ||
} | ||
#endif | ||
|
||
configEntry = json_object_get(json, "Notification method"); | ||
if(configEntry != NULL && json_is_string(configEntry)) | ||
|
@@ -403,14 +399,12 @@ void saveConfig(bool force) | |
value = json_string(getLanguageString(lang)); | ||
if(setValue(config, "Keyboard language", value)) | ||
{ | ||
#ifndef NUSSPLI_LITE | ||
value = json_string(getFormattedRegion(getRegion())); | ||
if(setValue(config, "Region", value)) | ||
{ | ||
value = dlToUSB ? json_true() : json_false(); | ||
if(setValue(config, "Download to USB", value)) | ||
{ | ||
#endif | ||
value = json_string(getNotificationString(getNotificationMethod())); | ||
if(setValue(config, "Notification method", value)) | ||
{ | ||
|
@@ -438,10 +432,8 @@ void saveConfig(bool force) | |
} | ||
} | ||
} | ||
#ifndef NUSSPLI_LITE | ||
} | ||
} | ||
#endif | ||
} | ||
} | ||
} | ||
|
@@ -500,7 +492,6 @@ const char *getFormattedRegion(MCPRegion region) | |
return region & MCP_REGION_JAPAN ? SET_JPN : "Unknown"; | ||
} | ||
|
||
#ifndef NUSSPLI_LITE | ||
bool dlToUSBenabled() | ||
{ | ||
return dlToUSB; | ||
|
@@ -528,7 +519,6 @@ void setRegion(MCPRegion region) | |
regionSetting = region; | ||
changed = true; | ||
} | ||
#endif | ||
|
||
Swkbd_LanguageType getMenuLanguage() | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/*************************************************************************** | ||
* This file is part of NUSspli. * | ||
* Copyright (c) 2019-2020 Pokes303 * | ||
* Copyright (c) 2020-2022 V10lator <[email protected]> * | ||
* Copyright (c) 2020-2024 V10lator <[email protected]> * | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
|
@@ -147,9 +147,7 @@ static void innerMain() | |
checkStacks("main()"); | ||
if(!updateCheck()) | ||
{ | ||
#ifndef NUSSPLI_LITE | ||
initFSSpace(); | ||
#endif | ||
checkStacks("main"); | ||
mainMenu(); // main loop | ||
checkStacks("main"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/*************************************************************************** | ||
* This file is part of NUSspli. * | ||
* Copyright (c) 2020-2022 V10lator <[email protected]> * | ||
* Copyright (c) 2020-2024 V10lator <[email protected]> * | ||
* Copyright (c) 2022 Xpl0itU <[email protected]> * | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
|
@@ -35,11 +35,7 @@ | |
#include <coreinit/mcp.h> | ||
#pragma GCC diagnostic pop | ||
|
||
#ifndef NUSSPLI_LITE | ||
#define ENTRY_COUNT 4 | ||
#else | ||
#define ENTRY_COUNT 3 | ||
#endif | ||
|
||
static int cursorPos = 0; | ||
|
||
|
@@ -68,12 +64,10 @@ static void drawConfigMenu() | |
strcat(toScreen, localise(getNotificationString(getNotificationMethod()))); | ||
textToFrame(3, 4, toScreen); | ||
|
||
#ifndef NUSSPLI_LITE | ||
strcpy(toScreen, localise("Region:")); | ||
strcat(toScreen, " "); | ||
strcat(toScreen, localise(getFormattedRegion(getRegion()))); | ||
textToFrame(4, 4, toScreen); | ||
#endif | ||
|
||
lineToFrame(MAX_LINES - 2, SCREEN_COLOR_WHITE); | ||
textToFrame(MAX_LINES - 1, ALIGNED_CENTER, localise("Press " BUTTON_B " to return")); | ||
|
@@ -193,7 +187,6 @@ static inline void switchNotificationMethod() | |
setNotificationMethod(m); | ||
} | ||
|
||
#ifndef NUSSPLI_LITE | ||
static inline void switchRegion() | ||
{ | ||
MCPRegion reg = getRegion(); | ||
|
@@ -235,7 +228,6 @@ static inline void switchRegion() | |
|
||
setRegion(reg); | ||
} | ||
#endif | ||
|
||
void configMenu() | ||
{ | ||
|
@@ -276,11 +268,9 @@ void configMenu() | |
case 3: | ||
switchNotificationMethod(); | ||
break; | ||
#ifndef NUSSPLI_LITE | ||
case 4: | ||
switchRegion(); | ||
break; | ||
#endif | ||
} | ||
|
||
redraw = true; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/*************************************************************************** | ||
* This file is part of NUSspli. * | ||
* Copyright (c) 2019-2020 Pokes303 * | ||
* Copyright (c) 2020-2022 V10lator <[email protected]> * | ||
* Copyright (c) 2020-2024 V10lator <[email protected]> * | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
|
@@ -17,8 +17,6 @@ | |
* with this program; if not, If not, see <http://www.gnu.org/licenses/>. * | ||
***************************************************************************/ | ||
|
||
#ifndef NUSSPLI_LITE | ||
|
||
#include <wut-fixups.h> | ||
|
||
#include <stdint.h> | ||
|
@@ -63,5 +61,3 @@ bool downloadMenu() | |
|
||
return false; | ||
} | ||
|
||
#endif // ifndef NUSSPLI_LITE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/*************************************************************************** | ||
* This file is part of NUSspli. * | ||
* Copyright (c) 2020-2022 V10lator <[email protected]> * | ||
* Copyright (c) 2020-2024 V10lator <[email protected]> * | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
|
@@ -49,10 +49,8 @@ static bool addToOpQueue(const TitleEntry *entry, const char *dir, const TMD *tm | |
return false; | ||
|
||
titleInfo->tmd = (TMD *)tmd; | ||
#ifndef NUSSPLI_LITE | ||
titleInfo->rambuf = NULL; | ||
titleInfo->operation = OPERATION_INSTALL; | ||
#endif | ||
titleInfo->entry = entry; | ||
strcpy(titleInfo->folderName, dir); | ||
titleInfo->dlDev = fromDev; | ||
|
Oops, something went wrong.