[PR #624] [MERGED] Allow variables in output path #1069

Closed
opened 2026-01-29 16:25:12 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/SabreTools/MPF/pull/624
Author: @Deterous
Created: 1/10/2024
Status: Merged
Merged: 1/11/2024
Merged by: @mnadareski

Base: masterHead: det-patch-4


📝 Commits (6)

  • 00b9a71 Allow variables in output path and default output path
  • 953c48e Remove angle brackets when normalising path
  • affbc70 Add tooltip hover text for default output path
  • 2ce6792 Better tooltip formatting
  • c6619d4 Use percent sign rather than angle brackets as variable delimiter
  • 9e9ca6a Refactor

📊 Changes

4 files changed (+52 additions, -3 deletions)

View changed files

📝 MPF.Core/Data/Drive.cs (+2 -0)
📝 MPF.Core/InfoTool.cs (+3 -1)
📝 MPF.Core/UI/ViewModels/MainViewModel.cs (+45 -1)
📝 MPF.UI.Core/Windows/OptionsWindow.xaml (+2 -1)

📄 Description

Attempts to provide a general solution/fix for #458

Type the following keywords into output path or default output path textboxes to use variables:
%SYSTEM% = Long name for system
%SYS% = Short name for system
%MEDIA% = Long name for media type
%PROGRAM% = Long name for dumping program
%PROG% = Short name for dumping program (currently only DiscImageCreator -> DIC)
%LABEL% = Volume Label
%DATE% = "YYYYMMDD" current date
%DATETIME% = "YYYYMMDD-HHMMSS" current datetime

For now, these are not documented anywhere, but are provided for advanced users.


🔄 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/SabreTools/MPF/pull/624 **Author:** [@Deterous](https://github.com/Deterous) **Created:** 1/10/2024 **Status:** ✅ Merged **Merged:** 1/11/2024 **Merged by:** [@mnadareski](https://github.com/mnadareski) **Base:** `master` ← **Head:** `det-patch-4` --- ### 📝 Commits (6) - [`00b9a71`](https://github.com/SabreTools/MPF/commit/00b9a71aabc99c8c0c7b69d3cb21e31d20606a4d) Allow variables in output path and default output path - [`953c48e`](https://github.com/SabreTools/MPF/commit/953c48e33db70f9689f11409ddae850febed27da) Remove angle brackets when normalising path - [`affbc70`](https://github.com/SabreTools/MPF/commit/affbc709971c6b66ed9b32f1f824fc96a69733ba) Add tooltip hover text for default output path - [`2ce6792`](https://github.com/SabreTools/MPF/commit/2ce67924f6a5f32845ab17a62809ecef425f860d) Better tooltip formatting - [`c6619d4`](https://github.com/SabreTools/MPF/commit/c6619d41e7ba5e6b782ef676bf1b44d519b4e826) Use percent sign rather than angle brackets as variable delimiter - [`9e9ca6a`](https://github.com/SabreTools/MPF/commit/9e9ca6a717c96b47f02fdc98bdf9519851a8c17c) Refactor ### 📊 Changes **4 files changed** (+52 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `MPF.Core/Data/Drive.cs` (+2 -0) 📝 `MPF.Core/InfoTool.cs` (+3 -1) 📝 `MPF.Core/UI/ViewModels/MainViewModel.cs` (+45 -1) 📝 `MPF.UI.Core/Windows/OptionsWindow.xaml` (+2 -1) </details> ### 📄 Description Attempts to provide a general solution/fix for #458 Type the following keywords into output path or default output path textboxes to use variables: `%SYSTEM%` = Long name for system `%SYS%` = Short name for system `%MEDIA%` = Long name for media type `%PROGRAM%` = Long name for dumping program `%PROG%` = Short name for dumping program (currently only DiscImageCreator -> DIC) `%LABEL%` = Volume Label `%DATE%` = "YYYYMMDD" current date `%DATETIME%` = "YYYYMMDD-HHMMSS" current datetime For now, these are not documented anywhere, but are provided for advanced users. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 16:25:12 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SabreTools/MPF#1069