m35 / jpsxdec

jPSXdec: cross-platform PlayStation 1 audio and video converter
http://jpsxdec.blogspot.com/
461 stars 24 forks source link

Command Line Relative Directories #41

Closed Meerkov closed 6 months ago

Meerkov commented 2 years ago

Environment

jPSXdec version: 1.00 (whatever the latest is).

Operating system: Windows

Java runtime environment :

Description

C:\Users\admin\Desktop\jpsxdec>"../jpsxdec/jpsxdec.exe" -f "../sibling/Isos/(USA).bin" -x "../sibling/Indexes/(USA).idx"

This works.

C:\Users\admin\Desktop\sibling>"../jpsxdec/jpsxdec.exe" -f "../sibling/Isos/(USA).bin" -x "../sibling/Indexes/(USA).idx"

This doesn't work (and provides no debug output or anything).

m35 commented 2 years ago

It seems the .exe fails silently when it's executed from a directory without jpsxdec.jar. That is odd.

But I don't recommend using the .exe from the command-line. Due to the way Windows works, you won't see any console output at all. It's best to execute the .jar directly with Java.

java -jar "../jpsxdec/jpsxdec.jar" -f "../sibling/Isos/(USA).bin" -x "../sibling/Indexes/(USA).idx"

In this way it will work when running from any directory.

Meerkov commented 2 years ago

Thanks, I'll try that

m35 commented 2 years ago

Hey thanks for continuing to report your findings! The next release has been greatly delayed due to daily life and feature creep, but still progressing.

I'd like to keep this bug open since I want to check if there's a way to at least display a message when this happens.

Meerkov commented 6 months ago

Executing the .exe from a different Working Directory in version 2 no longer fails silently I think this is fixed