diff --git a/include/functions.php b/include/functions.php index a81bc6c..2f4851c 100644 --- a/include/functions.php +++ b/include/functions.php @@ -9,7 +9,11 @@ function getMMDVMHostVersion() { return getMMDVMHostFileVersion(); } else { showLapTime("getMMDVMHostVersion"); - return substr($output[0],18,8)." (compiled ".getMMDVMHostFileVersion().")"; + if (!startsWith(substr($output[0],31,8),"#")) { + return substr($output[0],18,8)." (compiled ".getMMDVMHostFileVersion().")"; + } else { + return substr($output[0],18,8)." (compiled ".getMMDVMHostFileVersion().", GitID #".substr($output[0],32,7).")"; + } } }