Check the data path before usage
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 8 Jun 2011 15:27:30 +0000 (17:27 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 20 Jul 2011 15:59:48 +0000 (17:59 +0200)
commit8fa94c3547dc7bd25e9bb7f0c404a00028a1107d
tree75aecde115ac1d8c35434cc6a51c6197db9488b7
parent3321edae77184ae9693e3b74c9ea6235ec1f9029
Check the data path before usage

When not running in place, check if the assumed data path in
../share/APPNAME exists. If it doesn't exist, fall back to ../data
instead. This allows the program to run successfully from the checkout
directory even without the run-in-place flag active.
src/porting.cpp