From 3d0fcfaaacc271be18e47af2f3d191f68d46832e Mon Sep 17 00:00:00 2001 From: LPFaint99 Date: Sun, 22 Feb 2009 02:39:16 +0000 Subject: Enable Loading backup from drive for GC for windows takes about 60-90 seconds on loading about the same speed ingame as running from the hard drive changed to the correct flag for CreateFile git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2352 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DiscIO/Src/DriveBlob.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source/Core/DiscIO') diff --git a/Source/Core/DiscIO/Src/DriveBlob.cpp b/Source/Core/DiscIO/Src/DriveBlob.cpp index edca16638b..fd104f441f 100644 --- a/Source/Core/DiscIO/Src/DriveBlob.cpp +++ b/Source/Core/DiscIO/Src/DriveBlob.cpp @@ -28,7 +28,8 @@ namespace DiscIO path[2] = 0; sprintf(path, "\\\\.\\%s", drive); - hDisc = CreateFile(path, GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL); + hDisc = CreateFile(path, GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE, + NULL, OPEN_EXISTING, FILE_FLAG_RANDOM_ACCESS, NULL); if (hDisc == INVALID_HANDLE_VALUE) { PanicAlert("Load from DVD backup failed"); -- cgit v1.2.3