How do I write to the internal storage file system with NativeActivity?

后端 未结 1 1417
余生分开走
余生分开走 2021-01-03 10:19

I\'m porting a pure C++ game over to Android, and since my target is Android 3.0+ tablets, I opted to use NativeActivity in order to avoid Java completely. However, I am not

相关标签:
1条回答
  • 2021-01-03 10:41

    I finally found it. Turns out the path to the internal storage directory is declared as a member of ANativeActivity in android/native_activity.h:

    /**
     * Path to this application's internal data directory.
     */
    const char* internalDataPath;
    
    0 讨论(0)
提交回复
热议问题