mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-11-04 00:49:02 -06:00 
			
		
		
		
	core: hle: kernel: Address review comments.
This commit is contained in:
		@@ -120,6 +120,6 @@ static_assert(std::is_final_v<KTransferMemory> && std::is_base_of_v<KAutoObject,
 | 
			
		||||
// static_assert(std::is_final_v<KCodeMemory> &&
 | 
			
		||||
//              std::is_base_of_v<KAutoObject, KCodeMemory>);
 | 
			
		||||
 | 
			
		||||
static_assert(std::is_base_of<KAutoObject, KSystemResource>::value);
 | 
			
		||||
static_assert(std::is_base_of_v<KAutoObject, KSystemResource>);
 | 
			
		||||
 | 
			
		||||
} // namespace Kernel
 | 
			
		||||
 
 | 
			
		||||
@@ -74,7 +74,7 @@ public:
 | 
			
		||||
        KScopedDisableDispatch dd{m_kernel};
 | 
			
		||||
        KScopedSpinLock lk(m_lock);
 | 
			
		||||
 | 
			
		||||
        if constexpr (std::is_same<T, KAutoObject>::value) {
 | 
			
		||||
        if constexpr (std::is_same_v<T, KAutoObject>) {
 | 
			
		||||
            return this->GetObjectImpl(handle);
 | 
			
		||||
        } else {
 | 
			
		||||
            if (auto* obj = this->GetObjectImpl(handle); obj != nullptr) [[likely]] {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user