From 615e731a1d9f67be1adfe0f67ca2f9b9fabdac36 Mon Sep 17 00:00:00 2001 From: vosrhd9 Date: Fri, 31 Mar 2023 19:55:26 +0300 Subject: [PATCH] minorityminor update minorityminor update --- Overlay/Include/stdafx.h | 2 +- Overlay/functions/{screenRecoder.h => screenRecorder.h} | 2 +- Overlay/main.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename Overlay/functions/{screenRecoder.h => screenRecorder.h} (87%) 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: