mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-15 07:34:23 -04:00
fatal: reboot to sdmc:/atmosphere/reboot_payload.bin
This commit is contained in:
parent
c6f06e2c40
commit
031c9e545b
7 changed files with 109 additions and 11 deletions
28
stratosphere/fatal/source/fatal_payload_manager.hpp
Normal file
28
stratosphere/fatal/source/fatal_payload_manager.hpp
Normal file
|
@ -0,0 +1,28 @@
|
|||
/*
|
||||
* Copyright (c) 2018 Atmosphère-NX
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
* version 2, as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope 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/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <switch.h>
|
||||
#include <stratosphere.hpp>
|
||||
|
||||
#define IRAM_PAYLOAD_MAX_SIZE 0x30000
|
||||
#define IRAM_PAYLOAD_BASE 0x40010000ull
|
||||
|
||||
class FatalPayloadManager {
|
||||
public:
|
||||
static void LoadPayloadFromSdCard();
|
||||
static void RebootToPayload();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue