[PR #2464] [CLOSED] Emulator: Create a Log Backup #2755

Closed
opened 2026-02-27 22:01:08 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/2464
Author: @Xphalnos
Created: 2/17/2025
Status: Closed

Base: mainHead: Create_Log_Backup


📝 Commits (2)

  • 8ddc545 Emulator: Create a Log Backup
  • 1b62913 Place Log Backup Outside Emulator Init

📊 Changes

3 files changed (+17 additions, -1 deletions)

View changed files

📝 src/common/path_util.cpp (+11 -0)
📝 src/common/path_util.h (+2 -0)
📝 src/emulator.cpp (+4 -1)

📄 Description

Like yuzu and other emulators, it is good to have a log backup.
When starting shadPS4, the log of the previous session is renamed to shad_log.old.txt.
This can be useful to compare logs when making changes.
I tried to make the code as understandable as possible.

image


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/2464 **Author:** [@Xphalnos](https://github.com/Xphalnos) **Created:** 2/17/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `Create_Log_Backup` --- ### 📝 Commits (2) - [`8ddc545`](https://github.com/shadps4-emu/shadPS4/commit/8ddc5455921c0db0c8692dd6c2f79f0525221179) Emulator: Create a Log Backup - [`1b62913`](https://github.com/shadps4-emu/shadPS4/commit/1b6291329e0e283b3b587af8b14b984b78ae20ff) Place Log Backup Outside Emulator Init ### 📊 Changes **3 files changed** (+17 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/common/path_util.cpp` (+11 -0) 📝 `src/common/path_util.h` (+2 -0) 📝 `src/emulator.cpp` (+4 -1) </details> ### 📄 Description Like yuzu and other emulators, it is good to have a log backup. When starting shadPS4, the log of the previous session is renamed to `shad_log.old.txt`. This can be useful to compare logs when making changes. I tried to make the code as understandable as possible. ![image](https://github.com/user-attachments/assets/68d8bcc9-b629-43e7-aab5-5de498d2af31) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:01:08 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#2755
No description provided.