mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-02-06 22:20:35 +01:00
019fc1a2c6
byuu says (about higan): - dropped release/ root node for individual games (still there in ananke's database.) - Memory export uses smarter names (vram.rwm -> video.ram, etc.) - cheat database moved from XML to BML (3.1MB to 1.9MB file size.) - cheat codes moved from XML to BML - resource manifest moved from XML to BML What can I say, I like consistency. But I'll leave the shaders alone until I get around to shader folders. byuu says (about ananke): Works with higan v091r13. Only does SNES stuff so far.
25 lines
593 B
C++
25 lines
593 B
C++
vector<uint8_t> Ananke::extractROM() {
|
|
unzip archive;
|
|
if(archive.open(information.archive)) {
|
|
for(auto &file : archive.file) {
|
|
if(file.name.endswith(".sfc")) {
|
|
information.name = notdir(file.name);
|
|
return archive.extract(file);
|
|
}
|
|
}
|
|
}
|
|
return vector<uint8_t>();
|
|
}
|
|
|
|
vector<uint8_t> Ananke::extractFile(const string &filename) {
|
|
unzip archive;
|
|
if(archive.open(information.archive)) {
|
|
for(auto &file : archive.file) {
|
|
if(notdir(file.name) == filename) {
|
|
return archive.extract(file);
|
|
}
|
|
}
|
|
}
|
|
return vector<uint8_t>();
|
|
}
|