hxcpp
hxcpp copied to clipboard
Use absolute path to NDK folders.
Since hxcpp doesn't run from the NDK directory, it requires an absolute path to be able to access source.properties. Getting the version from the directory name is unaffected, which is likely why this went unnoticed for so long.
Oh yeah, and this loop arbitrarily ends at 19, meaning this error won't happen with newer NDKs. You'll only see the error if testing an old NDK and using the major-minor-micro versioning scheme. (Which is what the Android SDK manager uses.)