2018-02-21 00:12:09 +00:00
|
|
|
namespace Heuristics {
|
2016-08-17 22:04:50 +00:00
|
|
|
|
2018-03-05 22:42:10 +00:00
|
|
|
struct GameGear {
|
2018-02-21 00:12:09 +00:00
|
|
|
GameGear(vector<uint8_t>& data, string location);
|
|
|
|
explicit operator bool() const;
|
|
|
|
auto manifest() const -> string;
|
2016-08-17 22:04:50 +00:00
|
|
|
|
2018-02-21 00:12:09 +00:00
|
|
|
private:
|
|
|
|
vector<uint8_t>& data;
|
|
|
|
string location;
|
2016-08-17 22:04:50 +00:00
|
|
|
};
|
|
|
|
|
2018-02-21 00:12:09 +00:00
|
|
|
GameGear::GameGear(vector<uint8_t>& data, string location) : data(data), location(location) {
|
|
|
|
}
|
|
|
|
|
|
|
|
GameGear::operator bool() const {
|
|
|
|
return (bool)data;
|
|
|
|
}
|
|
|
|
|
|
|
|
auto GameGear::manifest() const -> string {
|
|
|
|
string output;
|
|
|
|
output.append("game\n");
|
|
|
|
output.append(" sha256: ", Hash::SHA256(data).digest(), "\n");
|
2018-03-14 03:51:35 +00:00
|
|
|
output.append(" label: ", Location::prefix(location), "\n");
|
|
|
|
output.append(" name: ", Location::prefix(location), "\n");
|
Update to v106r09 release.
byuu says:
Changelog:
- higan, icarus, genius: new manifest syntax (work in progress)
Pretty much only LoROM and HiROM SNES games will load right now, and RAM
will only work right if the save.ram file already exists to pull its
file size from (a temporary cheap hack was used.)
Basically, I'm just getting this out there for evaluation.
One minor errata is that I switched icarus to using “memory/battery” to
indicate battery-backed RAM, whereas genius still uses “memory/volatile”
to indicate non-battery-backed RAM.
I intend to make it “memory/battery” in genius, and have the field
auto-enable when RAM or RTC is selected for type (obviously allowing it
to be unchecked for volatile memory.)
I need to update all 64 production boards, and 25 of 29 generic boards,
to use the new slot syntax; and I also need to update every single core
in higan to use the new manifest game syntax. I want to build out a
generic manifest game parser that all emulation cores will use.
Once I finish this, I'll also need to write a database converter to
update all of my licensed game dumps to the new database syntax.
I also need to write up something for doc.byuu.org explaining the new
manifest game syntax. The manifest board syntax will still be “internal”
and subject to revisions, but once v107 is out, the gamepak manifest
format will be set in stone sans extensions.
2018-03-05 04:34:07 +00:00
|
|
|
output.append(" board\n");
|
2018-04-08 23:50:42 +00:00
|
|
|
output.append(Memory{}.type("ROM").size(data.size()).content("Program").text());
|
2018-04-15 05:49:53 +00:00
|
|
|
output.append(Memory{}.type("RAM").size(0x8000).content("Save").text());
|
2018-02-21 00:12:09 +00:00
|
|
|
return output;
|
|
|
|
}
|
|
|
|
|
2016-08-17 22:04:50 +00:00
|
|
|
}
|