mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-04-07 17:01:28 -06:00
Also revert PCH reuse for everything but MSVC. Other compilers/platforms have limitations that make reused PCH a bit too fragile. I got it to work but only after forcing certain flags globally (like -pthread) and I dont think its a good idea to do that
63 lines
1.6 KiB
C++
63 lines
1.6 KiB
C++
#pragma once
|
|
#include "Cafe/OS/RPL/rpl.h"
|
|
#include "Cafe/TitleList/TitleId.h"
|
|
|
|
enum class CosCapabilityBits : uint64;
|
|
enum class CosCapabilityGroup : uint32;
|
|
enum class CafeConsoleRegion;
|
|
|
|
namespace CafeSystem
|
|
{
|
|
class SystemImplementation
|
|
{
|
|
public:
|
|
virtual void CafeRecreateCanvas() = 0;
|
|
};
|
|
|
|
enum class PREPARE_STATUS_CODE
|
|
{
|
|
SUCCESS,
|
|
INVALID_RPX,
|
|
UNABLE_TO_MOUNT, // failed to mount through TitleInfo (most likely caused by an invalid or outdated path)
|
|
};
|
|
|
|
void Initialize();
|
|
void SetImplementation(SystemImplementation* impl);
|
|
void Shutdown();
|
|
|
|
PREPARE_STATUS_CODE PrepareForegroundTitle(TitleId titleId);
|
|
PREPARE_STATUS_CODE PrepareForegroundTitleFromStandaloneRPX(const fs::path& path);
|
|
void LaunchForegroundTitle();
|
|
bool IsTitleRunning();
|
|
|
|
bool GetOverrideArgStr(std::vector<std::string>& args);
|
|
void SetOverrideArgs(std::span<std::string> args);
|
|
void UnsetOverrideArgs();
|
|
|
|
TitleId GetForegroundTitleId();
|
|
uint16 GetForegroundTitleVersion();
|
|
uint32 GetForegroundTitleSDKVersion();
|
|
CafeConsoleRegion GetForegroundTitleRegion();
|
|
CafeConsoleRegion GetPlatformRegion();
|
|
std::string GetForegroundTitleName();
|
|
std::string GetForegroundTitleArgStr();
|
|
uint32 GetForegroundTitleOlvAccesskey();
|
|
CosCapabilityBits GetForegroundTitleCosCapabilities(CosCapabilityGroup group);
|
|
|
|
void ShutdownTitle();
|
|
|
|
std::string GetMlcStoragePath(TitleId titleId);
|
|
void MlcStorageMountAllTitles();
|
|
|
|
std::string GetInternalVirtualCodeFolder();
|
|
|
|
uint32 GetRPXHashBase();
|
|
uint32 GetRPXHashUpdated();
|
|
|
|
void RequestRecreateCanvas();
|
|
};
|
|
|
|
extern RPLModule* applicationRPX;
|
|
|
|
extern std::atomic_bool g_isGPUInitFinished;
|