Initial commit

This commit is contained in:
InoriRus
2021-12-01 19:29:27 +10:00
parent b1e7dcdc5d
commit 43f49c8763
1843 changed files with 1111694 additions and 0 deletions
+67
View File
@@ -0,0 +1,67 @@
#ifndef EMULATOR_INCLUDE_EMULATOR_CONFIG_H_
#define EMULATOR_INCLUDE_EMULATOR_CONFIG_H_
#include "Kyty/Core/Common.h"
#include "Kyty/Core/String.h"
#include "Kyty/Core/Subsystems.h"
#include "Emulator/Common.h"
#ifdef KYTY_EMU_ENABLED
namespace Kyty::Scripts {
class ScriptVar;
} // namespace Kyty::Scripts
namespace Kyty::Config {
KYTY_SUBSYSTEM_DEFINE(Config);
enum class ShaderOptimizationType
{
None,
Size,
Performance
};
enum class ShaderLogDirection
{
Silent,
Console,
File
};
enum class ProfilerDirection
{
None,
File,
Network,
FileAndNetwork
};
void Load(const Scripts::ScriptVar& cfg);
uint32_t GetScreenWidth();
uint32_t GetScreenHeight();
bool IsNeo();
bool VulkanValidationEnabled();
bool ShaderValidationEnabled();
ShaderOptimizationType GetShaderOptimizationType();
ShaderLogDirection GetShaderLogDirection();
String GetShaderLogFolder();
bool CommandBufferDumpEnabled();
String GetCommandBufferDumpFolder();
Log::Direction GetPrintfDirection();
String GetPrintfOutputFile();
ProfilerDirection GetProfilerDirection();
String GetProfilerOutputFile();
} // namespace Kyty::Config
#endif
#endif /* EMULATOR_INCLUDE_EMULATOR_CONFIG_H_ */