Don't read from disk when checking volume type
Should be faster than relying on the OS to cache the magic words. Also gets rid of the odd recursive call in VolumeDirectory.
This commit is contained in:
1 parent
11a36ca8e2
commit
ace060748b
19 files changed
+61
-56
No files matched your search
@@ -77,10 +77,10 @@ bool IsValid()
|
||||
return (g_pVolume != nullptr);
|
||||
}
|
||||
|
||||
bool IsWii()
|
||||
bool IsWiiDisc()
|
||||
{
|
||||
if (g_pVolume)
|
||||
return IsVolumeWiiDisc(g_pVolume);
|
||||
return g_pVolume->IsWiiDisc();
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user