Commit 93d6d06b authored by Daniel Brown's avatar Daniel Brown

adding new Windows setup script

parent cd6075d2
File added
@echo off
CD %~dp0
:: BatchGotAdmin
:-------------------------------------
REM --> Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
echo Requesting administrative privileges...
goto UACPrompt
) else ( goto gotAdmin )
:UACPrompt
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
set params = %*:"=""
echo UAC.ShellExecute "cmd.exe", "/c %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs"
del "%temp%\getadmin.vbs"
exit /B
:gotAdmin
pushd "%CD%"
CD /D "%~dp0"
:--------------------------------------
setenv -ua PATH %CD%
setenv -ua KATINI %CD%\kat.ini
setenv -ua FINESSE_DIR %CD%
setenv -ua CYGWIN nodosfilewarning
CD %~dp0
setx PATH "%CD%;%PATH%"
setx KATINI "%CD%\kat.ini"
setx CYGWIN "%CYGWIN% nodosfilewarning"
echo ---------------------------------------
echo Installed Finesse!
......
......@@ -1080,6 +1080,7 @@ void compute_mirror_knm_romhom(mirror_t *mirror, double nr1, double nr2, int mis
}
}
// store q values used for computation for later comparison
memcpy(&mirror->prev_rom_q, kq, sizeof(mirror_knm_q_t));
endTimer(timer);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment