mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-19 08:41:23 +02:00
Update to bsnes v107r4 beta release.
byuu says: - bsnes: added video filters from bsnes v082 - bsnes: added ZSNES snow effect option when games paused or unloaded (no, I'm not joking) - bsnes: added 7-zip support (LZMA 19.00 SDK) [Recent higan WIPs have also mentioned bsnes changes, although the higan code no longer includes the bsnes code. These changes include: - higan, bsnes: added EXLOROM, EXLOROM-RAM, EXHIROM mappings - higan, bsnes: focus the viewport after leaving fullscreen exclusive mode - bsnes: re-added mightymo's cheat code database - bsnes: improved make install rules for the game and cheat code databases - bsnes: delayed construction of hiro::Window objects to properly show bsnes window icons - Ed.]
This commit is contained in:
@@ -59,22 +59,6 @@ auto Sourcery::parse(Markup::Node& root) -> void {
|
||||
});
|
||||
if(buffer.size() & 31) source.print("\n");
|
||||
source.print("};\n");
|
||||
} else if(node.name() == "string") {
|
||||
string filename{pathname, node["file"].text()};
|
||||
if(!file::exists(filename)) {
|
||||
print("warning: string file ", node["file"].text(), " not found\n");
|
||||
continue;
|
||||
}
|
||||
auto buffer = file::read(filename);
|
||||
header.print("extern const char ", node["name"].text(), "[", buffer.size() + 1, "];\n");
|
||||
source.print("const char ", node["name"].text(), "[", buffer.size() + 1, "] = {\n");
|
||||
buffer.foreach([&](uint offset, uint8_t data) {
|
||||
if((offset & 31) == 0) source.print(" ");
|
||||
source.print(data, ",");
|
||||
if((offset & 31) == 31) source.print("\n");
|
||||
});
|
||||
if(buffer.size() & 31) source.print("\n");
|
||||
source.print("};\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user