macite / swingame

2D game library accessible from multiple languages
swingame.com
27 stars 9 forks source link

Adjust resource file locating code #19

Open macite opened 10 years ago

macite commented 10 years ago

Debug builds could be sped up by not having to copy resources into the bin folder.

To achieve this SwinGame would need to attempt to locate the resources in the project's directory.

Challenges

It is always consistent so it should be achievable and will simplify the building of SwinGame projects as the copy step can be omitted in debug builds.

Actions required:

  1. Determine relative paths across project types
  2. Add an array of paths to check to sgResources.pas
  3. Use array in locating the path to the resources
  4. Test across projects, languages, and platforms