Core/DSP/DSPTables: Make pdregname() and pdregnamelong() return std::string

Keeps the interface consistent.
This commit is contained in:
Lioncache 2023-12-18 12:55:11 -05:00
parent 62740d97a8
commit 1764b13423
2 changed files with 4 additions and 4 deletions

View File

@ -505,12 +505,12 @@ std::string pdname(u16 val)
return fmt::format("0x{:04x}", val); return fmt::format("0x{:04x}", val);
} }
const char* pdregname(int val) std::string pdregname(int val)
{ {
return regnames[val].name; return regnames[val].name;
} }
const char* pdregnamelong(int val) std::string pdregnamelong(int val)
{ {
return regnames[val].description; return regnames[val].description;
} }

View File

@ -94,8 +94,8 @@ extern const std::array<pdlabel_t, 36> regnames;
extern const std::array<pdlabel_t, 96> pdlabels; extern const std::array<pdlabel_t, 96> pdlabels;
std::string pdname(u16 val); std::string pdname(u16 val);
const char* pdregname(int val); std::string pdregname(int val);
const char* pdregnamelong(int val); std::string pdregnamelong(int val);
void InitInstructionTable(); void InitInstructionTable();