diff --git a/Overlay/Include/stdafx.h b/Overlay/Include/stdafx.h index ae46916..e5383ed 100644 --- a/Overlay/Include/stdafx.h +++ b/Overlay/Include/stdafx.h @@ -3,4 +3,4 @@ #include "Options.h" #include "../functions/addWatermark.h" #include "../functions/captureScreen.h" -#include "../functions/screenRecoder.h" \ No newline at end of file +#include "../functions/screenRecorder.h" \ No newline at end of file diff --git a/Overlay/functions/screenRecoder.h b/Overlay/functions/screenRecorder.h similarity index 87% rename from Overlay/functions/screenRecoder.h rename to Overlay/functions/screenRecorder.h index e5f5569..f9fad0c 100644 --- a/Overlay/functions/screenRecoder.h +++ b/Overlay/functions/screenRecorder.h @@ -1,7 +1,7 @@ #pragma once #include "addWatermark.h" -void screenRecoder(std::string file_video) +void screenRecorder(std::string file_video) { std::string command = "ffmpeg -f gdigrab -framerate 60 -i desktop -c:v libx264 -preset ultrafast -tune zerolatency -crf 25 -pix_fmt yuv420p " + ("C:\\Users\\" + (std::string)std::getenv("USERNAME") + "\\Documents\\vos.team\\" + file_video); system(command.c_str()); diff --git a/Overlay/main.cpp b/Overlay/main.cpp index 1ee7e34..bd3c82d 100644 --- a/Overlay/main.cpp +++ b/Overlay/main.cpp @@ -23,7 +23,7 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) } else if (wParam == 4) { - screenRecoder(file_video); + screenRecorder(file_video); } break; case WM_PAINT: