citra-emu
/
citra-canary
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: private:
const std::size_t source_id; const std::size_t source_id;
Memory::MemorySystem* memory_system; const Memory::MemorySystem* memory_system{};
StereoFrame16 current_frame; StereoFrame16 current_frame;
using Format = SourceConfiguration::Configuration::Format; using Format = SourceConfiguration::Configuration::Format;

View File

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

View File

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