ReXGlue SDK
Toggle main menu visibility
Loading...
Searching...
No Matches
runtime_settings.h
Go to the documentation of this file.
1
10
11
#pragma once
12
13
#include <
rex/platform.h
>
14
#include <
rex/setting.h
>
15
#include <
rex/types.h
>
16
17
namespace
rex::kernel
{
18
19
class
REX_KERNEL_API
RuntimeSettings final :
public
SettingOwner
{
20
public
:
21
REX_SETTING(u32, heap_size_mb, 256,
"First shim heap segment in MiB"
,
Range
{4, 2048},
22
kUntilLaunch);
23
REX_SETTING(u32, title_memory_mb, 480,
"Title memory in MiB, 0 removes the cap"
,
Range
{0, 512},
24
kUntilLaunch);
25
REX_SETTING(
bool
, writable_code_segments,
false
,
"Load code and read only data writable"
,
26
kUntilLaunch);
27
REX_SETTING(
bool
, protect_zero,
true
,
"The first 64 KiB fault on any access"
, kUntilLaunch);
28
REX_SETTING(
bool
, protect_on_release,
false
,
"Released memory faults on access"
, kUntilLaunch);
29
REX_SETTING(
bool
, scribble_heap,
false
,
"Fill new heap memory with a pattern"
, kUntilLaunch);
30
REX_SETTING(
bool
, ignore_thread_priorities,
true
,
"Ignore guest thread priorities"
);
31
REX_SETTING(
bool
, ignore_thread_affinities,
true
,
"Ignore guest thread affinities"
);
32
REX_SETTING(
bool
, ffmpeg_verbose,
false
,
"Log FFmpeg messages for XMA decoding"
);
33
REX_SETTING(u32, terminate_timeout_ms, 2000,
"Time Unload waits for guest threads to exit"
,
34
Range
{0, 60000});
35
36
RuntimeSettings();
37
};
38
39
}
// namespace rex::kernel
rex::SettingOwner::SettingOwner
SettingOwner(std::string_view scope)
rex::kernel
Definition
export.h:24
platform.h
Platform flags, packing macros and export markers.
REX_KERNEL_API
#define REX_KERNEL_API
Definition
platform.h:297
setting.h
Typed settings and the owners that declare them.
rex::Range
Definition
setting.h:78
types.h
Integer types, byte order wrappers and size literals.
rex
kernel
runtime_settings.h
Generated by
1.18.0