mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-30 04:00:09 +02:00
Update to v106r65 release.
byuu says: This synchronizes bsnes/higan with many recent internal nall changes. This will be the last WIP until I am situated in Japan. Apologies for the bugfixes that didn't get applied yet, I ran out of time.
This commit is contained in:
@@ -17,7 +17,7 @@ using uint32 = Natural<32>;
|
||||
using uint64 = Natural<64>;
|
||||
|
||||
struct FX {
|
||||
auto open(vector<string> arguments) -> bool;
|
||||
auto open(Arguments& arguments) -> bool;
|
||||
auto close() -> void;
|
||||
auto readable() -> bool;
|
||||
auto read() -> uint8_t;
|
||||
@@ -35,16 +35,10 @@ struct FX {
|
||||
serial device;
|
||||
};
|
||||
|
||||
auto FX::open(vector<string> arguments) -> bool {
|
||||
auto FX::open(Arguments& arguments) -> bool {
|
||||
//device name override support
|
||||
string name;
|
||||
for(auto argument : arguments) {
|
||||
if(argument.beginsWith("--device=")) {
|
||||
name = argument.trimLeft("--device=", 1L);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
arguments.take("--device", name);
|
||||
if(!device.open(name)) {
|
||||
print("[21fx] error: unable to open hardware device\n");
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user