diff --git a/pcsx2/GS/GSState.cpp b/pcsx2/GS/GSState.cpp index e3419157f0..f51e21f8dc 100644 --- a/pcsx2/GS/GSState.cpp +++ b/pcsx2/GS/GSState.cpp @@ -552,7 +552,7 @@ float GSState::GetTvRefreshRate() __assume(0); // unreachable } -void GSState::DumpVertices(std::string& filename) +void GSState::DumpVertices(const std::string& filename) { std::ofstream file(filename); diff --git a/pcsx2/GS/GSState.h b/pcsx2/GS/GSState.h index f16e736130..2dc34c0513 100644 --- a/pcsx2/GS/GSState.h +++ b/pcsx2/GS/GSState.h @@ -303,7 +303,7 @@ public: void SetRegsMem(u8* basemem) { m_regs = reinterpret_cast(basemem); } void SetFrameSkip(int skip); - void DumpVertices(std::string& filename); + void DumpVertices(const std::string& filename); PRIM_OVERLAP PrimitiveOverlap(); GIFRegTEX0 GetTex0Layer(u32 lod);