Skip to content

Commit e61ca17

Browse files
V0.2
1 parent c2e12ea commit e61ca17

File tree

5 files changed

+356
-594
lines changed

5 files changed

+356
-594
lines changed

GameInfo.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
from os import path
2+
from json import loads, dump
3+
4+
5+
async def compare() -> bool:
6+
if not path.isfile("process_info.json"):
7+
return False
8+
9+
with open("process_info.json", 'r') as json_file:
10+
current_info = loads(json_file.read())
11+
json_file.close()
12+
13+
game_package_name = current_info["game_pkg"]
14+
15+
if game_package_name == "":
16+
return False
17+
18+
elif path.exists("/storage/emulated/0/Android/data/{}".format(game_package_name)):
19+
return True
20+
21+
else:
22+
print("[-] Package Not found. Please type again or press ctrl+c to exit.")
23+
return False
24+
25+
26+
async def get_data() -> None:
27+
while not (await compare()):
28+
pkg_name = input("[x] Enter package name: ")
29+
process_info = {"game_pkg": pkg_name}
30+
dump(process_info, open("process_info.json", "w"))

0 commit comments

Comments
 (0)