mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-23 20:36:58 +02:00
usbd: return an empty device list from sceUsbdGetDeviceList (Gran Turismo 7) (#1831)
This commit is contained in:
committed by
GitHub
parent
86fed10b81
commit
f5f4e7d48a
@@ -33,12 +33,27 @@ static int KYTY_SYSV_ABI UsbdHandleEventsTimeout() {
|
||||
return OK;
|
||||
}
|
||||
|
||||
static int64_t KYTY_SYSV_ABI UsbdGetDeviceList(void*** list) {
|
||||
PRINT_NAME();
|
||||
|
||||
static void* empty_list[] = {nullptr};
|
||||
*list = empty_list;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void KYTY_SYSV_ABI UsbdFreeDeviceList(void** /*list*/, int /*unref_devices*/) {
|
||||
PRINT_NAME();
|
||||
}
|
||||
|
||||
} // namespace Usbd
|
||||
|
||||
LIB_DEFINE(InitUsbd_1) {
|
||||
LIB_FUNC("TOhg7P6kTH4", Usbd::UsbdInit);
|
||||
LIB_FUNC("Fq6+0Fm55xU", Usbd::UsbdExit);
|
||||
LIB_FUNC("+wU6CGuZcWk", Usbd::UsbdHandleEventsTimeout);
|
||||
LIB_FUNC("8qB9Ar4P5nc", Usbd::UsbdGetDeviceList);
|
||||
LIB_FUNC("EQ6SCLMqzkM", Usbd::UsbdFreeDeviceList);
|
||||
}
|
||||
|
||||
} // namespace Libs
|
||||
|
||||
Reference in New Issue
Block a user