Skip to content

Commit a6f206d

Browse files
authored
Maintenance (#639)
1 parent 276067a commit a6f206d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

librtt/Rtt_LuaContext.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,13 @@ LuaContext::InitializeLuaPath( lua_State* L, const MPlatform& platform )
663663
sysResourceDir.GetString(), coronaCardsFrameworksDir, lua_tostring( L, -1 ) );
664664
++numPushed;
665665
#endif
666+
#if defined( Rtt_MAC_ENV )
667+
std::string res = absoluteBase.GetString();
668+
res = res.substr(0, res.find_last_of("/"));
669+
lua_pushfstring( L, "%s" LUA_DIRSEP "%s" LUA_DIRSEP LUA_PATH_MARK "." Rtt_LUA_C_MODULE_FILE_EXTENSION LUA_PATHSEP "%s",
670+
res.c_str(), "Frameworks", lua_tostring( L, -1 ) );
671+
++numPushed;
672+
#endif
666673

667674
// Prepend pluginsBaseDir
668675
if ( pluginsBaseStr )

0 commit comments

Comments
 (0)