2018-09-07 16:00:13 +01:00
|
|
|
/*
|
|
|
|
* 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/>.
|
|
|
|
*/
|
|
|
|
|
2018-04-19 22:28:27 +01:00
|
|
|
#pragma once
|
|
|
|
#include <switch.h>
|
|
|
|
|
|
|
|
#include "ldr_registration.hpp"
|
|
|
|
|
|
|
|
class ContentManagement {
|
|
|
|
public:
|
2018-04-21 06:58:42 +01:00
|
|
|
static Result MountCode(u64 tid, FsStorageId sid);
|
2018-07-30 00:35:43 +01:00
|
|
|
static Result MountCodeNspOnSd(u64 tid);
|
2018-04-21 06:58:42 +01:00
|
|
|
static Result UnmountCode();
|
|
|
|
static Result MountCodeForTidSid(Registration::TidSid *tid_sid);
|
2018-04-19 22:28:27 +01:00
|
|
|
|
2018-05-08 09:59:18 +01:00
|
|
|
static Result ResolveContentPath(char *out_path, u64 tid, FsStorageId sid);
|
|
|
|
static Result RedirectContentPath(const char *path, u64 tid, FsStorageId sid);
|
|
|
|
static Result ResolveContentPathForTidSid(char *out_path, Registration::TidSid *tid_sid);
|
|
|
|
static Result RedirectContentPathForTidSid(const char *path, Registration::TidSid *tid_sid);
|
2018-05-01 23:49:20 +01:00
|
|
|
|
|
|
|
static bool HasCreatedTitle(u64 tid);
|
|
|
|
static void SetCreatedTitle(u64 tid);
|
|
|
|
static void TryMountSdCard();
|
2018-04-19 22:28:27 +01:00
|
|
|
};
|