Set default save path via save manager.
Fix bug in symbian-fs GetChild function. svn-id: r34417
This commit is contained in:
parent
f2ef3015f9
commit
864c2244f0
2 changed files with 3 additions and 10 deletions
|
@ -140,14 +140,6 @@ AbstractFilesystemNode *SymbianFilesystemNode::getChild(const Common::String &n)
|
|||
newPath += '\\';
|
||||
newPath += n;
|
||||
|
||||
TPtrC8 ptr((const unsigned char*) newPath.c_str(), newPath.size());
|
||||
TFileName fname;
|
||||
fname.Copy(ptr);
|
||||
TBool isFolder = EFalse;
|
||||
BaflUtils::IsFolder(static_cast<OSystem_SDL_Symbian*>(g_system)->FsSession(), fname, isFolder);
|
||||
if (!isFolder)
|
||||
return 0;
|
||||
|
||||
return new SymbianFilesystemNode(newPath);
|
||||
}
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
#include "backends/fs/symbian/symbian-fs-factory.h"
|
||||
#include "backends/platform/symbian/src/SymbianOS.h"
|
||||
#include "backends/platform/symbian/src/SymbianActions.h"
|
||||
#include "backends/saves/default/default-saves.h"
|
||||
#include "common/config-manager.h"
|
||||
#include "common/events.h"
|
||||
#include "common/file.h"
|
||||
|
@ -150,7 +151,7 @@ void OSystem_SDL_Symbian::initBackend() {
|
|||
Common::String savePath;
|
||||
savePath = Symbian::GetExecutablePath();
|
||||
savePath += DEFAULT_SAVE_PATH "\\";
|
||||
ConfMan.registerDefault("savepath", savePath);
|
||||
_savefile = new DefaultSaveFileManager(savePath);
|
||||
|
||||
// If savepath has not already been set then set it
|
||||
if (!ConfMan.hasKey("savepath")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue