|
ReXGlue SDK
|
#include <rex/kernel/title_runtime.h>
Friends | |
| TitleState & | StateOf (const TitleRuntime &runtime) |
Additional Inherited Members | |
| Protected Member Functions inherited from rex::NonCopyable | |
| NonCopyable (const NonCopyable &)=delete | |
| NonCopyable & | operator= (const NonCopyable &)=delete |
Load maps guest memory and reads the image. Launch attaches the title to the graphics, UI, input and audio systems of an App and starts the main thread. Unload undoes both, so Load and Launch may run again. Tools call Load only. Only one TitleRuntime is loaded at a time.
The service accessors are valid from Load until Unload.
|
explicit |
Creates an unloaded runtime.
| image | The recompiled image the codegen header declares. |
| rex::kernel::TitleRuntime::~TitleRuntime | ( | ) |
Unloads the title when it is loaded.
|
nodiscard |
Finds the recompiled function registered at a guest address.
| KernelSettings & rex::kernel::TitleRuntime::GetKernelSettings | ( | ) | const |
| rex::memory::GuestMembase rex::kernel::TitleRuntime::GetMembase | ( | ) |
Returns the host base of the title guest memory. It is valid from Load until Unload.
| RuntimeSettings & rex::kernel::TitleRuntime::GetRuntimeSettings | ( | ) |
| u32 rex::kernel::TitleRuntime::GetTitleID | ( | ) | const |
| TitlePaths & rex::kernel::TitleRuntime::GetTitlePaths | ( | ) |
|
nodiscard |
Returns the XDBF data of the executable, which reports invalid when the executable has no XDBF section.
| rex::kernel::XLanguage rex::kernel::TitleRuntime::GetUserLanguage | ( | ) | const |
Returns the language the kernel reports. English before Load.
| bool rex::kernel::TitleRuntime::IsLoaded | ( | ) | const |
| bool rex::kernel::TitleRuntime::IsRunning | ( | ) | const |
|
nodiscard |
Attaches the title to the graphics, UI, input and audio systems of the app, freezes the settings that cannot change after launch and starts the main thread.
|
nodiscard |
Maps guest memory and loads default.xex, its modules, and its content and achievement data.
|
nodiscard |
Sets the function called on the thread that exited the title.
| callback | Function receiving the reason. A new callback replaces the earlier one. |
| void rex::kernel::TitleRuntime::SetAudioPaused | ( | bool | paused | ) |
Parks or resumes the audio worker and the XMA decoder.
| paused | True to park. |
| void rex::kernel::TitleRuntime::Unload | ( | ) |
Ends every guest thread, saves content and frees guest memory. Does nothing when not loaded. After Launch it must run on the UI thread.