mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-07 09:10:00 +01:00
[dipsw] Fix IoDevice naming
Fix DmemDevice redeclaration
This commit is contained in:
parent
ed7580b322
commit
932bb30e79
|
|
@ -2,10 +2,10 @@
|
|||
#include "orbis/KernelAllocator.hpp"
|
||||
#include <cstdio>
|
||||
|
||||
struct DmemDevice : public IoDevice {
|
||||
struct DipswDevice : public IoDevice {
|
||||
};
|
||||
|
||||
struct DmemInstance : public IoDeviceInstance {
|
||||
struct DipswInstance : public IoDeviceInstance {
|
||||
};
|
||||
|
||||
static std::int64_t dipsw_instance_ioctl(IoDeviceInstance *instance,
|
||||
|
|
@ -51,7 +51,7 @@ static std::int32_t dipsw_device_open(IoDevice *device,
|
|||
orbis::Ref<IoDeviceInstance> *instance,
|
||||
const char *path, std::uint32_t flags,
|
||||
std::uint32_t mode) {
|
||||
auto *newInstance = orbis::knew<DmemInstance>();
|
||||
auto *newInstance = orbis::knew<DipswInstance>();
|
||||
newInstance->ioctl = dipsw_instance_ioctl;
|
||||
io_device_instance_init(device, newInstance);
|
||||
*instance = newInstance;
|
||||
|
|
@ -59,7 +59,7 @@ static std::int32_t dipsw_device_open(IoDevice *device,
|
|||
}
|
||||
|
||||
IoDevice *createDipswCharacterDevice() {
|
||||
auto *newDevice = orbis::knew<DmemDevice>();
|
||||
auto *newDevice = orbis::knew<DipswDevice>();
|
||||
newDevice->open = dipsw_device_open;
|
||||
return newDevice;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue