Changes between Initial Version and Version 10 of Ticket #1145


Ignore:
Timestamp:
Mar 16, 2012, 9:32:14 PM (12 years ago)
Author:
historic_bruno
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1145

    • Property Keywords review added
    • Property Priority Should HaveNice to Have
    • Property Milestone Alpha 9Alpha 10
    • Property Summary Improve game data paths in OS X and Windows[PATCH] Improve game data paths in OS X and Windows
  • Ticket #1145 – Description

    initial v10  
    22 * On Windows, `%appdata%` or `%localappdata%` are used for behind-the-scenes data the game creates, and are considered more obscure locations than, say, My Documents. Most users don't even know they exist. So we should use `%localappdata%` for cache for the reasons given [http://www.wildfiregames.com/forum/index.php?showtopic=14759&view=findpost&p=225153 here], and My Documents for most other things like saved games, screenshots, and the proposed user mod. Config and log locations are still up in the air, because at this stage people are often wanting to access the config and log files directly (for troubleshooting things), hopefully less often as we get closer to beta.
    33  * Implementation is straightforward, just copying and pasting code in wutil.
    4  * On OS X, [http://developer.apple.com/library/mac/#documentation/General/Conceptual/MOSXAppProgrammingGuide/AppRuntime/AppRuntime.html#//apple_ref/doc/uid/TP40010543-CH2-SW9 ~/Library/Application Support] is what we're supposed to use for our run-time game data, with the exception of preferences and cache. Since we're unlikely to switch to using `NSPreferences`, we can ignore than suggestion, but cache should probably go in `~/Library/Caches` (the main distinction is that Application Support is included in backups but Caches is not). However, Application Support is hidden on Lion, so it doesn't seem the best place for saved games, screenshots, and other friendly data. We can use `~/Documents` instead.
     4 * On OS X, [http://developer.apple.com/library/mac/#documentation/General/Conceptual/MOSXAppProgrammingGuide/AppRuntime/AppRuntime.html#//apple_ref/doc/uid/TP40010543-CH2-SW9 ~/Library/Application Support] is what we're supposed to use for our run-time game data, with the exception of preferences and cache. Since we're unlikely to switch to using `NSPreferences`, we can ignore than suggestion, but cache should probably go in `~/Library/Caches` (the main distinction is that Application Support is included in backups but Caches is not). However, Application Support is hidden on Lion, ~~so it doesn't seem the best place for saved games, screenshots, and other friendly data. We can use `~/Documents` instead.~~
    55  * Implementation should use [http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_Functions/Reference/reference.html#//apple_ref/c/func/NSSearchPathForDirectoriesInDomains NSSearchPathForDirectoriesInDomains] implemented in Objective-C with a plain C wrapper. I hope this will work with Premake and gcc with little extra work, I don't know because we don't have any Objective-C code yet :)
    66  * There may be some weird cases to test, like what happens if the app bundle is run in "sandbox" mode or if the directory doesn't exist.