mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 21:57:57 +03:00
16 lines
371 B
C++
16 lines
371 B
C++
![]() |
#include "Iop_Module.h"
|
||
|
#include "string_format.h"
|
||
|
|
||
|
using namespace Iop;
|
||
|
|
||
|
std::string CModule::PrintStringParameter(const uint8* ram, uint32 stringPtr)
|
||
|
{
|
||
|
auto result = string_format("0x%0.8X", stringPtr);
|
||
|
if(stringPtr != 0)
|
||
|
{
|
||
|
auto string = reinterpret_cast<const char*>(ram + stringPtr);
|
||
|
result += string_format(" ('%s')", string);
|
||
|
}
|
||
|
return std::move(result);
|
||
|
}
|