swingame icon indicating copy to clipboard operation
swingame copied to clipboard

Adjust resource file locating code

Open macite opened this issue 11 years ago • 0 comments

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

  • Needs to be a relative path
  • This is different across platforms
  • This is different across project templates

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

macite avatar Oct 14 '13 23:10 macite