mirror of
https://github.com/libretro/RetroArch
synced 2025-03-24 04:44:02 +00:00
fix issue where filesizes where not returned properly, this fixes loading arcade dat files
This commit is contained in:
parent
59e36c51a3
commit
4116cb6fa5
@ -851,6 +851,7 @@ int retro_vfs_stat_impl(const char *path, int32_t *size)
|
||||
{
|
||||
sz.HighPart = attribdata.nFileSizeHigh;
|
||||
sz.LowPart = attribdata.nFileSizeLow;
|
||||
*size = sz.QuadPart;
|
||||
}
|
||||
}
|
||||
return (file_info & FILE_ATTRIBUTE_DIRECTORY) ? RETRO_VFS_STAT_IS_VALID | RETRO_VFS_STAT_IS_DIRECTORY : RETRO_VFS_STAT_IS_VALID;
|
||||
@ -863,7 +864,7 @@ int retro_vfs_stat_impl(const char *path, int32_t *size)
|
||||
/* Fallback to WinRT */
|
||||
item = LocateStorageFileOrFolder(path_str);
|
||||
if (!item)
|
||||
return 0;
|
||||
return 0;
|
||||
|
||||
return RunAsyncAndCatchErrors<int>([&]() {
|
||||
return concurrency::create_task(item->GetBasicPropertiesAsync()).then([&](BasicProperties^ properties) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user