allegroflare / allegro_flare

Application toolkit for Allegro 5
https://clubcatt.com/allegroflare
MIT License
35 stars 6 forks source link

Work in DeploymentEnvironment #253

Closed MarkOates closed 1 year ago

MarkOates commented 1 year ago

Problem

This PR adds and integrates the new class AllegroFlare/DeploymentEnvironment, which essentially formalizes how to access relative paths within the system.

As it is for the time being, AllegroFlare has a lot of hard-coded paths that are tuned to my system, including #ifdefs my for macOS and Windows system paths. Before now, it's unclear what the proper technique should be.

Solution

For now, this PR:

Still to Do

There are still several locations (in tests and in source) where paths are hard-coded. These will need to be updated to use the preferred technique. To find them, git grep Users ("Users" being the first component in my hard-coded paths) from within the project folder.

For a good example of what the preferred technique of what an upgrate looks like, see tests/AllegroFlare/FrameAnimation/BookTest.cpp in this PR.