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);
|
|
|
|
static Result UnmountCode();
|
|
|
|
static Result MountCodeForTidSid(Registration::TidSid *tid_sid);
|
2018-04-19 22:28:27 +01:00
|
|
|
|
2018-04-21 06:58:42 +01:00
|
|
|
static Result GetContentPath(char *out_path, u64 tid, FsStorageId sid);
|
|
|
|
static Result SetContentPath(const char *path, u64 tid, FsStorageId sid);
|
|
|
|
static Result GetContentPathForTidSid(char *out_path, Registration::TidSid *tid_sid);
|
|
|
|
static Result SetContentPathForTidSid(const char *path, Registration::TidSid *tid_sid);
|
2018-04-19 22:28:27 +01:00
|
|
|
};
|