MCPcopy Create free account
hub / github.com/InoriRus/Kyty / Load

Function Load

source/emulator/src/Config.cpp:85–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85void Load(const Scripts::ScriptVar& cfg)
86{
87 LoadInt(g_config->screen_width, cfg, U"ScreenWidth");
88 LoadInt(g_config->screen_height, cfg, U"ScreenHeight");
89 LoadBool(g_config->neo, cfg, U"Neo");
90 LoadBool(g_config->vulkan_validation_enabled, cfg, U"VulkanValidationEnabled");
91 LoadBool(g_config->shader_validation_enabled, cfg, U"ShaderValidationEnabled");
92 LoadEnum(g_config->shader_optimization_type, cfg, U"ShaderOptimizationType");
93 LoadEnum(g_config->shader_log_direction, cfg, U"ShaderLogDirection");
94 LoadStr(g_config->shader_log_folder, cfg, U"ShaderLogFolder");
95 LoadBool(g_config->command_buffer_dump_enabled, cfg, U"CommandBufferDumpEnabled");
96 LoadStr(g_config->command_buffer_dump_folder, cfg, U"CommandBufferDumpFolder");
97 LoadEnum(g_config->printf_direction, cfg, U"PrintfDirection");
98 LoadStr(g_config->printf_output_file, cfg, U"PrintfOutputFile");
99 LoadStr(g_config->printf_output_folder, cfg, U"PrintfOutputFolder");
100 LoadEnum(g_config->profiler_direction, cfg, U"ProfilerDirection");
101 LoadStr(g_config->profiler_output_file, cfg, U"ProfilerOutputFile");
102 LoadBool(g_config->spirv_debug_printf_enabled, cfg, U"SpirvDebugPrintfEnabled");
103 LoadBool(g_config->pipeline_dump_enabled, cfg, U"PipelineDumpEnabled");
104 LoadStr(g_config->pipeline_dump_folder, cfg, U"PipelineDumpFolder");
105}
106
107uint32_t GetScreenWidth()
108{

Callers 3

InitFunction · 0.85
KYTY_SCRIPT_FUNCFunction · 0.85
LoadMethod · 0.85

Calls 4

LoadBoolFunction · 0.85
LoadEnumFunction · 0.85
LoadStrFunction · 0.85
LoadIntFunction · 0.70

Tested by

no test coverage detected