Skip to content

Commit

Permalink
removing leftovers
Browse files Browse the repository at this point in the history
  • Loading branch information
TouwaStar committed Aug 29, 2019
1 parent 1d271b9 commit a6c7459
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 24 deletions.
8 changes: 1 addition & 7 deletions minecraft_macosx/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,7 @@ def is_minecraft_still_running(self):
return False

async def was_minecraft_launched(self, process_iter_interval=0.10):

# for process in psutil.process_iter():
# try:
# log.info(process.as_dict())
# except:
# continue
for process in psutil.process_iter(attrs=['name','exe'], ad_value=''):
for process in psutil.process_iter(attrs=['name', 'exe'], ad_value=''):
await asyncio.sleep(process_iter_interval)
if process.info['name'].lower() == "minecraftlauncher.exe" or process.info['exe'] == "/Applications/Minecraft.app/Contents/MacOS/launcher":
log.info(f"Found a running game!")
Expand Down
2 changes: 1 addition & 1 deletion minecraft_macosx/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Galaxy Minecraft plugin",
"platform": "bb",
"guid": "cb57391f-1675-35b1-05c0-896d43bdf8f4",
"version": "0.4",
"version": "0.5",
"description": "Galaxy Minecraft plugin",
"author": "TouwaStar",
"email": "yowosek@gmail.com.com",
Expand Down
3 changes: 0 additions & 3 deletions minecraft_macosx/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,7 @@ def tick(self):
self.minecraft_installation_status = LocalGameState.Installed
self.update_local_game_status(LocalGame('1', LocalGameState.Installed))



def shutdown(self):
# todo
pass


Expand Down
2 changes: 1 addition & 1 deletion minecraft_macosx/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.4"
__version__ = "0.5"
8 changes: 1 addition & 7 deletions minecraft_windows/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,7 @@ def is_minecraft_still_running(self):
return False

async def was_minecraft_launched(self, process_iter_interval=0.10):

# for process in psutil.process_iter():
# try:
# log.info(process.as_dict())
# except:
# continue
for process in psutil.process_iter(attrs=['name','exe'], ad_value=''):
for process in psutil.process_iter(attrs=['name', 'exe'], ad_value=''):
await asyncio.sleep(process_iter_interval)
if process.info['name'].lower() == "minecraftlauncher.exe" or process.info['exe'] == "/Applications/Minecraft.app/Contents/MacOS/launcher":
log.info(f"Found a running game!")
Expand Down
2 changes: 1 addition & 1 deletion minecraft_windows/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Galaxy Minecraft plugin",
"platform": "bb",
"guid": "cb57391f-1675-35b1-05c0-896d43bdf8f4",
"version": "0.4",
"version": "0.5",
"description": "Galaxy Minecraft plugin",
"author": "TouwaStar",
"email": "yowosek@gmail.com.com",
Expand Down
3 changes: 0 additions & 3 deletions minecraft_windows/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,7 @@ def tick(self):
self.minecraft_installation_status = LocalGameState.Installed
self.update_local_game_status(LocalGame('1', LocalGameState.Installed))



def shutdown(self):
# todo
pass


Expand Down
2 changes: 1 addition & 1 deletion minecraft_windows/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.4"
__version__ = "0.5"

0 comments on commit a6c7459

Please sign in to comment.