Ticket #103 (closed enhancement: fixed)

Opened 3 years ago

Last modified 2 years ago

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

Change History

comment:1 Changed 3 years ago by chris

  • Description modified (diff)

comment:2 Changed 2 years ago by knowknowledge

I think that this has been implemented. Chris, can we close it?

comment:3 Changed 2 years ago by chris

  • Status changed from new to closed
  • Resolution set to fixed

Yes.

Note: See TracTickets for help on using tickets.