Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
86a187b08a
|
|||
|
594c506dc7
|
+3
-2
@@ -370,8 +370,9 @@ class ProgressionTUI:
|
|||||||
|
|
||||||
def derive_workshop_path(self):
|
def derive_workshop_path(self):
|
||||||
"""Derive workshop path from RimWorld path"""
|
"""Derive workshop path from RimWorld path"""
|
||||||
if "steamapps" in self.rimworld_path.lower():
|
normalized_rimworld_path = os.path.normpath(self.rimworld_path)
|
||||||
parts = self.rimworld_path.split(os.sep)
|
if "steamapps" in normalized_rimworld_path.lower():
|
||||||
|
parts = normalized_rimworld_path.split(os.sep)
|
||||||
try:
|
try:
|
||||||
steamapps_index = next(i for i, part in enumerate(parts) if part.lower() == 'steamapps')
|
steamapps_index = next(i for i, part in enumerate(parts) if part.lower() == 'steamapps')
|
||||||
workshop_parts = parts[:steamapps_index + 1] + ['workshop', 'content', '294100']
|
workshop_parts = parts[:steamapps_index + 1] + ['workshop', 'content', '294100']
|
||||||
|
|||||||
@@ -2835,9 +2835,10 @@ class SteamWorkshopGUI:
|
|||||||
# From: D:\SteamLibrary\steamapps\common\RimWorld
|
# From: D:\SteamLibrary\steamapps\common\RimWorld
|
||||||
# To: D:\SteamLibrary\steamapps\workshop\content\294100
|
# To: D:\SteamLibrary\steamapps\workshop\content\294100
|
||||||
|
|
||||||
if "steamapps" in rimworld_path.lower():
|
normalized_rimworld_path = os.path.normpath(rimworld_path)
|
||||||
|
if "steamapps" in normalized_rimworld_path.lower():
|
||||||
# Find the steamapps part and replace common\RimWorld with workshop\content\294100
|
# Find the steamapps part and replace common\RimWorld with workshop\content\294100
|
||||||
parts = rimworld_path.split(os.sep)
|
parts = normalized_rimworld_path.split(os.sep)
|
||||||
try:
|
try:
|
||||||
steamapps_index = next(i for i, part in enumerate(parts) if part.lower() == 'steamapps')
|
steamapps_index = next(i for i, part in enumerate(parts) if part.lower() == 'steamapps')
|
||||||
# Build new path: everything up to steamapps + steamapps + workshop + content + 294100
|
# Build new path: everything up to steamapps + steamapps + workshop + content + 294100
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ Configuration settings for the update checker
|
|||||||
# Update checker configuration
|
# Update checker configuration
|
||||||
UPDATE_CONFIG = {
|
UPDATE_CONFIG = {
|
||||||
# Current version of the application
|
# Current version of the application
|
||||||
"current_version": "0.2.1",
|
"current_version": "0.2.2",
|
||||||
|
|
||||||
# Repository information
|
# Repository information
|
||||||
"repo_owner": "HRiggs",
|
"repo_owner": "HRiggs",
|
||||||
|
|||||||
Reference in New Issue
Block a user