-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ddfd63e
commit 54f08d4
Showing
48 changed files
with
401 additions
and
551 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
Submodule Universal-Core
updated
5 files
+5 −17 | gui.cpp | |
+5 −0 | gui.hpp | |
+5 −4 | keyboard.cpp | |
+2 −2 | keyboard.hpp | |
+0 −37 | screenCommon.hpp |
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 |
---|---|---|
@@ -0,0 +1,79 @@ | ||
/* | ||
* This file is part of Universal-Updater | ||
* Copyright (C) 2019-2021 Universal-Team | ||
* | ||
* 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 | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* Additional Terms 7.b and 7.c of GPLv3 apply to this file: | ||
* * Requiring preservation of specified reasonable legal notices or | ||
* author attributions in that material or in the Appropriate Legal | ||
* Notices displayed by works containing it. | ||
* * Prohibiting misrepresentation of the origin of that material, | ||
* or requiring that modified versions of such material be marked in | ||
* reasonable ways as different from the original version. | ||
*/ | ||
|
||
#ifndef _PLATFORM_3DS_HPP | ||
#define _PLATFORM_3DS_HPP | ||
|
||
#include <3ds.h> | ||
|
||
/* Include Definitions for Universal-Updater here. */ | ||
#define CONFIG_PATH "sdmc:/3ds/Universal-Updater/Config.json" | ||
#define _STORE_PATH "sdmc:/3ds/Universal-Updater/stores/" | ||
#define _SHORTCUT_PATH "sdmc:/3ds/Universal-Updater/shortcuts/" | ||
#define THEME_JSON "sdmc:/3ds/Universal-Updater/Themes.json" | ||
|
||
#define SHEET_PATH_KEY "sheet" | ||
#define SHEET_URL_KEY "sheetURL" | ||
|
||
/* Meta data related things. */ | ||
#define _META_PATH "sdmc:/3ds/Universal-Updater/MetaData.json" | ||
#define _OLD_UPDATE_PATH "sdmc:/3ds/Universal-Updater/updates.json" | ||
|
||
#define DEFAULT_BASE_URL "https://github.com/Universal-Team/db/raw/master/docs/unistore/" | ||
#define DEFAULT_UNISTORE_NAME "universal-db.unistore" | ||
#define DEFAULT_SPRITESHEET_NAME "universal-db.t3x" | ||
#define DEFAULT_UNISTORE (DEFAULT_BASE_URL DEFAULT_UNISTORE_NAME) | ||
#define DEFAULT_SPRITESHEET (DEFAULT_BASE_URL DEFAULT_SPRITESHEET_NAME) | ||
|
||
typedef Thread ThreadPtr; | ||
|
||
namespace Platform { | ||
inline void ScanKeys(void) { return hidScanInput(); } | ||
inline u32 KeysDown(void) { return hidKeysDown(); } | ||
inline u32 KeysDownRepeat(void) { return hidKeysDownRepeat(); } | ||
inline void TouchRead(touchPosition *data) { hidTouchRead(data); } | ||
|
||
inline bool MainLoop() { return aptMainLoop(); } | ||
inline void waitForVBlank(void) { return gspWaitForVBlank(); } | ||
inline void AllowExit(bool allow) { return aptSetHomeAllowed(allow); } | ||
|
||
inline int ThreadJoin(ThreadPtr t, u64 timeout_ns) { return threadJoin(t, timeout_ns); } | ||
inline ThreadPtr CreateThread(ThreadFunc entrypoint) { | ||
int32_t Prio = 0; | ||
svcGetThreadPriority(&Prio, CUR_THREAD_HANDLE); | ||
return threadCreate(entrypoint, NULL, 64 * 1024, Prio - 1, -2, false); | ||
} | ||
|
||
void Initialize(char *ARGV[]); | ||
void Exit(void); | ||
|
||
namespace WiFi { | ||
inline void Init(void) { /* NOP */ }; | ||
bool Connected(void); | ||
} | ||
}; | ||
|
||
#endif |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -29,6 +29,8 @@ | |
|
||
#include "structs.hpp" | ||
|
||
#include <array> | ||
|
||
|
||
class QueueMenu { | ||
public: | ||
|
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 |
---|---|---|
|
@@ -35,6 +35,7 @@ | |
#include "QueueMenu.hpp" | ||
#include "structs.hpp" | ||
|
||
#include <memory> | ||
|
||
class Tabs { | ||
public: | ||
|
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 was deleted.
Oops, something went wrong.
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
Submodule Universal-Core
updated
4 files
+9 −1 | include/gui.hpp | |
+0 −42 | include/screenCommon.hpp | |
+1 −1 | source/font.cpp | |
+1 −1 | source/image.cpp |
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 @@ | ||
#ifndef VERSION_HPP | ||
#define VERSION_HPP | ||
|
||
#define VER_NUMBER "-07ac62d" | ||
#define VER_NUMBER "-ddfd63e" | ||
|
||
#endif |
Oops, something went wrong.