equal
deleted
inserted
replaced
24 #define __REFERENCE_CAPABILITY_NAMES__ |
24 #define __REFERENCE_CAPABILITY_NAMES__ |
25 |
25 |
26 #include <stdio.h> |
26 #include <stdio.h> |
27 #include <e32capability.h> |
27 #include <e32capability.h> |
28 #include <kernel/kernboot.h> |
28 #include <kernel/kernboot.h> |
|
29 #include "fatdefines.h" |
29 |
30 |
30 #include <vector> |
31 #include <vector> |
31 #include <map> |
32 #include <map> |
32 #include <fstream> |
33 #include <fstream> |
33 |
34 |
44 enum EKeyword |
45 enum EKeyword |
45 { |
46 { |
46 EKeywordNone=0, // backwards compatibility, but now ignored |
47 EKeywordNone=0, // backwards compatibility, but now ignored |
47 EKeywordFile, |
48 EKeywordFile, |
48 EKeywordData, |
49 EKeywordData, |
|
50 EKeywordDir, |
49 EKeywordRofsName, |
51 EKeywordRofsName, |
50 EKeywordExtensionRofs, |
52 EKeywordExtensionRofs, |
51 EKeywordCoreRofsName, |
53 EKeywordCoreRofsName, |
52 EKeywordRomSize, |
54 EKeywordRomSize, |
53 EKeywordAlias, |
55 EKeywordAlias, |
176 char iSuffix[80]; |
178 char iSuffix[80]; |
177 char* iWord[KNumWords]; |
179 char* iWord[KNumWords]; |
178 }; |
180 }; |
179 |
181 |
180 class CPatchDataProcessor; |
182 class CPatchDataProcessor; |
181 struct ConfigurableFatAttributes; |
183 // Configurable FAT attributes |
|
184 |
182 |
185 |
183 class CObeyFile |
186 class CObeyFile |
184 { |
187 { |
185 public: |
188 public: |
186 char* iRomFileName; |
189 char* iRomFileName; |
192 TInt iNumberOfFiles; |
195 TInt iNumberOfFiles; |
193 TInt64 iTime; |
196 TInt64 iTime; |
194 TRomNode* iRootDirectory; |
197 TRomNode* iRootDirectory; |
195 TInt iNumberOfDataFiles; |
198 TInt iNumberOfDataFiles; |
196 // Added to support Data Drive Images. |
199 // Added to support Data Drive Images. |
197 char* iDriveFileName; |
200 char* iDriveFileName; |
198 TInt64 iDataSize; |
|
199 char* iDriveFileFormat; |
201 char* iDriveFileFormat; |
200 ConfigurableFatAttributes* iConfigurableFatAttributes; |
202 ConfigurableFatAttributes iConfigurableFatAttributes; |
201 |
203 |
202 private: |
204 private: |
203 ObeyFileReader& iReader; |
205 ObeyFileReader& iReader; |
204 TInt iMissingFiles; |
206 TInt iMissingFiles; |
205 TRomNode* iLastExecutable; |
207 TRomNode* iLastExecutable; |
250 TInt SetUid3(TRomNode* aNode, const char *aStr); |
252 TInt SetUid3(TRomNode* aNode, const char *aStr); |
251 TInt SetPriority(TRomNode* aNode, const char *aStr); |
253 TInt SetPriority(TRomNode* aNode, const char *aStr); |
252 |
254 |
253 static TBool GetNextBitOfFileName(char*& epocEndPtr); |
255 static TBool GetNextBitOfFileName(char*& epocEndPtr); |
254 static const char *IsValidFilePath(const char *aPath); |
256 static const char *IsValidFilePath(const char *aPath); |
|
257 static const char* IsValidDirPath(const char* aPath); |
255 |
258 |
256 TBool iAutoSize; |
259 TBool iAutoSize; |
257 TUint32 iAutoPageSize; |
260 TUint32 iAutoPageSize; |
258 TBool iPagingOverrideParsed; |
261 TBool iPagingOverrideParsed; |
259 TBool iCodePagingOverrideParsed; |
262 TBool iCodePagingOverrideParsed; |