Core/DSP/DSPTables: Make pdregname() and pdregnamelong() return std::string
Keeps the interface consistent.
This commit is contained in:
parent
62740d97a8
commit
1764b13423
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue