mirror of https://github.com/bsnes-emu/bsnes.git
28 lines
742 B
C++
28 lines
742 B
C++
namespace Heuristics {
|
|
|
|
auto Memory::text() const -> string {
|
|
string output;
|
|
output.append(" memory\n");
|
|
output.append(" type: ", _type, "\n");
|
|
if(_battery)
|
|
output.append(" battery\n");
|
|
output.append(" size: 0x", hex(_size), "\n");
|
|
output.append(" content: ", _content, "\n");
|
|
if(_manufacturer)
|
|
output.append(" manufacturer: ", _manufacturer, "\n");
|
|
if(_architecture)
|
|
output.append(" architecture: ", _architecture, "\n");
|
|
if(_identifier)
|
|
output.append(" identifier: ", _identifier, "\n");
|
|
return output;
|
|
}
|
|
|
|
auto Oscillator::text() const -> string {
|
|
string output;
|
|
output.append(" oscillator\n");
|
|
output.append(" frequency: ", _frequency, "\n");
|
|
return output;
|
|
}
|
|
|
|
}
|