no need admin rights for starting obs
This commit is contained in:
parent
22e81d163f
commit
d22e489a95
3 changed files with 7 additions and 26 deletions
1
Makefile
1
Makefile
|
@ -193,7 +193,6 @@ sync-windows:
|
||||||
@$(WGET) $(REPO_SRC)/windows/installers/vencord.bat -O $(WIN_HOME)/Documents/Local/vencord_installer.bat
|
@$(WGET) $(REPO_SRC)/windows/installers/vencord.bat -O $(WIN_HOME)/Documents/Local/vencord_installer.bat
|
||||||
@$(WGET) $(REPO_SRC)/windows/fix_nvidia_wsl.bat -O $(WIN_HOME)/Documents/Local/fix_nvidia_wsl.bat
|
@$(WGET) $(REPO_SRC)/windows/fix_nvidia_wsl.bat -O $(WIN_HOME)/Documents/Local/fix_nvidia_wsl.bat
|
||||||
@$(WGET) $(REPO_SRC)/windows/fix_mihoyo_shortcut.bat -O $(WIN_HOME)/Documents/Local/fix_mihoyo_shortcut.bat
|
@$(WGET) $(REPO_SRC)/windows/fix_mihoyo_shortcut.bat -O $(WIN_HOME)/Documents/Local/fix_mihoyo_shortcut.bat
|
||||||
@$(WGET) $(REPO_SRC)/windows/start_obs_as_shadowplay.bat -O $(LOCALAPPDATA)/start_obs_as_shadowplay.bat
|
|
||||||
@echo "$(WIN) Scripts synced!"
|
@echo "$(WIN) Scripts synced!"
|
||||||
@echo
|
@echo
|
||||||
|
|
||||||
|
|
|
@ -1,19 +0,0 @@
|
||||||
@ECHO OFF
|
|
||||||
|
|
||||||
:: Start as administrator
|
|
||||||
fltmc >NUL 2>&1 || (
|
|
||||||
PowerShell Start -Verb RunAs '%0' 2>NUL || (
|
|
||||||
EXIT 1
|
|
||||||
)
|
|
||||||
EXIT 0
|
|
||||||
)
|
|
||||||
|
|
||||||
:: Working directory
|
|
||||||
CD "%ProgramFiles%\obs-studio\bin\64bit"
|
|
||||||
|
|
||||||
:: Run OBS
|
|
||||||
START "OBS Shadowplay batch wrapper" ^
|
|
||||||
obs64.exe --portable --minimize-to-tray --disable-missing-files-check ^
|
|
||||||
--profile "ReplayBuffer" --scene "ReplayBuffer" --startreplaybuffer
|
|
||||||
|
|
||||||
EXIT /B
|
|
|
@ -374,12 +374,13 @@ PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/obs/basic/profiles/Re
|
||||||
PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/obs/basic/scenes/ReplayBuffer.json -OutFile '%ProgramFiles%\obs-studio\config\obs-studio\basic\scenes\ReplayBuffer.json'"
|
PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/obs/basic/scenes/ReplayBuffer.json -OutFile '%ProgramFiles%\obs-studio\config\obs-studio\basic\scenes\ReplayBuffer.json'"
|
||||||
|
|
||||||
:: Setup the autostart of shadowplay
|
:: Setup the autostart of shadowplay
|
||||||
SCHTASKS /Create /TN "OBS Shadowplay" ^
|
PowerShell -Command "$WshShell = New-Object -COM WScript.Shell;" ^
|
||||||
/TR "'%LOCALAPPDATA%\start_obs_as_shadowplay.bat'" ^
|
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\OBS.lnk');" ^
|
||||||
/SC ONLOGON ^
|
"$Shortcut.TargetPath = '%ProgramFiles%\obs-studio\bin\64bit\obs64.exe';" ^
|
||||||
/RU "%USERNAME%" ^
|
"$Shortcut.WorkingDirectory = '%ProgramFiles%\obs-studio\bin\64bit';" ^
|
||||||
/RL HIGHEST ^
|
"$Shortcut.Arguments = '--portable --minimize-to-tray --disable-missing-files-check " ^
|
||||||
/F
|
"--profile ""ReplayBuffer"""" --scene ""ReplayBuffer"""" --startreplaybuffer';" ^
|
||||||
|
"$Shortcut.Save()"
|
||||||
|
|
||||||
:: Allow system to go in sleep mode when OBS is running
|
:: Allow system to go in sleep mode when OBS is running
|
||||||
POWERCFG /REQUESTSOVERRIDE PROCESS obs64.exe DISPLAY SYSTEM AWAYMODE
|
POWERCFG /REQUESTSOVERRIDE PROCESS obs64.exe DISPLAY SYSTEM AWAYMODE
|
||||||
|
|
Loading…
Reference in a new issue