jackjones2220 / cfg-loader

Automatically exported from code.google.com/p/cfg-loader
0 stars 0 forks source link

Request wbfs_file allows FIFO piped input #138

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start with compressed file, e.g. "diskimage.rar" which contains 
"diskimage.iso"

2. Create a FIFO
"mkfifo wiipipe.iso"

3. Extract the file into the pipe, running in the background:
"7z x -so diskimage.rar > wiipipe.iso 2>/dev/null &"

4. Run wbfs_file on the FIFO to convert ISO to WBFS on the file stream:
"wbfs_file wiipipe.iso"

What is the expected output? What do you see instead?
wbfs_file gives the error "invalid file type 4607", probably not expecting a 
FIFO file type.

What version of the loader are you using?
version 2.8

I don't know if wbfs_file needs a solid file (non-FIFO), but if it can use a 
FIFO stream piped into it, that would resolve any requests to integrate 
decompression into wbfs_file itself.  If it isn't feasible, no worries at all, 
I'm still a huge fan and love your work!

Original issue reported on code.google.com by jmw86...@gmail.com on 10 May 2011 at 2:26

GoogleCodeExporter commented 8 years ago
wbfs_file doesn't support fifo files, because it seeks on the file. To make 
that work it would need to implement a cache in memory but I have no plans to 
further improve wbfs_file. If you need fifo functionality then use wiimm's wit 
tools which support that.

Original comment by ogg...@gmail.com on 14 May 2011 at 7:52