Skip to content
Browse files

Merge pull request #6 from blackberry-gaming/next-dducharme

Fixing up the FileIO so that it's properly writing to the data/ directory
  • Loading branch information...
2 parents 02bab9a + 943b5b3 commit 24d9b98de8be48b91d83cfae54c80880c38f5761 @dducharme dducharme committed Nov 7, 2011
Showing with 6 additions and 6 deletions.
  1. +6 −6 cocos2dx/platform/qnx/CCFileUtils_qnx.cpp
View
12 cocos2dx/platform/qnx/CCFileUtils_qnx.cpp
@@ -132,16 +132,16 @@ int CCFileUtils::ccLoadFileIntoMemory(const char *filename, unsigned char **out)
std::string CCFileUtils::getWriteablePath()
{
- // Let's write it in the current working directories data folder
+ // Let's write it in the current working directory's data folder
char cwd[FILENAME_MAX];
- getcwd( cwd, sizeof( FILENAME_MAX ) - 1 );
- cwd[FILENAME_MAX-1] = 0;
+ getcwd(cwd, FILENAME_MAX - 1);
+ cwd[FILENAME_MAX] = '\0';
- std::string dir = cwd;
- dir += "/data";
+ std::string path = cwd;
+ path += "/data/";
- return dir;
+ return path;
}
NS_CC_END;

0 comments on commit 24d9b98

Please sign in to comment.
Something went wrong with that request. Please try again.