mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-02-24 07:02:27 +01:00
byuu says: Note: you will need the new icarus (and please use the "no manifest" system) to run GBA games with this WIP. Changelog: - fixed caching of r(d) to pass armwrestler tests [Jonas Quinn] - DMA to/from GBA BIOS should fail [Cydrak] - fixed sign-extend and rotate on ldrs instructions [Cydrak] - fixed 8-bit SRAM reading/writing [byuu] - refactored GBA/cartridge - cartridge/rom,ram.type is now cartridge/mrom,sram,eeprom,flash - things won't crash horribly if you specify a RAM size larger than the largest legal size in the manifest - specialized MROM / SRAM classes replace all the shared read/write functions that didn't work right anyway - there's a new ruby/video.glx2 driver, which is not enabled by default - use this if you are running Linux/BSD, but don't have OpenGL 3.2 yet - I'm not going to support OpenGL2 on Windows/OS X, because these OSes don't ship ancient video card drivers - probably more. What am I, clairvoyant? :P For endrift's tests, this gets us to 1348/1552 memory and 1016/1260 timing. Overall, this puts us back in second place. Only no$ is ahead on memory, but bgba is even more ahead on timing.
34 lines
777 B
C++
34 lines
777 B
C++
#if defined(Hiro_Layout)
|
|
|
|
namespace hiro {
|
|
|
|
auto pLayout::construct() -> void {
|
|
for(auto& sizable : state().sizables) sizable->construct();
|
|
}
|
|
|
|
auto pLayout::destruct() -> void {
|
|
for(auto& sizable : state().sizables) sizable->destruct();
|
|
}
|
|
|
|
auto pLayout::setEnabled(bool enabled) -> void {
|
|
for(auto& sizable : state().sizables) {
|
|
if(auto self = sizable->self()) self->setEnabled(sizable->enabled(true));
|
|
}
|
|
}
|
|
|
|
auto pLayout::setFont(const Font& font) -> void {
|
|
for(auto& sizable : state().sizables) {
|
|
if(auto self = sizable->self()) self->setFont(sizable->font(true));
|
|
}
|
|
}
|
|
|
|
auto pLayout::setVisible(bool visible) -> void {
|
|
for(auto& sizable : state().sizables) {
|
|
if(auto self = sizable->self()) self->setVisible(sizable->visible(true));
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|