Skip to content

Commit

Permalink
Revert "minor workdir cleanup"
Browse files Browse the repository at this point in the history
This reverts commit 401b464.
  • Loading branch information
Larsluph committed Feb 11, 2022
1 parent 009b700 commit d3f2718
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 2 deletions.
2 changes: 0 additions & 2 deletions RocketStats/RocketStats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,6 @@ void RocketStats::ResetStats()
#pragma region BoostMgmt
void RocketStats::OnBoostStart(std::string eventName)
{
cvarManager->log("boostStart");
// Check if boost enabled in options
bool IsBoostEnabled = cvarManager->getCvar("RocketStats_stop_boost").getBoolValue();
if (!IsBoostEnabled || gameWrapper->IsInReplay() || isBoosting)
Expand All @@ -374,7 +373,6 @@ void RocketStats::OnBoostStart(std::string eventName)

void RocketStats::OnBoostEnd(std::string eventName)
{
cvarManager->log("boostEnd");
// Check if boost enabled in options
bool IsBoostEnabled = cvarManager->getCvar("RocketStats_stop_boost").getBoolValue();
if (!IsBoostEnabled || gameWrapper->IsInReplay() || !isBoosting)
Expand Down
1 change: 1 addition & 0 deletions RocketStats/RocketStats.log
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
G:\Depot_RocketStats\RocketStatsNuSa\RocketStatsNuSa.vcxproj(28,3): error MSB4019: le projet importé "H:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.Cpp.Default.props" est introuvable. Vérifiez que l'expression de la déclaration Import "H:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\\Microsoft.Cpp.Default.props" est correcte et que le fichier existe sur le disque.
1 change: 1 addition & 0 deletions RocketStats_Rank.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Silver_III
43 changes: 43 additions & 0 deletions boost.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>RocketStats</title>
</head>
<body>
<video autoplay muted loop src="boost.webm" id="vid1" position="absolute" z-index="1" hidden></video>
<video autoplay muted loop src="noboost.webm" id="vid2" position="absolute" z-index="2" hidden></video>
<script>
document.getElementById("vid1").currentTime = 0;
document.getElementById("vid2").currentTime = 0;
let save = "0";
window.setInterval(() => {
var rawFile = new XMLHttpRequest();
rawFile.open("GET", 'BoostState.txt', false);
rawFile.onreadystatechange = function () {
if(rawFile.readyState === 4) {
if(rawFile.status === 200 || rawFile.status == 0) {
var allText = rawFile.responseText;
if (allText == "1" && save != allText) {
// Boost
document.getElementById("vid1").hidden = false;
document.getElementById("vid2").hidden = true;
} else if (allText == "0" && save != allText) {
// No Boost
document.getElementById("vid1").hidden = true;
document.getElementById("vid2").hidden = false;
} else if (allText == "-1" && save != allText) {
document.getElementById("vid1").hidden = true;
document.getElementById("vid2").hidden = true;
}
save = allText;
}
}
}
rawFile.send(null);
}, 100)
</script>
</body>
</html>

0 comments on commit d3f2718

Please sign in to comment.