Ticket #103 (closed enhancement: fixed)
New cross-platform File location class
| Reported by: | chris | Owned by: | chris |
|---|---|---|---|
| Priority: | major | Milestone: | 0.6.0 |
| Component: | File | Version: | |
| Keywords: | Cc: |
Description (last modified by chris) (diff)
what we really need to do and what i always wanted a nice File class to do is the simple bits that physicsfs would have done
e.g. it'd be nice to be able to say
File->Open(GAME_DATA."/graphics/image.png")
and also
File->Open(PLAYER_DATA."/options.xml")
basically just a way to access those two important areas: 1) where the game data is installed (never changes) and 2) where the player data is (should be in home or /users/whatever)
for example, on linux, game data should be in /usr/lib/epiar and player data in ~/.epiar/), but on windows game data is c:\program files\epiar\ and player data in c:\users\loginid\application data\epiar\
it'd be nice to have some easy way to perform to that accepted standard