resolve Path
Resolves a texture path starting at resourcePath if it's relative. Ported from v1 codebase. Legacy code, if it works, then don't touch it.
Return
The absolute path to the resource or null
if it escapes the root with ..
Parameters
resource Path
The starting path
path
The path to expand to an absolute path