summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/ti99/gromport/cartridges.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/ti99/gromport/cartridges.h')
-rw-r--r--src/devices/bus/ti99/gromport/cartridges.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/bus/ti99/gromport/cartridges.h b/src/devices/bus/ti99/gromport/cartridges.h
index 501e97faba3..f2e799591f2 100644
--- a/src/devices/bus/ti99/gromport/cartridges.h
+++ b/src/devices/bus/ti99/gromport/cartridges.h
@@ -171,21 +171,21 @@ private:
{
public:
rpk_socket(const char *id, int length, uint8_t *contents);
- rpk_socket(const char *id, int length, uint8_t *contents, const char *pathname);
+ rpk_socket(const char *id, int length, uint8_t *contents, std::string &&pathname);
~rpk_socket() {}
const char* id() { return m_id; }
int get_content_length() { return m_length; }
uint8_t* get_contents() { return m_contents; }
- bool persistent_ram() { return m_pathname != nullptr; }
- const char* get_pathname() { return m_pathname; }
+ bool persistent_ram() { return !m_pathname.empty(); }
+ const char* get_pathname() { return m_pathname.c_str(); }
void cleanup() { if (m_contents != nullptr) global_free_array(m_contents); }
private:
const char* m_id;
uint32_t m_length;
uint8_t* m_contents;
- const char* m_pathname;
+ const std::string m_pathname;
};
bool m_readrom;