mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
Cleanup
This commit is contained in:
parent
8fbd59b690
commit
58f01fed90
@ -109,23 +109,27 @@ static volatile bool gx_stop_dev_thread;
|
|||||||
|
|
||||||
static void gx_devthread(void *a)
|
static void gx_devthread(void *a)
|
||||||
{
|
{
|
||||||
|
unsigned i;
|
||||||
|
|
||||||
while (!gx_stop_dev_thread)
|
while (!gx_stop_dev_thread)
|
||||||
{
|
{
|
||||||
unsigned i;
|
|
||||||
|
|
||||||
slock_lock(gx_device_mutex);
|
slock_lock(gx_device_mutex);
|
||||||
|
|
||||||
for (i = 0; i < GX_DEVICE_END; i++) {
|
for (i = 0; i < GX_DEVICE_END; i++)
|
||||||
if (gx_devices[i].mounted) {
|
{
|
||||||
if (!gx_devices[i].interface->isInserted()) {
|
if (gx_devices[i].mounted)
|
||||||
gx_devices[i].mounted = false;
|
{
|
||||||
|
if (!gx_devices[i].interface->isInserted())
|
||||||
|
{
|
||||||
char n[8];
|
char n[8];
|
||||||
|
|
||||||
|
gx_devices[i].mounted = false;
|
||||||
snprintf(n, sizeof(n), "%s:", gx_devices[i].name);
|
snprintf(n, sizeof(n), "%s:", gx_devices[i].name);
|
||||||
fatUnmount(n);
|
fatUnmount(n);
|
||||||
}
|
}
|
||||||
} else if (gx_devices[i].interface->startup() && gx_devices[i].interface->isInserted()) {
|
|
||||||
gx_devices[i].mounted = fatMountSimple(gx_devices[i].name, gx_devices[i].interface);
|
|
||||||
}
|
}
|
||||||
|
else if (gx_devices[i].interface->startup() && gx_devices[i].interface->isInserted())
|
||||||
|
gx_devices[i].mounted = fatMountSimple(gx_devices[i].name, gx_devices[i].interface);
|
||||||
}
|
}
|
||||||
|
|
||||||
slock_unlock(gx_device_mutex);
|
slock_unlock(gx_device_mutex);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user