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