pmcl/kg.py

22 lines
530 B
Python
Raw Normal View History

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