mirror of
https://github.com/Atmosphere-NX/Atmosphere-libs.git
synced 2025-06-29 14:32:58 +02:00
Update firmware version, add loader result
This commit is contained in:
parent
281534d9f8
commit
7e0ed3b38f
@ -26,7 +26,8 @@ enum FirmwareVersion : u32 {
|
||||
FirmwareVersion_600 = 5,
|
||||
FirmwareVersion_700 = 6,
|
||||
FirmwareVersion_800 = 7,
|
||||
FirmwareVersion_Current = FirmwareVersion_800,
|
||||
FirmwareVersion_810 = 8,
|
||||
FirmwareVersion_Current = FirmwareVersion_810,
|
||||
FirmwareVersion_Max = 32,
|
||||
};
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
#pragma once
|
||||
#include <switch.h>
|
||||
|
||||
@ -28,6 +28,7 @@ static constexpr Result ResultLoaderInvalidPath = MAKERESULT(Module_Lo
|
||||
static constexpr Result ResultLoaderTooManyProcesses = MAKERESULT(Module_Loader, 7);
|
||||
static constexpr Result ResultLoaderProcessNotRegistered = MAKERESULT(Module_Loader, 8);
|
||||
static constexpr Result ResultLoaderInvalidProgramId = MAKERESULT(Module_Loader, 9);
|
||||
static constexpr Result ResultLoaderInvalidVersion = MAKERESULT(Module_Loader, 10);
|
||||
|
||||
static constexpr Result ResultLoaderInsufficientAddressSpace = MAKERESULT(Module_Loader, 51);
|
||||
static constexpr Result ResultLoaderInvalidNro = MAKERESULT(Module_Loader, 52);
|
||||
|
@ -70,9 +70,11 @@ static void _CacheValues(void)
|
||||
g_firmware_version = FirmwareVersion_700;
|
||||
break;
|
||||
case AtmosphereTargetFirmware_800:
|
||||
case AtmosphereTargetFirmware_810:
|
||||
g_firmware_version = FirmwareVersion_800;
|
||||
break;
|
||||
case AtmosphereTargetFirmware_810:
|
||||
g_firmware_version = FirmwareVersion_810;
|
||||
break;
|
||||
default:
|
||||
std::abort();
|
||||
break;
|
||||
@ -131,6 +133,11 @@ void SetFirmwareVersionForLibnx() {
|
||||
minor = 0;
|
||||
micro = 0;
|
||||
break;
|
||||
case FirmwareVersion_810:
|
||||
major = 8;
|
||||
minor = 1;
|
||||
micro = 0;
|
||||
break;
|
||||
default:
|
||||
std::abort();
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user