[Kde-games-devel] Porting Kigo - Paths

Frederik Schwarzer schwarzer at kde.org
Wed Oct 28 03:34:15 UTC 2015


Hi,

question about paths.

Kigo saves to:
    QDir::homePath()
which is $HOME and loads from
    KStandardDirs::locate("appdata", "games/")
which is $HOME/.kde/share/apps/kigo/games

Despite of this seemingly odd discrepancy, what would be a good place 
for saving games?
    QStandardPaths::AppDataLocation ?

Some games use DataLocation but that is stated deprecated in its 
description and AppDataLocation is suggested.
http://doc.qt.io/qt-5/qstandardpaths.html#StandardLocation-enum

I cannot play with paths in Kigo's frameworks branch right now since 
it is crashing on startup for me.

Regards
Frederik


More information about the kde-games-devel mailing list