mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-30 03:29:59 +02:00
Update to v099r15 release.
byuu says: Changelog: - nall::lstring -> nall::string_vector - added IntegerBitField<type, lo, hi> -- hopefully it works correctly... - Multitap 1-4 -> Super Multitap 2-5 - fixed SFC PPU CGRAM read regression - huge amounts of SFC PPU IO register cleanups -- .bits really is lovely - re-added the read/write(VRAM,OAM,CGRAM) helpers for the SFC PPU - but they're now optimized to the realities of the PPU (16-bit data sizes / no address parameter / where appropriate) - basically used to get the active-display overrides in a unified place; but also reduces duplicate code in (read,write)IO
This commit is contained in:
@@ -19,7 +19,7 @@ static auto BrowserWindow_fileDialog(bool save, BrowserWindow::State& state) ->
|
||||
|
||||
string filters;
|
||||
for(auto& filter : state.filters) {
|
||||
lstring part = filter.split("(");
|
||||
auto part = filter.split("(");
|
||||
if(part.size() != 2) continue;
|
||||
part[1].trimRight(")", 1L);
|
||||
part[1].replace(" ", "");
|
||||
|
@@ -38,11 +38,11 @@ static auto CreateRGB(const Color& color) -> COLORREF {
|
||||
return RGB(color.red(), color.green(), color.blue());
|
||||
}
|
||||
|
||||
static auto DropPaths(WPARAM wparam) -> lstring {
|
||||
static auto DropPaths(WPARAM wparam) -> string_vector {
|
||||
auto dropList = HDROP(wparam);
|
||||
auto fileCount = DragQueryFile(dropList, ~0u, nullptr, 0);
|
||||
|
||||
lstring paths;
|
||||
string_vector paths;
|
||||
for(auto n : range(fileCount)) {
|
||||
auto length = DragQueryFile(dropList, n, nullptr, 0);
|
||||
auto buffer = new wchar_t[length + 1];
|
||||
|
@@ -176,7 +176,7 @@ auto pWindow::onClose() -> void {
|
||||
}
|
||||
|
||||
auto pWindow::onDrop(WPARAM wparam) -> void {
|
||||
lstring paths = DropPaths(wparam);
|
||||
auto paths = DropPaths(wparam);
|
||||
if(paths) self().doDrop(paths);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user