13xforever / ps3-disc-dumper

A handy utility to make decrypted PS3 disc dumps
MIT License
439 stars 29 forks source link

Test and update linux version if necessary #2

Closed 13xforever closed 4 years ago

13xforever commented 5 years ago

In theory it should still work, but I haven't tested it since 2.0 branch

treymerkley commented 4 years ago

so far it runs as expected, but having the path for the disc hardcoded is kind of limiting. I'm trying to figure out how to pass a path as an argument. I know the format, it would look like dotnet run -- '/path/to/the disc/or iso', but I can't quite make out where to put this in the code.

13xforever commented 4 years ago

You can't use iso, it needs a proper cdrom device associated with it in /dev. Absolutely every modern distro automounts removable media in /media, so I really don't see any need for arguments at the moment.

If you really must, then get it from args and pass it in .DetectDisc() and use it when detecting the mount path there.

treymerkley commented 4 years ago

Oh, really? I believe you, that just seems odd that passing an ISO wouldn't work. I've been doing it manually via ISO for a while now. Plus, all of my stuff mounts to /dev/sr0 as far as I can tell.

Wouldn't it be easier just to pass any given path to the system and let it run? I guess I don't understand what .DetectDisc() is there for.

treymerkley commented 4 years ago

Yeah, so I was thinking maybe have a variable that is, by default, set to /media, and then use args to pass a string as a different path.

13xforever commented 4 years ago

The issue with iso is that I currently look at physical devices proc info to get the mapping, which is obviously misssing when you mount it through loopback. I guess you can try to read from every physical device manually, but that's kinda meh.

treymerkley commented 4 years ago

Oh, okay, so it is a nontrivial change. Thanks for explaining it! Otherwise, the code runs fine on Linux, and can build releases via msbuild -r.