mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-31 09:33:06 +00:00
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);
|
||||
}
|
||||
|
||||
const char* pdregname(int val)
|
||||
std::string pdregname(int val)
|
||||
{
|
||||
return regnames[val].name;
|
||||
}
|
||||
|
||||
const char* pdregnamelong(int val)
|
||||
std::string pdregnamelong(int val)
|
||||
{
|
||||
return regnames[val].description;
|
||||
}
|
||||
|
@ -94,8 +94,8 @@ extern const std::array<pdlabel_t, 36> regnames;
|
||||
extern const std::array<pdlabel_t, 96> pdlabels;
|
||||
|
||||
std::string pdname(u16 val);
|
||||
const char* pdregname(int val);
|
||||
const char* pdregnamelong(int val);
|
||||
std::string pdregname(int val);
|
||||
std::string pdregnamelong(int val);
|
||||
|
||||
void InitInstructionTable();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user