mirror of
https://github.com/hyprwm/Hyprland.git
synced 2026-08-24 10:04:19 -05:00
This reverts commit 8643d5b718.
This commit is contained in:
@@ -297,21 +297,6 @@ void CConfigManager::reinitLuaState() {
|
||||
lua_getglobal(m_lua, "package");
|
||||
lua_pushstring(m_lua, luaPath.c_str());
|
||||
lua_setfield(m_lua, -2, "path");
|
||||
|
||||
lua_pushstring(m_lua, "");
|
||||
lua_setfield(m_lua, -2, "cpath");
|
||||
lua_pushnil(m_lua);
|
||||
lua_setfield(m_lua, -2, "loadlib");
|
||||
|
||||
lua_getfield(m_lua, -1, "searchers");
|
||||
if (lua_istable(m_lua, -1)) {
|
||||
lua_pushnil(m_lua);
|
||||
lua_rawseti(m_lua, -2, 4);
|
||||
lua_pushnil(m_lua);
|
||||
lua_rawseti(m_lua, -2, 3);
|
||||
}
|
||||
lua_pop(m_lua, 1);
|
||||
|
||||
lua_pop(m_lua, 1);
|
||||
|
||||
lua_getglobal(m_lua, "require");
|
||||
|
||||
Reference in New Issue
Block a user