mirror of
https://github.com/libretro/bsnes.git
synced 2026-11-10 10:41:32 -10:00
byuu says:
- bsnes: added video filters from bsnes v082
- bsnes: added ZSNES snow effect option when games paused or unloaded
(no, I'm not joking)
- bsnes: added 7-zip support (LZMA 19.00 SDK)
[Recent higan WIPs have also mentioned bsnes changes, although the higan code
no longer includes the bsnes code. These changes include:
- higan, bsnes: added EXLOROM, EXLOROM-RAM, EXHIROM mappings
- higan, bsnes: focus the viewport after leaving fullscreen exclusive
mode
- bsnes: re-added mightymo's cheat code database
- bsnes: improved make install rules for the game and cheat code
databases
- bsnes: delayed construction of hiro::Window objects to properly show
bsnes window icons
- Ed.]
44 lines
894 B
C++
44 lines
894 B
C++
#if defined(Hiro_TextCursor)
|
|
|
|
TextCursor::TextCursor(int offset, int length) {
|
|
setTextCursor(offset, length);
|
|
}
|
|
|
|
TextCursor::operator bool() const {
|
|
return offset() || length();
|
|
}
|
|
|
|
auto TextCursor::operator==(const TextCursor& source) const -> bool {
|
|
return offset() == source.offset() && length() == source.length();
|
|
}
|
|
|
|
auto TextCursor::operator!=(const TextCursor& source) const -> bool {
|
|
return !operator==(source);
|
|
}
|
|
|
|
auto TextCursor::length() const -> int {
|
|
return state.length;
|
|
}
|
|
|
|
auto TextCursor::offset() const -> int {
|
|
return state.offset;
|
|
}
|
|
|
|
auto TextCursor::setLength(int length) -> type& {
|
|
state.length = length;
|
|
return *this;
|
|
}
|
|
|
|
auto TextCursor::setOffset(int offset) -> type& {
|
|
state.offset = offset;
|
|
return *this;
|
|
}
|
|
|
|
auto TextCursor::setTextCursor(int offset, int length) -> type& {
|
|
state.offset = offset;
|
|
state.length = length;
|
|
return *this;
|
|
}
|
|
|
|
#endif
|