mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
VideoCommon: add logic to handle a GraphicsMod while Dolphin is running
This commit is contained in:
22
Source/Core/VideoCommon/GraphicsModSystem/Runtime/FBInfo.cpp
Normal file
22
Source/Core/VideoCommon/GraphicsModSystem/Runtime/FBInfo.cpp
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright 2022 Dolphin Emulator Project
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include "VideoCommon/GraphicsModSystem/Runtime/FBInfo.h"
|
||||
|
||||
#include "Common/Hash.h"
|
||||
|
||||
u32 FBInfo::CalculateHash() const
|
||||
{
|
||||
return Common::HashAdler32(reinterpret_cast<const u8*>(this), sizeof(FBInfo));
|
||||
}
|
||||
|
||||
bool FBInfo::operator==(const FBInfo& other) const
|
||||
{
|
||||
return m_height == other.m_height && m_width == other.m_width &&
|
||||
m_texture_format == other.m_texture_format;
|
||||
}
|
||||
|
||||
bool FBInfo::operator!=(const FBInfo& other) const
|
||||
{
|
||||
return !(*this == other);
|
||||
}
|
Reference in New Issue
Block a user