mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-12 17:58:29 +12:00
Add all the files
This commit is contained in:
parent
e3db07a16a
commit
d60742f52b
1445 changed files with 430238 additions and 0 deletions
44
src/Cafe/CafeSystem.h
Normal file
44
src/Cafe/CafeSystem.h
Normal file
|
@ -0,0 +1,44 @@
|
|||
#pragma once
|
||||
#include "Cafe/OS/RPL/rpl.h"
|
||||
#include "util/helpers/Semaphore.h"
|
||||
#include "Cafe/TitleList/TitleId.h"
|
||||
#include "config/CemuConfig.h"
|
||||
|
||||
namespace CafeSystem
|
||||
{
|
||||
enum class STATUS_CODE
|
||||
{
|
||||
SUCCESS,
|
||||
INVALID_RPX,
|
||||
UNABLE_TO_MOUNT, // failed to mount through TitleInfo (most likely caused by an invalid or outdated path)
|
||||
//BAD_META_DATA, - the title list only stores titles with valid meta, so this error code is impossible
|
||||
};
|
||||
|
||||
void Initialize();
|
||||
STATUS_CODE PrepareForegroundTitle(TitleId titleId);
|
||||
STATUS_CODE PrepareForegroundTitleFromStandaloneRPX(const fs::path& path);
|
||||
void LaunchForegroundTitle();
|
||||
bool IsTitleRunning();
|
||||
|
||||
TitleId GetForegroundTitleId();
|
||||
uint16 GetForegroundTitleVersion();
|
||||
CafeConsoleRegion GetForegroundTitleRegion();
|
||||
CafeConsoleRegion GetPlatformRegion();
|
||||
std::string GetForegroundTitleName();
|
||||
std::string GetForegroundTitleArgStr();
|
||||
|
||||
void ShutdownTitle();
|
||||
|
||||
std::string GetMlcStoragePath(TitleId titleId);
|
||||
void MlcStorageMountAllTitles();
|
||||
|
||||
std::string GetInternalVirtualCodeFolder();
|
||||
|
||||
uint32 GetRPXHashBase();
|
||||
uint32 GetRPXHashUpdated();
|
||||
};
|
||||
|
||||
extern RPLModule* applicationRPX;
|
||||
|
||||
extern std::atomic_bool g_isGameRunning;
|
||||
extern std::atomic_bool g_isGPUInitFinished;
|
Loading…
Add table
Add a link
Reference in a new issue