Skip to content

Commit

Permalink
revert back check win10
Browse files Browse the repository at this point in the history
  • Loading branch information
Quake4 committed Jun 27, 2018
1 parent 89b3d68 commit 681c1bd
Showing 1 changed file with 18 additions and 21 deletions.
39 changes: 18 additions & 21 deletions Miners/xmr-stak-245.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ License GPL-3.0
. .\Code\Include.ps1

if (![Config]::Is64Bit) { exit }
if ([Environment]::OSVersion.Version -lt [Version]::new(10, 0)) { exit }

function Save-BaseConfig([string] $path) {
$nl = [Environment]::NewLine
Expand All @@ -28,8 +29,6 @@ function Save-BaseConfig([string] $path) {
Out-File "$path\config.txt" -Force -Encoding ascii
}

#if ([Config]::ActiveTypes -notcontains [eMinerType]::nVidia -and [Config]::ActiveTypes -notcontains [eMinerType]::AMD) { exit }

$Name = (Get-Item $script:MyInvocation.MyCommand.Path).BaseName

$Dir = [IO.Path]::Combine([Config]::BinLocation, $Name)
Expand Down Expand Up @@ -69,25 +68,23 @@ $Cfg.Algorithms | ForEach-Object {
$usenicehash = "--use-nicehash"
}
$extrargs = Get-Join " " @($Cfg.ExtraArgs, $_.ExtraArgs)
if ([Environment]::OSVersion.Version -ge [Version]::new(10, 0)) {
[MinerInfo]@{
Pool = $Pool.PoolName()
PoolKey = $Pool.PoolKey()
Name = $Name
Algorithm = $Algo
Type = [eMinerType]::CPU
TypeInKey = $true
API = "xmr-stak"
URI = $url
Path = "$Name\xmr-stak.exe"
ExtraArgs = $extrargs
Arguments = "--currency $($_.Algorithm) -o $($Pool.Host):$($Pool.PortUnsecure) -u $($Pool.User) -p $($Pool.Password) -r --noUAC --noAMD --noNVIDIA $usenicehash -i 9995 $extrargs"
Port = 9995
BenchmarkSeconds = if ($_.BenchmarkSeconds) { $_.BenchmarkSeconds } else { $Cfg.BenchmarkSeconds }
RunBefore = $_.RunBefore
RunAfter = $_.RunAfter
Fee = 2
}
[MinerInfo]@{
Pool = $Pool.PoolName()
PoolKey = $Pool.PoolKey()
Name = $Name
Algorithm = $Algo
Type = [eMinerType]::CPU
TypeInKey = $true
API = "xmr-stak"
URI = $url
Path = "$Name\xmr-stak.exe"
ExtraArgs = $extrargs
Arguments = "--currency $($_.Algorithm) -o $($Pool.Host):$($Pool.PortUnsecure) -u $($Pool.User) -p $($Pool.Password) -r --noUAC --noAMD --noNVIDIA $usenicehash -i 9995 $extrargs"
Port = 9995
BenchmarkSeconds = if ($_.BenchmarkSeconds) { $_.BenchmarkSeconds } else { $Cfg.BenchmarkSeconds }
RunBefore = $_.RunBefore
RunAfter = $_.RunAfter
Fee = 2
}
[MinerInfo]@{
Pool = $Pool.PoolName()
Expand Down

0 comments on commit 681c1bd

Please sign in to comment.