File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -765,7 +765,7 @@ void PCSX::GdbClient::processMonitorCommand(const std::string& cmd) {
765
765
writeEscaped (" Usage: sharedmem <type>" );
766
766
} else {
767
767
if (words[1 ] == " wram" ) {
768
- writeEscaped (g_emulator->m_mem ->m_wramShared .getSharedName (). c_str () );
768
+ writeEscaped (g_emulator->m_mem ->m_wramShared .getSharedName ());
769
769
} else {
770
770
writeEscaped (" Unknown type. Valid types: wram" );
771
771
}
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ class SharedMem {
49
49
uint8_t * getPtr () { return m_mem; }
50
50
size_t getSize () { return m_size; }
51
51
52
- std::string getSharedName () { return m_sharedName; }
52
+ const std::string& getSharedName () { return m_sharedName; }
53
53
54
54
private:
55
55
std::string getSharedName (const char * id, uint32_t pid);
You can’t perform that action at this time.
0 commit comments