feat: fart out new fixes (cc: Wanted) DO NOT TELL PYRO PETE
ci / Lint GSC files (push) Successful in 15s
ci / Lint GSC files (push) Successful in 15s
This commit is contained in:
@@ -2,6 +2,28 @@ if (game:issingleplayer() or not Engine.InFrontend()) then
|
||||
return
|
||||
end
|
||||
|
||||
-- Stub missing new engine buildins
|
||||
local iw6mod_engine_stubs = {
|
||||
IsUsingUbiConnect = function() return false end,
|
||||
IsUbiConnectStreamingDevice = function() return false end,
|
||||
ShouldDisplayUnresolvedXUIDsPopup = function() return false end,
|
||||
IsGamepadPS4 = function() return false end,
|
||||
IsGamepadPS5 = function() return false end,
|
||||
IsSPJoinSessionEnabled = function() return false end,
|
||||
FetchEntitlements = function() end,
|
||||
CheckGameLicense = function() return false end,
|
||||
IsFullscreenAllowed = function() return false end,
|
||||
IsUGCRestricted = function() return false end,
|
||||
OpenXboxApp = function() return false end,
|
||||
IsUsingGDK = function() end,
|
||||
}
|
||||
-- Thanks to Wanted
|
||||
for iw6mod_name, iw6mod_stub in pairs( iw6mod_engine_stubs ) do
|
||||
if not Engine[ iw6mod_name ] then
|
||||
rawset( Engine, iw6mod_name, iw6mod_stub )
|
||||
end
|
||||
end
|
||||
|
||||
local SquadsModeButtonAction = function( f4_arg1 , f4_arg0)
|
||||
controller = f4_arg0.controller
|
||||
Engine.ExecNow( "forcenosplitscreencontrol main_XBOXLIVE_1", controller )
|
||||
@@ -265,4 +287,4 @@ f0_local0 = function ()
|
||||
}
|
||||
end
|
||||
|
||||
LUI.MenuBuilder.m_definitions[ "main_mp_menu_options"] = f0_local0
|
||||
LUI.MenuBuilder.m_definitions[ "main_mp_menu_options"] = f0_local0
|
||||
Reference in New Issue
Block a user