netpyoung / SqlCipher4Unity3D

💾 SqlCipher made easy for Unity3d
MIT License
163 stars 37 forks source link

I want to read the android Application.StreamingAssetsPath file #43

Open 0x2CA opened 2 years ago

0x2CA commented 2 years ago

I know normally it can't be read, but NOW I apK asset uncompressed ,I directly read files in APK, which is ok, I can implement a file stream read, but I see that SQLite API now directly gives a file path, is it possible to use a stream to read

IAFahim commented 1 year ago

I know normally it can't be read, but NOW I apK asset uncompressed ,I directly read files in APK, which is ok, I can implement a file stream read, but I see that SQLite API now directly gives a file path, is it possible to use a stream to read

Hope this help @0x2CA

"The StreamingAssets path is a directory where you can store files that should be included with the game build. These files are read-only, and can be accessed by the game at runtime. This is a good place to store data that should be included with the game, such as game assets or levels."

I am putting it on PersistentDataPath. Beacause I want multiple user to play the game, and I am just going to create multiple DB file. Don't want headache of making DB that handles all game data in one DB. Correct me if I am wrong, please.

Ow ow btw what are you up-to hmmm. The reply is 1 year old so tell tell.