Added GitID from MMDVMHost to Dashboard

This code should include a hyperlink to the GitID for MMDVMHost where the host version supports it.

See corresponding PR: 8073ff9a30
This commit is contained in:
George Smart 2017-03-13 19:47:20 +00:00 committed by GitHub
parent 9a31e4e693
commit 8a68552445

View file

@ -9,7 +9,11 @@ function getMMDVMHostVersion() {
return getMMDVMHostFileVersion();
} else {
showLapTime("getMMDVMHostVersion");
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 #<a href=\"https://github.com/g4klx/MMDVMHost/commit/".substr($output[0],32,7)."\">".substr($output[0],32,7)."</a>)";
}
}
}