mirror of
https://github.com/citra-emu/citra-canary.git
synced 2024-12-25 16:05:38 +00:00
Only serialize wchar paths on windows
This commit is contained in:
parent
38e9eb379d
commit
de9ae14059
|
@ -77,6 +77,7 @@ private:
|
|||
case LowPathType::Char:
|
||||
ar& string;
|
||||
break;
|
||||
#ifdef _WIN32
|
||||
case LowPathType::Wchar:
|
||||
static_assert(sizeof(wchar_t) == sizeof(char16_t));
|
||||
{
|
||||
|
@ -87,6 +88,7 @@ private:
|
|||
}
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -63,8 +63,7 @@ void Thread::Acquire(Thread* thread) {
|
|||
}
|
||||
|
||||
Thread::Thread(KernelSystem& kernel, u32 core_id)
|
||||
: WaitObject(kernel), context(kernel.GetThreadManager(core_id).NewContext()),
|
||||
core_id(core_id),
|
||||
: WaitObject(kernel), context(kernel.GetThreadManager(core_id).NewContext()), core_id(core_id),
|
||||
thread_manager(kernel.GetThreadManager(core_id)) {}
|
||||
Thread::~Thread() {}
|
||||
|
||||
|
|
|
@ -239,7 +239,8 @@ private:
|
|||
void load(Archive& ar, const unsigned int file_version) {
|
||||
u32 offset{};
|
||||
ar >> offset;
|
||||
cmd_list.head_ptr = reinterpret_cast<u32*>(VideoCore::g_memory->GetPhysicalPointer(cmd_list.addr));
|
||||
cmd_list.head_ptr =
|
||||
reinterpret_cast<u32*>(VideoCore::g_memory->GetPhysicalPointer(cmd_list.addr));
|
||||
cmd_list.current_ptr = cmd_list.head_ptr + offset;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue