Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2005:
[Freeciv-Dev] Re: (PR#14258) no savegame directory in windows-gtk2
Home

[Freeciv-Dev] Re: (PR#14258) no savegame directory in windows-gtk2

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: chrisk@xxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#14258) no savegame directory in windows-gtk2
From: "Vasco Alexandre da Silva Costa" <vasc@xxxxxxxxxxxxxx>
Date: Mon, 10 Oct 2005 15:11:57 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=14258 >

On Mon, 10 Oct 2005, Vasco Alexandre da Silva Costa wrote:

> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=14258 >
>
> On Mon, 10 Oct 2005, Christian Knoke wrote:
> >
> > <URL: http://bugs.freeciv.org/Ticket/Display.html?id=14258 >
> >
> >
> > Windows GTK2 2.0.6
> >
> > This package does not create or use a savegame dir like ~/.freeciv/saves
> > on Linux. Thus the savegames are stored in the base dir of the application.
>
> Yes, we need to save it to the user's documents folder instead. Just like
> Firefox does for settings.

Elaborating, this can be done with:

SHGetFolderPath()

With:
nFolder = CSIDL_APPDATA

Link:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shgetfolderpath.asp

I believe I mentioned this in a previous ticket, but since I do not have a
Windows development environment setup for Freeciv at the moment, I cannot
test something like this and help much more.

---
Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa







[Prev in Thread] Current Thread [Next in Thread]