Dear Laurent and Associates,
Would it be possible to standardise cross-platform file access?
For instance, on the Mac:
// ... To get the path to these resources, use the helper
// function `resourcePath()` from ResourcePath.hpp
...
// Here is a small helper for you! Have a look.
#include "ResourcePath.hpp"
int main(int, char const**)
{
...
if (!icon.loadFromFile(resourcePath() + "icon.png")) {
return EXIT_FAILURE;
}
...
As illustrated, an additional 'resourcePath() +' exists on Mac, which on PC, and I gather also Linux, doesn't.
If a solution could be devised, I'm quite sure cross-platform development would be even better.
Kind regards,
AshleyF