Add new PNG images for clean and preview outputs
- Added `image_clean.png` to the output directory for the clean image representation. - Added `image_clean_preview.png` for the preview of the clean image. - Introduced `image_svg_clean.png` for the SVG clean image representation.
This commit is contained in:
+7
-2
@@ -1,13 +1,18 @@
|
||||
|
||||
import datetime
|
||||
|
||||
from runtime_paths import persistent_data_path
|
||||
|
||||
|
||||
SCORES_FILE = persistent_data_path("scores.txt", default_text="")
|
||||
|
||||
|
||||
class Scoring:
|
||||
# ==================== SCORING ====================
|
||||
|
||||
def save_score(self):
|
||||
# Save to traditional scores.txt file
|
||||
with open("scores.txt", "a") as f:
|
||||
with SCORES_FILE.open("a", encoding="utf-8") as f:
|
||||
player_name = getattr(self, 'profile_integration', None)
|
||||
if player_name and hasattr(player_name, 'get_profile_name'):
|
||||
name = player_name.get_profile_name()
|
||||
@@ -19,7 +24,7 @@ class Scoring:
|
||||
def read_score(self):
|
||||
table = []
|
||||
try:
|
||||
with open("scores.txt") as f:
|
||||
with SCORES_FILE.open(encoding="utf-8") as f:
|
||||
rows = f.read().splitlines()
|
||||
for row in rows:
|
||||
parts = row.split(" - ")
|
||||
|
||||
Reference in New Issue
Block a user