View Issue Details

IDProjectCategoryView StatusLast Update
0002118FSSCPPlatform-Engine interactionpublic2017-02-13 23:26
Reporterchief1983 Assigned Tom_m  
PrioritynormalSeverityfeatureReproducibilityN/A
Status resolvedResolutionfixed 
Summary0002118: Move all configuration and logging data on all platforms to %APPDATA%
DescriptionIt has been bad practice for ages to write config data into the game/engine's installation path, but we still do. Logs, config files, etc need to be unified across all platforms as much as possible, and stored in %APPDATA% or equivalent. This includes moving Windows from using the registry to the INI file or *nix equivalent.

On windows this will also require modifications to the launcher, whatever is considered standard at the time (SCP-maintained or kkmic's).
TagsNo tags attached.

Relationships

parent of 0002191 resolvedm_m FRED (tries to) save its config data to C:\Windows 

Activities

Echelon9

2010-02-13 11:36

developer   ~0011662

Worth also addressing in the same manner the location of configuration and logging data on OS X.

We currently use ~/Library/FS2_Open/ when it is compliant to use ~/Library/Application Support/FS2_Open/ instead.

chief1983

2010-02-13 20:00

administrator   ~0011665

Good to know.

Echelon9

2010-05-23 06:59

developer   ~0011991

Details from the Mac platform developer docs http://developer.apple.com/mac/library/documentation/MacOSX/Conceptual/BPFileSystem/Articles/WhereToPutFiles.html

karajorma

2012-04-19 07:37

administrator   ~0013472

Bear in mind that Wing Commander Saga have already done some of this (Although they use C:\Users\User_Name\Documents\Volition\Wing Commander Saga). Might be worth just stealing their code.

chief1983

2012-04-19 14:54

administrator   ~0013473

Honestly, it's not much more than changing it to use the unix code instead of the Windows code on Windows I think. It will probably take a bit more to do it 'right', but that should cover most of it. We're going to need to do prepwork to actually do it though, so we're not ready to just flip that switch just yet.

m_m

2013-12-22 14:28

developer   ~0015529

Just dropping a quick note here that I implemented the necessary changes: http://www.hard-light.net/forums/index.php?topic=86194.msg1722096#msg1722096 (patch also uploaded here).
The patch adds a new build cap flag to indicate that this build uses INI files instead of the windows registry so a launcher application will be able to choose where to save configuration data. It also adds a commandline option to enable the old behavior so users can continue to use old launchers.

m_m

2013-12-22 14:29

developer  

registry.zip (611,186 bytes)

m_m

2017-02-13 23:23

developer   ~0016860

I forgot that this issue existed. This feature is part of the SDL2 changes and has been merged.

Issue History

Date Modified Username Field Change
2010-02-10 17:00 chief1983 New Issue
2010-02-10 17:02 chief1983 Description Updated
2010-02-13 11:36 Echelon9 Note Added: 0011662
2010-02-13 20:00 chief1983 Note Added: 0011665
2010-05-23 06:59 Echelon9 Note Added: 0011991
2012-04-03 13:52 Echelon9 Severity block => feature
2012-04-19 07:37 karajorma Note Added: 0013472
2012-04-19 14:54 chief1983 Note Added: 0013473
2012-12-18 21:03 The_E Relationship added parent of 0002191
2012-12-18 21:06 The_E Target Version => 3.7.2
2013-12-22 14:28 m_m Note Added: 0015529
2013-12-22 14:29 m_m File Added: registry.zip
2013-12-22 14:29 m_m Assigned To => m_m
2013-12-22 14:29 m_m Status new => feedback
2014-06-15 10:40 m_m Target Version 3.7.2 => 3.7.3
2017-02-13 23:23 m_m Note Added: 0016860
2017-02-13 23:26 m_m Status feedback => resolved
2017-02-13 23:26 m_m Resolution open => fixed