2013-12-20 11:40:39 +00:00
|
|
|
struct Player {
|
|
|
|
struct Status {
|
|
|
|
bool enable;
|
|
|
|
bool rumble;
|
|
|
|
|
|
|
|
bool logoDetected;
|
2015-11-16 08:38:05 +00:00
|
|
|
uint logoCounter;
|
2013-12-20 11:40:39 +00:00
|
|
|
|
2015-11-16 08:38:05 +00:00
|
|
|
uint packet;
|
2013-12-20 11:40:39 +00:00
|
|
|
uint32 send;
|
|
|
|
uint32 recv;
|
|
|
|
} status;
|
|
|
|
|
2015-11-16 08:38:05 +00:00
|
|
|
auto power() -> void;
|
|
|
|
auto frame() -> void;
|
2013-12-20 11:40:39 +00:00
|
|
|
|
2015-11-16 08:38:05 +00:00
|
|
|
auto keyinput() -> maybe<uint16>;
|
|
|
|
auto read() -> maybe<uint32>;
|
Update to v097r17 release.
byuu says:
Changelog:
- ruby: if DirectSoundCreate fails (no sound device present), return
false from init instead of crashing
- nall: improved edge case return values for
(basename,pathname,dirname,...)
- nall: renamed file_system_object class to inode
- nall: varuint_t replaced with VariadicNatural; which contains
.bit,.bits,.byte ala Natural/Integer
- nall: fixed boolean compilation error on Windows
- WS: popa should not restore SP
- GBA: rewrote the CPU/APU cores to use the .bit,.bits functions;
removed registers.cpp from each
Note that the GBA changes are extremely major. This is about five hours
worth of extremely delicate work. Any slight errors could break
emulation in extremely bad ways. Let's hold off on extensive testing
until the next WIP, after I do the same to the PPU.
So far ... endrift's SOUNDCNT_X I/O test is failing, although that code
didn't change, so clearly I messed up SOUNDCNT_H somehow ...
To compile on Windows:
1. change nall/string/platform.hpp line 47 to
return slice(result, 0, 3);
2. change ruby/video.wgl.cpp line 72 to
auto lock(uint32_t*& data, uint& pitch, uint width, uint height) -> bool {
3. add this line to the very top of hiro/windows/header.cpp:
#define boolean FuckYouMicrosoft
2016-02-23 11:08:44 +00:00
|
|
|
auto write(uint2 addr, uint8 byte) -> void;
|
2013-12-20 11:40:39 +00:00
|
|
|
|
2015-11-16 08:38:05 +00:00
|
|
|
auto serialize(serializer& s) -> void;
|
2013-12-20 11:40:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extern Player player;
|