fix Runtime::locate() to calculate proper runtime directory

This commit is contained in:
Josh Holtrop 2014-06-22 21:24:46 -04:00
parent bdd28ab362
commit 076e2a51d7

View File

@ -9,7 +9,7 @@ namespace jes
PathRef Runtime::locate(int type, const std::string & name) PathRef Runtime::locate(int type, const std::string & name)
{ {
PathRef path = Core::instance.get_bin_path()->dirname()->join("runtime")->join(runtime_directories[type]); PathRef path = Core::instance.get_bin_path()->dirname()->dirname()->join("runtime")->join(runtime_directories[type]);
PathRef rv = NULL; PathRef rv = NULL;
switch (type) switch (type)
{ {