File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -765,7 +765,7 @@ void PCSX::GdbClient::processMonitorCommand(const std::string& cmd) {
765765 writeEscaped (" Usage: sharedmem <type>" );
766766 } else {
767767 if (words[1 ] == " wram" ) {
768- writeEscaped (g_emulator->m_mem ->m_wramShared .getSharedName (). c_str () );
768+ writeEscaped (g_emulator->m_mem ->m_wramShared .getSharedName ());
769769 } else {
770770 writeEscaped (" Unknown type. Valid types: wram" );
771771 }
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ class SharedMem {
4949 uint8_t * getPtr () { return m_mem; }
5050 size_t getSize () { return m_size; }
5151
52- std::string getSharedName () { return m_sharedName; }
52+ const std::string& getSharedName () { return m_sharedName; }
5353
5454 private:
5555 std::string getSharedName (const char * id, uint32_t pid);
You can’t perform that action at this time.
0 commit comments