mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-03-29 15:09:46 -06:00
tweak LoadFigure and RemoveFigure (#4071)
This commit is contained in:
parent
c265a39227
commit
407d287fb1
@ -174,12 +174,18 @@ void IPC::InputLoop() {
|
||||
} else if (cmd == "USB_LOAD_FIGURE") {
|
||||
const auto ref = Libraries::Usbd::usb_backend->GetImplRef();
|
||||
if (ref) {
|
||||
ref->LoadFigure(next_str(), next_u64(), next_u64());
|
||||
std::string file_name = next_str();
|
||||
const u8 pad = next_u64();
|
||||
const u8 slot = next_u64();
|
||||
ref->LoadFigure(file_name, pad, slot);
|
||||
}
|
||||
} else if (cmd == "USB_REMOVE_FIGURE") {
|
||||
const auto ref = Libraries::Usbd::usb_backend->GetImplRef();
|
||||
if (ref) {
|
||||
ref->RemoveFigure(next_u64(), next_u64(), next_u64() != 0);
|
||||
const u8 pad = next_u64();
|
||||
const u8 slot = next_u64();
|
||||
bool full_remove = next_u64() != 0;
|
||||
ref->RemoveFigure(pad, slot, full_remove);
|
||||
}
|
||||
} else if (cmd == "USB_MOVE_FIGURE") {
|
||||
const auto ref = Libraries::Usbd::usb_backend->GetImplRef();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user