[Problem] MPF.CLI checks for device path or device path instead of device path or file path #736

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

Originally created by @Daja177 on GitHub (Aug 16, 2024).

Originally assigned to: @mnadareski on GitHub.

Version
What version are you using?

  • Stable release (v3.2.1)
  • WIP release (version here)

Build
What runtime version are you using?

  • .NET 6.0 running on (Operating System)
  • .NET 8.0 running on Linux

Describe the issue
The source code implies that MPF.CLI should require both device path and file path to be specified, but due to a mistake in the check, it checks for device path or device path instead of device path or file path.
11b8dd44bb/MPF.CLI/Program.cs (L104C79-L104C89)

To Reproduce
Steps to reproduce the behavior:

  1. Run MPF.CLI with media type, system type and device path being provided but not file path
  2. Starts dumping (with Redumper at least)

Expected behavior
Getting error "Both a device path and file path need to be supplied, exiting..."

Originally created by @Daja177 on GitHub (Aug 16, 2024). Originally assigned to: @mnadareski on GitHub. **Version** What version are you using? - [x] Stable release (v3.2.1) - [ ] WIP release (version here) **Build** What runtime version are you using? - [ ] .NET 6.0 running on (Operating System) - [x] .NET 8.0 running on Linux **Describe the issue** The source code implies that MPF.CLI should require both device path *and* file path to be specified, but due to a mistake in the check, it checks for device path or device path instead of device path or file path. https://github.com/SabreTools/MPF/blob/11b8dd44bbb25067ba59fcd0855ba64bca74be3c/MPF.CLI/Program.cs#L104C79-L104C89 **To Reproduce** Steps to reproduce the behavior: 1. Run MPF.CLI with media type, system type and device path being provided but not file path 2. Starts dumping (with Redumper at least) **Expected behavior** Getting error "Both a device path and file path need to be supplied, exiting..."
claunia added the bug label 2026-01-29 16:21:29 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SabreTools/MPF#736