Refactor FourCC magic uses

- Use new fourcc_t type
- Improves compiler compatibility by removing multi chars
This commit is contained in:
Joel Linn
2021-05-06 18:46:43 +02:00
committed by Rick Gibbed
parent 4daa3f5a52
commit a86d7173e1
25 changed files with 65 additions and 42 deletions

View File

@@ -915,7 +915,7 @@ bool XThread::Save(ByteStream* stream) {
return false;
}
stream->Write('THRD');
stream->Write(kThreadSaveSignature);
stream->Write(thread_name_);
ThreadSavedState state;
@@ -971,7 +971,7 @@ object_ref<XThread> XThread::Restore(KernelState* kernel_state,
return nullptr;
}
if (stream->Read<uint32_t>() != 'THRD') {
if (stream->Read<uint32_t>() != kThreadSaveSignature) {
XELOGE("Could not restore XThread - invalid magic!");
return nullptr;
}