2015-08-05 03:57:37 +02:00
|
|
|
/*
|
2016-07-05 16:05:53 +02:00
|
|
|
* This file is part of Luma3DS
|
|
|
|
* Copyright (C) 2016 Aurora Wright, TuxSH
|
|
|
|
*
|
|
|
|
* 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 of GPLv3 applies 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.
|
2015-08-05 03:57:37 +02:00
|
|
|
*/
|
|
|
|
|
2016-03-11 15:08:05 +01:00
|
|
|
#pragma once
|
2015-08-05 03:57:37 +02:00
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
2016-05-02 02:02:31 +02:00
|
|
|
#define PATTERN(a) a "_*.bin"
|
|
|
|
|
2016-07-18 16:58:29 +02:00
|
|
|
extern bool isN3DS;
|
|
|
|
|
2016-07-18 22:42:55 +02:00
|
|
|
void mountFs(void);
|
2016-05-03 20:03:37 +02:00
|
|
|
u32 fileRead(void *dest, const char *path);
|
2016-08-13 22:23:14 +02:00
|
|
|
u32 getFileSize(const char *path);
|
2016-07-18 22:42:55 +02:00
|
|
|
bool fileWrite(const void *buffer, const char *path, u32 size);
|
2016-08-28 15:50:11 +02:00
|
|
|
void fileDelete(const char *path);
|
2016-08-15 03:51:48 +02:00
|
|
|
void loadPayload(u32 pressed);
|
2016-08-30 17:09:04 +02:00
|
|
|
u32 firmRead(void *dest, u32 firmType);
|
|
|
|
|
2016-04-26 22:06:19 +02:00
|
|
|
void findDumpFile(const char *path, char *fileName);
|