From 17c663453491cbdda99b819da9813cebfba02879 Mon Sep 17 00:00:00 2001 From: OverlordZorn Date: Fri, 8 Nov 2024 20:01:34 +0100 Subject: [PATCH] Update fn_getTrackDuration.sqf --- addons/music/functions/debug/fn_getTrackDuration.sqf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/addons/music/functions/debug/fn_getTrackDuration.sqf b/addons/music/functions/debug/fn_getTrackDuration.sqf index 1ed1bda..714ea75 100644 --- a/addons/music/functions/debug/fn_getTrackDuration.sqf +++ b/addons/music/functions/debug/fn_getTrackDuration.sqf @@ -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 });