mirror of
https://github.com/akuker/RASCSI.git
synced 2025-03-02 20:32:42 +00:00
Revert granular SCHD detection on the web ui side, since there are a plethora of hard drive image file endings out there
This commit is contained in:
parent
8454021f6b
commit
c6ef573d3b
@ -309,11 +309,12 @@ def attach():
|
||||
kwargs = {"image": file_name}
|
||||
|
||||
# Validate image type by file name suffix
|
||||
# Supplementing file ending based image type detection on the backend side
|
||||
if file_name.lower().endswith(CDROM_FILE_SUFFIX):
|
||||
kwargs["device_type"] = "SCCD"
|
||||
elif file_name.lower().endswith(REMOVABLE_FILE_SUFFIX):
|
||||
kwargs["device_type"] = "SCRM"
|
||||
elif file_name.lower().endswith(HARDDRIVE_FILE_SUFFIX):
|
||||
else:
|
||||
kwargs["device_type"] = "SCHD"
|
||||
|
||||
# Attempt to load the device properties file:
|
||||
|
Loading…
x
Reference in New Issue
Block a user