mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-02-24 15:12:23 +01:00
byuu says: Changelog: - importing a game won't show message box on success - importing a game will select the game that was imported in the list - caveat: GTK+ port doesn't seem to be removing focus from item 0 even though the selection is on item 2 - Game Boy audio reduced in volume by 50% - Game Boy Advance audio reduced in volume by 50% - Game Boy internally mixes audio at 2MHz now - Game Boy Advance's Game Boy audio hardware internally mixes audio at 2MHz now - Game Boy Color doesn't sort sprites by X-coordinate - Game Boy Color allows transparency on BGpriority pixels - caveat: this seems to allow sprites to appear on top of windows - Game Boy Color VRAM DMA transfers 16 bytes in 8 clocks (or 16 clocks in double speed mode) - Game Boy Color VRAM DMA masks low 4-bits of source and destination address - Game Boy Color VRAM DMA only allows reads from ROM or RAM - Game Boy Color VRAM DMA only allows writes to VRAM - fixed a bug in dereferencing a nullptr from pObject::find(), should fix crash when pressing enter key on blank windows - fixed Windows RadioItem selection - Game Boy Advance color emulation code added
18 lines
336 B
C++
18 lines
336 B
C++
namespace phoenix {
|
|
|
|
vector<pObject*> pObject::objects;
|
|
|
|
pObject::pObject(Object& object) : object(object) {
|
|
static unsigned uniqueId = 100;
|
|
objects.append(this);
|
|
id = uniqueId++;
|
|
locked = false;
|
|
}
|
|
|
|
Object* pObject::find(unsigned id) {
|
|
for(auto& item : objects) if(item->id == id) return &item->object;
|
|
return nullptr;
|
|
}
|
|
|
|
}
|