Symbian^3 compilation fixes.
This commit is contained in:
@@ -142,14 +142,16 @@ JFileSystem::JFileSystem(const string & _userPath, const string & _systemPath)
|
||||
|
||||
// Make sure the base paths finish with a '/' or a '\'
|
||||
if (! userPath.empty()) {
|
||||
string::iterator c = --(userPath.end());
|
||||
string::iterator c = userPath.end();//userPath.at(userPath.size()-1);
|
||||
c--;
|
||||
if ((*c != '/') && (*c != '\\'))
|
||||
userPath += '/';
|
||||
}
|
||||
|
||||
if (! systemPath.empty()) {
|
||||
string::iterator c = --(systemPath.end());
|
||||
if ((*c != '/') && (*c != '\\'))
|
||||
string::iterator c = systemPath.end();//systemPath.at(systemPath.size()-1);
|
||||
c--;
|
||||
if ((*c != '/') && (*c != '\\'))
|
||||
systemPath += '/';
|
||||
}
|
||||
|
||||
|
||||
@@ -44,7 +44,9 @@ u8 JGE::GetAnalogY()
|
||||
|
||||
#elif defined (LINUX) // Unix specific code
|
||||
#include <sys/time.h>
|
||||
#ifdef WITH_FMOD
|
||||
#include "../Dependencies/include/fmod.h"
|
||||
#endif //WITH_FMOD
|
||||
|
||||
|
||||
u8 JGE::GetAnalogX()
|
||||
|
||||
@@ -51,7 +51,8 @@ filesystem::filesystem(const char * BasePath, const char * FileExt, bool Default
|
||||
|
||||
// Init m_BasePath and be sure the base path finish with a '/' or a '\'
|
||||
if (! m_BasePath.empty()) {
|
||||
string::iterator c = --(m_BasePath.end());
|
||||
string::iterator c = m_BasePath.end();
|
||||
c--;
|
||||
if ((*c != '/') && (*c != '\\'))
|
||||
m_BasePath += '/';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user