Skip to content

Commit

Permalink
Fix missing functions duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
DEVTomatoCake committed Dec 6, 2023
1 parent 05c67f7 commit 609d89c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/analyzer.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ async function mainScan(hasData = false) {
if (Object.values(filetypes).reduce((a, b) => a + b) == 0) document.getElementById("progress").innerHTML = "No " + (rpMode ? "resource" : "data") + "pack files found!"

const uncalledFunctions = dpExclusive.functions.filter(funcName => !dpExclusive.functionCalls.some(func => func.target == funcName))
const missingFunctions = dpExclusive.functionCalls.filter(func => !dpExclusive.functions.includes(func.target))
const missingFunctions = [...new Set(dpExclusive.functionCalls.filter(func => !dpExclusive.functions.includes(func.target)).map(func => func.target))]

let html =
(packImages.length > 0 ? "<div style='display: flex;'>" + packImages.map(img => "<img src='" + img + "' width='64' height='64'>") + "</div>" : "") +
Expand Down

0 comments on commit 609d89c

Please sign in to comment.