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