Yea there's really no reason why this sort of functionality shouldn't be available. Worst case it could fail on archived files.<br><br><div class="gmail_quote">On Sat, Apr 25, 2009 at 3:23 AM, Matheus Izvekov <span dir="ltr"><<a href="mailto:mizvekov@gmail.com">mizvekov@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">> Since the library can't write to files inside archives at the moment<br>
> anyway, I don't think it's fair to expect such functionality when<br>
> opening a file for both reading and writing either.<br>
<br>
</div>Well this argument fails to account for the fact that physfs separates<br>
writable files from everything else. Also, openAppend already violates<br>
this.<br>
<div class="im"><br>
> The proposed solution would be better to implement in your application<br>
> rather than inside PhysFS. We do something similar with music files<br>
> currently, because SDL_mixer can only stream from physical files. So<br>
> if a music file is inside an archive, we temporarily extract it to the<br>
> writable directory.<br>
><br>
<br>
</div>I don't see how would that apply to me. If I can't have rw files, the<br>
best solution after that would be to keep the file path around instead<br>
of just the file handle, and open it for either read or write depending<br>
on the operation, and then close it shortly after. Performance issues<br>
and memory fragmentation aside, this is very unpleasant to maintain, and<br>
I would much rather have platform dependance.<br>
<div><div></div><div class="h5"><br>
> Regards,<br>
> Bjørn<br>
> _______________________________________________<br>
> physfs mailing list<br>
> <a href="mailto:physfs@icculus.org">physfs@icculus.org</a><br>
> <a href="http://icculus.org/mailman/listinfo/physfs" target="_blank">http://icculus.org/mailman/listinfo/physfs</a><br>
_______________________________________________<br>
physfs mailing list<br>
<a href="mailto:physfs@icculus.org">physfs@icculus.org</a><br>
<a href="http://icculus.org/mailman/listinfo/physfs" target="_blank">http://icculus.org/mailman/listinfo/physfs</a><br>
</div></div></blockquote></div><br>