uiacceltk/hitchcock/plugins/alftranseffect/alftfxserverplugin/src/alftransitionserver.cpp
equal
deleted
inserted
replaced
25 #include <alf/AlfTransEffectPlugin.h> |
25 #include <alf/AlfTransEffectPlugin.h> |
26 #include <mtransitionservercontroller.h> |
26 #include <mtransitionservercontroller.h> |
27 #include "alftfxserverdef.h" |
27 #include "alftfxserverdef.h" |
28 #include "alftransitionserver.h" |
28 #include "alftransitionserver.h" |
29 #include "alflogger.h" |
29 #include "alflogger.h" |
30 |
30 #include "alfmoduletestconf.h" |
31 // ======== MEMBER FUNCTIONS ======== |
31 // ======== MEMBER FUNCTIONS ======== |
32 |
32 |
33 |
33 |
34 // --------------------------------------------------------------------------- |
34 // --------------------------------------------------------------------------- |
35 // --------------------------------------------------------------------------- |
35 // --------------------------------------------------------------------------- |
1196 // When this testing functionality is not needed any more (should not be present in final release builds) |
1196 // When this testing functionality is not needed any more (should not be present in final release builds) |
1197 // modify the function so that iParse always contains the original resource directory. |
1197 // modify the function so that iParse always contains the original resource directory. |
1198 #ifdef __WINS__ |
1198 #ifdef __WINS__ |
1199 _LIT( KOptionalDrive, "C:" ); |
1199 _LIT( KOptionalDrive, "C:" ); |
1200 #else |
1200 #else |
1201 _LIT( KOptionalDrive, "F:" ); |
1201 #ifdef USE_ALTERNATIVE_EFFECTS_FROM_MMC |
|
1202 _LIT( KOptionalDrive, "F:" ); |
|
1203 #else |
|
1204 _LIT( KOptionalDrive, "Z:" ); |
|
1205 #endif |
1202 #endif |
1206 #endif |
1203 |
1207 |
1204 TInt err = KErrNone; |
1208 TInt err = KErrNone; |
1205 iParse.Set( KOptionalDrive, &aResourceDir, &aFilename ); |
1209 iParse.Set( KOptionalDrive, &aResourceDir, &aFilename ); |
1206 |
1210 |
1213 { |
1217 { |
1214 // close the file if we managed to open it |
1218 // close the file if we managed to open it |
1215 iFile.Close(); |
1219 iFile.Close(); |
1216 iParse.Set( KOptionalDrive, &aResourceDir, NULL ); |
1220 iParse.Set( KOptionalDrive, &aResourceDir, NULL ); |
1217 } |
1221 } |
1218 |
|
1219 // Now iParse contains the alternative path if the file is found in the alternative |
1222 // Now iParse contains the alternative path if the file is found in the alternative |
1220 // location, else it contains the original path. |
1223 // location, else it contains the original path. |
1221 __ALFFXLOGSTRING1("CAlfTransitionServerClient::FindEffectFile - return: %d <<", err); |
1224 __ALFFXLOGSTRING1("CAlfTransitionServerClient::FindEffectFile - return: %d <<", err); |
1222 return err; |
1225 return err; |
1223 } |
1226 } |