mirror of
https://github.com/MiSTer-devel/GameAndWatch_MiSTer.git
synced 2026-05-24 03:03:25 +00:00
Fixed subdevices not sorting, causing the wrong parent to be selected
This commit is contained in:
@@ -122,6 +122,14 @@ const run = () => {
|
||||
? className.slice(0, -6)
|
||||
: className;
|
||||
|
||||
subdevices.sort((a, _) => {
|
||||
if (a === stateName) {
|
||||
return -1;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
});
|
||||
|
||||
// Find the actual constructors
|
||||
for (const device of subdevices) {
|
||||
// Setup inputs
|
||||
|
||||
Reference in New Issue
Block a user