mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-20 02:47:02 +02:00
general: explicit SEC_COMMIT (Windows), default printf logging to silent
This commit is contained in:
@@ -59,7 +59,7 @@ struct ConfigOptions {
|
||||
bool command_buffer_dump_enabled = false;
|
||||
std::filesystem::path command_buffer_dump_folder = "_Buffers";
|
||||
bool graphics_debug_dump_enabled = false;
|
||||
OutputDirection printf_direction = OutputDirection::Console;
|
||||
OutputDirection printf_direction = OutputDirection::Silent;
|
||||
std::filesystem::path printf_output_file = "_kyty.txt";
|
||||
ProfilerDirection profiler_direction = ProfilerDirection::None;
|
||||
bool spirv_debug_printf_enabled = false;
|
||||
|
||||
@@ -44,9 +44,9 @@ public:
|
||||
|
||||
explicit GuestBackingStore(uint64_t size): m_size(size) {
|
||||
#if KYTY_PLATFORM == KYTY_PLATFORM_WINDOWS
|
||||
m_handle = CreateFileMappingA(INVALID_HANDLE_VALUE, nullptr, PAGE_EXECUTE_READWRITE,
|
||||
static_cast<DWORD>(m_size >> 32u),
|
||||
static_cast<DWORD>(m_size & 0xffffffffu), nullptr);
|
||||
m_handle = CreateFileMappingA(
|
||||
INVALID_HANDLE_VALUE, nullptr, PAGE_EXECUTE_READWRITE | SEC_COMMIT,
|
||||
static_cast<DWORD>(m_size >> 32u), static_cast<DWORD>(m_size & 0xffffffffu), nullptr);
|
||||
if (m_handle == nullptr) {
|
||||
LOGF_COLOR(Log::Color::Red,
|
||||
"\t direct-memory backing: CreateFileMapping failed: 0x%08" PRIx32 "\n",
|
||||
|
||||
Reference in New Issue
Block a user