mirror of
https://github.com/aaru-dps/aaruremote.git
synced 2025-12-16 19:24:37 +00:00
Fix getting type for SCSI magneto-optical devices in Linux.
This commit is contained in:
5
.idea/modules.xml
generated
5
.idea/modules.xml
generated
@@ -1,10 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ProjectModuleManager">
|
|
||||||
<modules>
|
|
||||||
<module fileurl="file://$PROJECT_DIR$/.idea/dicremote.iml" filepath="$PROJECT_DIR$/.idea/dicremote.iml" />
|
|
||||||
</modules>
|
|
||||||
</component>
|
|
||||||
<component name="CMakeSettings" AUTO_RELOAD="true">
|
<component name="CMakeSettings" AUTO_RELOAD="true">
|
||||||
<configurations>
|
<configurations>
|
||||||
<configuration PROFILE_NAME="Wii - Debug" CONFIG_NAME="Debug" GENERATION_OPTIONS="-DCMAKE_TOOLCHAIN_FILE=/opt/devkitpro/wii.cmake">
|
<configuration PROFILE_NAME="Wii - Debug" CONFIG_NAME="Debug" GENERATION_OPTIONS="-DCMAKE_TOOLCHAIN_FILE=/opt/devkitpro/wii.cmake">
|
||||||
|
|||||||
@@ -133,8 +133,11 @@ int32_t GetDeviceType(void* device_ctx)
|
|||||||
|
|
||||||
if(tmp_string)
|
if(tmp_string)
|
||||||
{
|
{
|
||||||
if(strncmp(tmp_string, "cd", 2) == 0 || strncmp(tmp_string, "disk", 4) == 0)
|
if(strncmp(tmp_string, "cd", 2) == 0 || strncmp(tmp_string, "disk", 4) == 0 ||
|
||||||
{ device_type = AARUREMOTE_DEVICE_TYPE_SCSI; }
|
strncmp(tmp_string, "optical", 7) == 0)
|
||||||
|
{
|
||||||
|
device_type = AARUREMOTE_DEVICE_TYPE_SCSI;
|
||||||
|
}
|
||||||
|
|
||||||
free((void*)tmp_string);
|
free((void*)tmp_string);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user