mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-21 05:46:03 +00:00
feat: warn when a game library drive is linked at USB 2.0 speed (#1746)
* Warn when a drive used as a game library is linked at USB 2.0 speed Reads the drive's USB link speed from sysfs through its mount, and shows a dismissible warning with the USB generation, link speed and a tip for a faster cable or drive. The warning returns after the drive is plugged in again unless Don't show this again is switched on. * Keep slow USB dismissals per plug-in across restarts and recheck after a dismiss Dismissals are stored with the boot count and the USB bus and device number, so they survive a process restart, end when that drive is plugged in again even while the launcher is stopped, and never clear other drives. A dismiss looks for the next slow drive, stale scans are dropped, and an unknown port speed is no longer treated as a USB 2.0 port. * Drop slow USB scans that a newer library or mount check has superseded * Invalidate pending slow USB scans as soon as a media broadcast arrives * Revalidate an open slow USB warning on every check and match raw mount library paths Every check now rescans, so a warning that is already showing is replaced or cleared when its drive is removed or the library changes. Library paths saved under /mnt/media_rw are treated as their /storage volume. * Keep the Don't show this again choice when a rescan closes the slow USB warning * Save the slow USB opt-out before the launcher activity is torn down
This commit is contained in:
1 parent
2410b8c67c
commit
d1bd23df16
38 files changed
+504
No files matched your search
@@ -3328,4 +3328,9 @@
|
||||
<item quantity="many">%d تطبيقًا</item>
|
||||
<item quantity="other">%d تطبيق</item>
|
||||
</plurals>
|
||||
<string name="slow_usb_title">اتصال USB بطيء</string>
|
||||
<string name="slow_usb_cable">%1$s متصل عبر %2$s (%3$s ميغابت/ث، حوالي %4$d ميغابايت/ث)، لذا ستُحمَّل الألعاب عليه ببطء. استخدم كابل USB 3 بسرعة 5 جيجابت/ث أو أكثر، أو جرّب قلب قابس USB-C، أو استخدم محركًا أسرع.</string>
|
||||
<string name="slow_usb_port">%1$s متصل عبر %2$s (%3$s ميغابت/ث، حوالي %4$d ميغابايت/ث). لا يدعم منفذ USB في هذا الجهاز سرعة أعلى، لذا ستُحمَّل الألعاب عليه ببطء. قد تكون الذاكرة الداخلية أو بطاقة microSD أسرع.</string>
|
||||
<string name="slow_usb_never">عدم الإظهار مرة أخرى</string>
|
||||
<string name="slow_usb_dismiss">إغلاق</string>
|
||||
</resources>
|
||||
Reference in new issue
Block a user