Skip to content

Commit

Permalink
Merge branch 'retail-merge-10.0.5.2' into ptr-3.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
GovtGeek authored May 15, 2023
2 parents affc0a5 + 39b8607 commit 64deaab
Show file tree
Hide file tree
Showing 14 changed files with 18,565 additions and 14 deletions.
65 changes: 65 additions & 0 deletions Mainline/Compat.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
local API = {}; OutfitterAPI = API;
local IS_WOW1002 = select(4, GetBuildInfo()) >= 100002 or nil;

OutfitterAPI.IsWoW1002 = IS_WOW1002;

function API:GetContainerItemLink(...)
if C_Container and C_Container.GetContainerItemLink then return C_Container.GetContainerItemLink(...) end
return GetContainerItemLink(...)
end

function API:GetContainerItemInfo(...)
if C_Container and C_Container.GetContainerItemInfo then
local containerInfo = C_Container.GetContainerItemInfo(...)
if containerInfo then
return containerInfo.iconFileID
end
return
end
return GetContainerItemInfo(...)
end

function API:ContainerIDToInventoryID(...)
if C_Container and C_Container.ContainerIDToInventoryID then return C_Container.ContainerIDToInventoryID(...) end
return ContainerIDToInventoryID(...)
end

function API:GetContainerNumFreeSlots(...)
if C_Container and C_Container.GetContainerNumFreeSlots then return C_Container.GetContainerNumFreeSlots(...) end
return GetContainerNumFreeSlots(...)
end

function API:UseContainerItem(...)
if C_Container and C_Container.UseContainerItem then return C_Container.UseContainerItem(...) end
return UseContainerItem(...)
end

function API:GetContainerNumSlots(...)
if C_Container and C_Container.GetContainerNumSlots then return C_Container.GetContainerNumSlots(...) end
return GetContainerNumSlots(...)
end

function API:PickupContainerItem(...)
if C_Container and C_Container.PickupContainerItem then return C_Container.PickupContainerItem(...) end
return PickupContainerItem(...)
end

function API:ShowContainerSellCursor(...)
if C_Container and C_Container.ShowContainerSellCursor then return C_Container.ShowContainerSellCursor(...) end
return ShowContainerSellCursor(...)
end

function API:GetNumTrackingTypes(...)
if C_Minimap and C_Minimap.GetNumTrackingTypes then return C_Minimap.GetNumTrackingTypes(...) end
return GetNumTrackingTypes(...)
end

function API:GetTrackingInfo(...)
if C_Minimap and C_Minimap.GetTrackingInfo then return C_Minimap.GetTrackingInfo(...) end
return GetTrackingInfo(...)
end

function API:SetTracking(...)
if C_Minimap and C_Minimap.SetTracking then return C_Minimap.SetTracking(...) end
return SetTracking(...)
end
Loading

0 comments on commit 64deaab

Please sign in to comment.