From 13a67a853a2c115546c201f47469bbebd829e391 Mon Sep 17 00:00:00 2001 From: Nikolas Date: Tue, 15 Jul 2025 09:16:03 -0700 Subject: [PATCH] update ycruncher --- .gitignore | 2 ++ CHANGELOG.md | 3 +-- ycruncher/ycruncher.py | 6 +++--- ycruncher/ycruncher_utils.py | 10 +++++----- 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index 386cc3d..1a284d6 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,8 @@ flac-1.4.3-win.zip primesieve-12.3* y-cruncher v0.8.2.9522/ y-cruncher v0.8.2.9522.zip +y-cruncher v0.8.6.9545/ +y-cruncher.v0.8.6.9545b.zip basegame_no_intro_videos.archive *.blend 0001.png diff --git a/CHANGELOG.md b/CHANGELOG.md index 27d1362..c6697d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,8 +6,7 @@ Changes are grouped by the date they are merged to the main branch of the reposi ## 2025-07-15 - Updated 7-Zip to 25.00 - - +- Updated Y-Cruncher to v0.8.6.9545 ## 2025-04-02 - Fixed Keras not finding the FPS in Shadow of the Tomb Raider diff --git a/ycruncher/ycruncher.py b/ycruncher/ycruncher.py index bf775ea..328da42 100644 --- a/ycruncher/ycruncher.py +++ b/ycruncher/ycruncher.py @@ -12,8 +12,8 @@ sys.path.insert(1, os.path.join(sys.path[0], "..")) from harness_utils.output import write_report_json, DEFAULT_LOGGING_FORMAT, DEFAULT_DATE_FORMAT SCRIPT_DIR = Path(__file__).resolve().parent -LOG_DIR = SCRIPT_DIR.joinpath("run") -EXECUTABLE_PATH = SCRIPT_DIR.joinpath(YCRUNCHER_FOLDER_NAME, "y-cruncher.exe") +LOG_DIR = SCRIPT_DIR / "run" +EXECUTABLE_PATH = SCRIPT_DIR / YCRUNCHER_FOLDER_NAME / "y-cruncher.exe" def setup_logging(): @@ -79,7 +79,7 @@ def main(): report = { "start_time": start_time, - "version": "v0.8.5.9543", + "version": "v0.8.5.9545b", "end_time": end_time, "score": avg_score, "unit": "seconds", diff --git a/ycruncher/ycruncher_utils.py b/ycruncher/ycruncher_utils.py index 67eb9b2..fd42828 100644 --- a/ycruncher/ycruncher_utils.py +++ b/ycruncher/ycruncher_utils.py @@ -4,11 +4,11 @@ from zipfile import ZipFile from pathlib import Path import requests -YCRUNCHER_FOLDER_NAME = "y-cruncher v0.8.5.9543" -YCRUNCHER_ZIP_NAME = "y-cruncher.v0.8.5.9543.zip" - +YCRUNCHER_FOLDER_NAME = "y-cruncher v0.8.6.9545" +YCRUNCHER_ZIP_NAME = "y-cruncher.v0.8.6.9545b.zip" SCRIPT_DIR = Path(__file__).resolve().parent + def ycruncher_folder_exists() -> bool: """Check if ycruncher has been downloaded or not""" return SCRIPT_DIR.joinpath(YCRUNCHER_FOLDER_NAME).is_dir() @@ -16,7 +16,7 @@ def ycruncher_folder_exists() -> bool: def download_ycruncher(): """Download and extract Y-Cruncher""" - download_url = "https://github.com/Mysticial/y-cruncher/releases/download/v0.8.5.9543/y-cruncher.v0.8.5.9543.zip" + download_url = "https://github.com/Mysticial/y-cruncher/releases/download/v0.8.6.9545/y-cruncher.v0.8.6.9545b.zip" destination = SCRIPT_DIR / YCRUNCHER_ZIP_NAME response = requests.get(download_url, allow_redirects=True, timeout=180) with open(destination, 'wb') as file: @@ -24,7 +24,7 @@ def download_ycruncher(): with ZipFile(destination, 'r') as zip_object: zip_object.extractall(path=SCRIPT_DIR) + def current_time_ms(): """Get current timestamp in milliseconds since epoch""" return int(time.time() * 1000) - \ No newline at end of file