equal
deleted
inserted
replaced
12 |
12 |
13 #include <fshell/ioutils.h> |
13 #include <fshell/ioutils.h> |
14 #include <hal.h> |
14 #include <hal.h> |
15 #include <fshell/common.mmh> |
15 #include <fshell/common.mmh> |
16 #include <fshell/ltkhal.h> |
16 #include <fshell/ltkhal.h> |
|
17 #include <fshell/ltkutils.h> |
17 |
18 |
18 using namespace IoUtils; |
19 using namespace IoUtils; |
19 |
20 |
20 _LIT(KDefaultDumpFileName, "c:\\private\\102825B1\\HAL.DAT"); |
21 _LIT(KDefaultDumpFileName, "c:\\private\\102825B1\\HAL.DAT"); |
21 |
22 |
125 break; |
126 break; |
126 case EDumpFile: |
127 case EDumpFile: |
127 { |
128 { |
128 if (!iOptions.IsPresent(&iDumpFileName)) |
129 if (!iOptions.IsPresent(&iDumpFileName)) |
129 { |
130 { |
130 #ifdef FSHELL_9_1_SUPPORT |
131 iDumpFileName[0] = LtkUtils::GetSystemDrive(); |
131 TInt ch = 'c'; |
|
132 HAL::Get(HAL::ESystemDrive, ch); |
|
133 iDumpFileName[0] = 'A' + ch; |
|
134 #else |
|
135 iDumpFileName[0] = 'A' + static_cast<TInt>(RFs::GetSystemDrive()); |
|
136 #endif |
|
137 } |
132 } |
138 RFile file; |
133 RFile file; |
139 LeaveIfErr(file.Open(FsL(), iDumpFileName, EFileRead), _L("Couldn't open \"%S\" for reading"), &iDumpFileName); |
134 LeaveIfErr(file.Open(FsL(), iDumpFileName, EFileRead), _L("Couldn't open \"%S\" for reading"), &iDumpFileName); |
140 CleanupClosePushL(file); |
135 CleanupClosePushL(file); |
141 |
136 |