citra-emu
/
citra
Archived
1
0
Fork 0

core/memory.*:constify `GetPhysicalPointer`;

audio_core\hle\source.h: constify `memory_system`
This commit is contained in:
SachinVin 2023-07-09 16:37:28 +05:30
parent 662bb9ba77
commit 1cb34ea0d3
3 changed files with 3 additions and 3 deletions

View File

@ -66,7 +66,7 @@ public:
private:
const std::size_t source_id;
Memory::MemorySystem* memory_system;
const Memory::MemorySystem* memory_system{};
StereoFrame16 current_frame;
using Format = SourceConfiguration::Configuration::Format;

View File

@ -643,7 +643,7 @@ std::string MemorySystem::ReadCString(VAddr vaddr, std::size_t max_length) {
return string;
}
u8* MemorySystem::GetPhysicalPointer(PAddr address) {
u8* MemorySystem::GetPhysicalPointer(PAddr address) const {
return GetPhysicalRef(address);
}

View File

@ -576,7 +576,7 @@ public:
void RasterizerMarkRegionCached(PAddr start, u32 size, bool cached);
/// Gets a pointer to the memory region beginning at the specified physical address.
u8* GetPhysicalPointer(PAddr address);
u8* GetPhysicalPointer(PAddr address) const;
/// Returns a reference to the memory region beginning at the specified physical address
MemoryRef GetPhysicalRef(PAddr address) const;