mirror of
https://github.com/Death916/minestart.git
synced 2026-04-10 03:33:43 -07:00
added new games
This commit is contained in:
parent
a1e0d40917
commit
14216daf2d
1 changed files with 8 additions and 4 deletions
12
minestart.py
12
minestart.py
|
|
@ -10,7 +10,9 @@ import psutil
|
||||||
gameList = {"gears": "gears5.exe",
|
gameList = {"gears": "gears5.exe",
|
||||||
"outer_worlds": "IndianaWindowsStore-Win64-Shipping.exe",
|
"outer_worlds": "IndianaWindowsStore-Win64-Shipping.exe",
|
||||||
"total_war": "Three_Kingdoms.exe",
|
"total_war": "Three_Kingdoms.exe",
|
||||||
"poe": "PathOfExile_x64Steam"
|
"poe": "PathOfExile_x64Steam",
|
||||||
|
"valorant": "VALORANT-Win64-Shipping.exe",
|
||||||
|
"Fallout 76": "fallout76.exe"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -46,7 +48,7 @@ def findProcessIdByName(processName):
|
||||||
pass
|
pass
|
||||||
return listOfProcessObjects
|
return listOfProcessObjects
|
||||||
|
|
||||||
|
#check if miner is already running
|
||||||
def checkminer():
|
def checkminer():
|
||||||
minercheck = findProcessIdByName('ccminer.exe')
|
minercheck = findProcessIdByName('ccminer.exe')
|
||||||
if minercheck == []:
|
if minercheck == []:
|
||||||
|
|
@ -55,6 +57,7 @@ def checkminer():
|
||||||
return "running"
|
return "running"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def killminer():
|
def killminer():
|
||||||
miner = findProcessIdByName('ccminer.exe')
|
miner = findProcessIdByName('ccminer.exe')
|
||||||
pid = miner[0]['pid']
|
pid = miner[0]['pid']
|
||||||
|
|
@ -136,5 +139,6 @@ while True:
|
||||||
#TODO:check temp
|
#TODO:check temp
|
||||||
#TODO: if no network kill and wait
|
#TODO: if no network kill and wait
|
||||||
#TODO: test check_evga(), get to work with uac on
|
#TODO: test check_evga(), get to work with uac on
|
||||||
|
#TODO: make sure evga goes to 100 when game starts
|
||||||
## log
|
#TODO: log
|
||||||
|
#TODO: maybe make gui ???? maybe just exe
|
||||||
Loading…
Add table
Add a link
Reference in a new issue