mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-02-19 20:55:24 +01:00
byuu says: Changelog: - fixed I/O register reads; perfect score on endrift's I/O tests now - fixed mouse capture clipping on Windows [Cydrak] - several hours of code maintenance work done on the SFC core All higan/sfc files should now use the auto fn() -> ret; syntax. Haven't converted all unsigned->uint yet. Also, probably won't do sfc/alt as that's mostly just speed hack stuff. Errata: - forgot auto& instead of just auto on SuperFamicom::Video::draw_cursor, which makes Super Scope / Justifier crash. Will be fixed in the next WIP.
30 lines
592 B
C++
30 lines
592 B
C++
#if defined(Hiro_Property)
|
|
|
|
Property::Property(const string& name, const string& value) {
|
|
state.name = name;
|
|
state.value = value;
|
|
}
|
|
|
|
auto Property::operator==(const Property& source) const -> bool {
|
|
return state.name == source.state.name;
|
|
}
|
|
|
|
auto Property::operator<(const Property& source) const -> bool {
|
|
return state.name < source.state.name;
|
|
}
|
|
|
|
auto Property::name() const -> string {
|
|
return state.name;
|
|
}
|
|
|
|
auto Property::setValue(const string& value) -> type& {
|
|
state.value = value;
|
|
return *this;
|
|
}
|
|
|
|
auto Property::value() const -> string {
|
|
return state.value;
|
|
}
|
|
|
|
#endif
|