Skip to content

Commit

Permalink
Remove debug log and fix startup routine for palworld.
Browse files Browse the repository at this point in the history
  • Loading branch information
jreed1701 committed Jan 20, 2024
1 parent ee66a36 commit 57a6ac3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
14 changes: 9 additions & 5 deletions application/games/palworld_game.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,19 @@ def startup(self) -> None:
game_install_dir, constants.STARTUP_BATCH_FILE_NAME
)

full_path_game_ini_config_folder = os.path.join(
game_install_dir, "Pal", "Saved", "Config", "WindowsServer"
)

full_path_game_ini_config = os.path.join(
game_install_dir,
"Pal",
"Saved",
"Config",
"WindowsServer",
full_path_game_ini_config_folder,
"PalWorldSettings.ini",
)

# The first time you run this, the config folder doesn't exist, so it has to be created.
if not os.path.exists(full_path_game_ini_config_folder):
os.makedirs(full_path_game_ini_config_folder, exist_ok=True)

# If file exists, remove it.
if os.path.exists(full_path_startup_script):
os.remove(full_path_startup_script)
Expand Down
7 changes: 0 additions & 7 deletions application/gui/widgets/game_manager_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,13 +401,6 @@ def _update_game(self, game_name):
steam_id = game_info["items"][0]["game_steam_id"]
install_path = game_info["items"][0]["game_install_dir"]

logger.info("*************************")
logger.info(game_info)
logger.info(steam_install_dir)
logger.info(steam_id)
logger.info(install_path)
logger.info("*************************")

self._client.steam.update_steam_app(steam_install_dir, steam_id, install_path)

def _uninstall_game(self, game_name):
Expand Down

0 comments on commit 57a6ac3

Please sign in to comment.