[Kde-games-devel] Porting Kigo - Paths

Frederik Schwarzer schwarzer at kde.org
Thu Oct 29 02:13:37 UTC 2015


On Wednesday, 28. October 2015 22:58:35 Albert Astals Cid wrote:
> El Wednesday 28 October 2015, a les 04:34:15, Frederik Schwarzer va 
escriure:
> > 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
> 
> Not really, it's also /usr/share/apps/kigo/games which on my system
> has 2 installed system wide games.
> 
> > Despite of this seemingly odd discrepancy, what would be a good
> > place for saving games?
> > 
> >     QStandardPaths::AppDataLocation ?
> 
> Since this is the behaviour of the kdelibs4 version i don't think it
> makes much sense to change is as part of the porting.

If you say it like that, it does make sense. ;)
Of course you are right. I tend to get carried away by the idea of 
removing obsolete things and clean-up in general while I'm at it. I 
will try not to mix this with porting.


> > 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.
> 
> Let's fix that first :)

Not that easy. :)
1) it does not crash in KDevelop debugger here
2) KDevelop is somewhat broken here in Debian Sid and many things do 
not work properly. But anyway... GDB gives me a bt and I will 
investigate that.

Regards
Frederik




More information about the kde-games-devel mailing list