[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]
<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
|
|