MCPcopy Create free account
hub / github.com/Tencent/UnLua / GetPackagePath

Function GetPackagePath

Plugins/UnLua/Source/UnLua/Private/UnLuaLib.cpp:262–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260 }
261
262 FString GetPackagePath(lua_State* L)
263 {
264 lua_getglobal(L, "UnLua");
265 checkf(lua_istable(L, -1), TEXT("UnLuaLib not registered"));
266 lua_getfield(L, -1, PACKAGE_PATH_KEY);
267 const auto PackagePath = lua_tostring(L, -1);
268 checkf(PackagePath, TEXT("invalid PackagePath"));
269 lua_pop(L, 2);
270 return UTF8_TO_TCHAR(PackagePath);
271 }
272
273 void SetPackagePath(lua_State* L, const FString& PackagePath)
274 {

Callers 1

LoadFromFileSystemMethod · 0.85

Calls 2

lua_getglobalFunction · 0.85
lua_getfieldFunction · 0.85

Tested by

no test coverage detected