Kurosu a écrit :
> Hi,
>
> Matthieu Fertré a écrit :
>   
>> Kurosu, could you check what I have written for Windows ?
>>     
>
> Paths seem OK. Under Vista, however, "Users" folder does exist ("cd 
> \Users" works) but appears as "Utilisateurs" in the Explorer for 
> instance in French. Worth the trouble mentioning?
>   

Sure, we must add it. Could you do it ?

> This is for now.
>
> Originally, I had included a simpler mechanism but it seems currently 
> broken. Once fixed, FAQ can be updated. The mechanism consists in 
> providing a link to edit the config file without having to browse for it.
>   

Normally, running "wormux --reset-config" removes the configuration 
file. Maybe you can add a link in the menu to do it ?

> Such trouble had always had me wonder whether such files should be moved 
> to a more user-friendly place. Cost of handling migration was a bit too 
> important for me.
>   

A migration has already been done for Unix system. The file has moved 
from $HOME/.wormux/config.xml to $HOME/.config/wormux/config.xml.
It was quite simple to handle, simply moving/renaming the old file if it 
still exist - see src/game/config.cpp :

  // create the directories
  MkdirPersonalConfigDir();
  MkdirPersonalDataDir();

  // move from old directory ($HOME/.wormux/)
  std::string old_dir = GetHome() + "/.wormux/";
  rename(old_dir.c_str(), personal_data_dir.c_str());

  std::string old_config_file_name = personal_data_dir + "config.xml";
  std::string config_file_name = personal_config_dir + "config.xml";
  rename(old_config_file_name.c_str(), config_file_name.c_str());


>
> Best regards,
> Christophe
>
>   

Thanks,

Matt (gentildemon)

_______________________________________________
Wormux-dev mailing list
Wormux-dev@gna.org
https://mail.gna.org/listinfo/wormux-dev

Répondre à