mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-13 13:38:07 -05:00
stream: Preserve enum class type in GetState()
Preserves the meaning/type-safetiness of the stream state instead of making it an opaque u32. This makes it usable for other things outside of the service HLE context.
This commit is contained in:
@ -53,8 +53,8 @@ void Stream::Stop() {
|
||||
ASSERT_MSG(false, "Unimplemented");
|
||||
}
|
||||
|
||||
u32 Stream::GetState() const {
|
||||
return static_cast<u32>(state);
|
||||
Stream::State Stream::GetState() const {
|
||||
return state;
|
||||
}
|
||||
|
||||
s64 Stream::GetBufferReleaseCycles(const Buffer& buffer) const {
|
||||
|
Reference in New Issue
Block a user