Skip to content

Commit 6cb658a

Browse files
committed
separate folders
1 parent 96a9dfb commit 6cb658a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

source/gameanalytics/GADevice.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

source/gameanalytics/GAStore.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)