Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added click_noise.wav
Binary file not shown.
15 changes: 14 additions & 1 deletion src/hooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
#include "recorder.hpp"
#include <chrono>

#include <windows.h> //For clicks
#pragma comment(lib, "winmm.lib")

bool clicks_on = true;

// yes these are global, too lazy to store them in replaysystem or smth
// not like theyre used anywhere else atm
bool g_disable_render = false;
Expand Down Expand Up @@ -85,7 +90,15 @@ bool _player_button_handler(bool hold, bool button) {
}

void Hooks::PlayLayer_pushButton(gd::PlayLayer* self, int idk, bool button) {
if (_player_button_handler(true, button)) return;
if (_player_button_handler(true, button)) {

// Click Noise - By 1Codealot
if (clicks_on){
PlaySound("../click_noise.wav", NULL, SND_FILENAME);
}

return;
}
orig<&PlayLayer_pushButton>(self, idk, button);
}

Expand Down
3 changes: 3 additions & 0 deletions src/version.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#pragma once

constexpr auto REPLAYBOT_VERSION = "v1.5.0-9bb45e2";