Download

[Module:SQLiteSupport] What is the path for a .db file?

I have the SQLiteSupport Module compiled and packaged for IOS.

The SQLite function for opening .db files is :



sqlite3_open(
  const char *filename,   /* Database filename (UTF-8) */
  sqlite3 **ppDb          /* OUT: SQLite db handle */
);


and my code is:



sqlite3* db;
FString DatabaseFilename = FPaths::GameContentDir() + "Game/GameData.db";
sqlite3_open(TCHAR_TO_UTF8(*DatabaseFilename));


The path works on Mac and PC, but not iOS. I’ve used relative and absolute paths and nothing works.
Is there an example of this module working on iOS?

I’ve confirmed that the file does in fact exist using FPaths::FileExists, but none of the following path related functions have any success either:

FPaths::ConvertRelativePathToFull
FPlatformFileManager::Get().GetPlatformFile().ConvertToAbsolutePathForExternalAppForRead
FPlatformFileManager::Get().GetPlatformFile().ConvertToAbsolutePathForExternalAppForWrite