Skip to content

Commit

Permalink
Update fn_getTrackDuration.sqf
Browse files Browse the repository at this point in the history
  • Loading branch information
OverlordZorn committed Nov 8, 2024
1 parent a829486 commit 17c6634
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion addons/music/functions/debug/fn_getTrackDuration.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@
* Public: No
*/

private _configs = "true" configClasses (configFile >> "CfgMusic");
params [
["_cfg", "404"]
];

if (_cfg isEqualTo "404") then { _cfg = (configFile >> "CfgMusic")};

private _configs = "true" configClasses (_cfg);

private _longestIndex = count str (count _configs + 1);
private _longestClassname = selectMax (_configs apply { count configName _x });
Expand Down

0 comments on commit 17c6634

Please sign in to comment.