mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-18 17:14:28 -04:00
Exosphere: Add API for retrieving versioning info.
This commit is contained in:
parent
bf94bf48d2
commit
ba7d0c2cb6
6 changed files with 38 additions and 5 deletions
|
@ -63,6 +63,18 @@ void __appInit(void) {
|
|||
if (R_FAILED(rc)) {
|
||||
fatalSimple(0xCAFE << 4 | 2);
|
||||
}
|
||||
|
||||
rc = splInitialize();
|
||||
if (R_FAILED(rc)) {
|
||||
fatalSimple(0xCAFE << 4 | 3);
|
||||
}
|
||||
|
||||
/* Check for exosphere API compatibility. */
|
||||
u64 exosphere_cfg;
|
||||
if (R_FAILED(splGetConfig((SplConfigItem)65000, &exosphere_cfg))) {
|
||||
fatalSimple(0xCAFE << 4 | 0xFF);
|
||||
/* TODO: Does Loader need to know about target firmware/master key revision? If so, extract from exosphere_cfg. */
|
||||
}
|
||||
}
|
||||
|
||||
void __appExit(void) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue