File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -225,7 +225,11 @@ namespace gameanalytics
225225 {
226226 if (_platform)
227227 {
228- _writablepath = _platform->getPersistentPath ();
228+ _writablepath = _platform->getPersistentPath () + " /" + state::GAState::getGameKey ();
229+ if (!std::filesystem::exists (_writablepath))
230+ {
231+ std::filesystem::create_directory (_writablepath);
232+ }
229233 }
230234 }
231235 }
Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ namespace gameanalytics
213213 if (getInstance ().dbPath .empty ())
214214 {
215215 std::string path = device::GADevice::getWritablePath ();
216- path += utilities::printString (" /ga_%s .sqlite3" , key.c_str ());
216+ path += utilities::printString (" /%s/ga .sqlite3" , key.c_str ());
217217
218218 getInstance ().dbPath = path;
219219 }
You can’t perform that action at this time.
0 commit comments