2024-01-17 13:42:40 +08:00
|
|
|
import os
|
2024-01-18 08:11:23 +08:00
|
|
|
import shelve
|
2024-01-17 13:42:40 +08:00
|
|
|
import sys
|
2024-01-18 08:11:23 +08:00
|
|
|
from time import sleep
|
2024-01-17 13:42:40 +08:00
|
|
|
|
|
|
|
DIR = os.getcwd()
|
|
|
|
print(DIR)
|
|
|
|
|
2024-01-18 08:11:23 +08:00
|
|
|
with shelve.open('main') as db:
|
|
|
|
startgame = db.get('startgame')
|
|
|
|
if startgame == False:
|
|
|
|
print("没有检测到运行我的世界")
|
|
|
|
print('请在启动器里启动后在注入!!')
|
|
|
|
sleep(3)
|
|
|
|
sys.exit()
|
|
|
|
else:
|
|
|
|
os.startfile('fix.bat')
|
|
|
|
os.system('start vape\lite\start.bat')
|