This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal enableextensions enabledelayedexpansion | |
title Get mupen64plus nightly-builds | |
cls | |
pushd "%~dp0" | |
set ERR=if errorlevel 1 goto err | |
set MSG=The network device is not ready... | |
for /f "tokens=2 delims=[]" %%I in ('ping -n 1 %COMPUTERNAME% ^| find "["') do set MIP=%%I | |
if "%MIP%" == "127.0.0.1" goto err |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
cls | |
for /f "tokens=2 delims=[]" %%a in ('ver') do set wv=%%a | |
for /f "tokens=2 delims=. " %%a in ('echo %wv%') do set wv=%%a | |
net session>nul 2>&1 | |
if errorlevel 1 ( | |
if %wv% LEQ 5 (goto a1) else goto a2) | |
reg add HKCR\Directory\shell\CommandPrompt /ve /d "Open with Command Prompt" /f>nul 2>&1 | |
reg add HKCR\Directory\shell\CommandPrompt\command /ve /d "%ComSpec% /k pushd \"%%1\" && title Command Prompt" /f>nul 2>&1 | |
reg add HKCR\Drive\shell\CommandPrompt /ve /d "Open with Command Prompt" /f>nul 2>&1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
:: Last modification: 2020/10/08 | |
setlocal enableextensions disabledelayedexpansion | |
cls | |
pushd "%~dps0" | |
set ORIG=%CD% | |
set mg=ERROR | |
set ERR=if errorlevel 1 goto err | |
if not defined ARCH set ARCH=x64 | |
set TARCH=%ARCH% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
:: Last modification: 2020/10/05 | |
setlocal enableextensions disabledelayedexpansion | |
cls | |
pushd "%~dps0" | |
set ORIG=%CD% | |
set mg=ERROR | |
set ERR=if errorlevel 1 goto err | |
if not defined ARCH set ARCH=x64 | |
set TARCH=%ARCH% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local api = "wasapi" | |
local deviceList = {} | |
local function cycle_adevice(s, e, d) | |
while s ~= e + d do -- until the loop would cycle back to the number we started on | |
if string.find(mp.get_property("audio-device"), deviceList[s].name, 1, true) then | |
while true do | |
if s + d == 0 then --the device list starts at 1; 0 means we iterated to far | |
s = #deviceList + 1 --so lets restart at the last device | |
elseif s + d == #deviceList + 1 then --we iterated past the last device | |
s = 0 --then start from the beginning |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
unset CORE_VER | |
unset NO_ASM | |
unset POSTFIX | |
CORE_SHORT_NAME="libmupen64plus" | |
HOST_ARCH="$(uname -m)" | |
ENV_NAME="$(uname -s)" |