[physfs] win32: Using PhysFS from inside a DLL?
Philip D. Bober
wildfire1138 at mchsi.com
Wed Sep 3 17:28:56 EDT 2003
I was asking because I know that file-access in DLL's is kinda dodgy (I
remember SDL has some stuff about that in the RWops files, but only about
exe->dll FILE* pointers), so I didn't know if there'd be any weird problems.
----- Original Message -----
From: "Tree" <tree at stain.org>
To: <physfs at icculus.org>
Sent: Wednesday, September 03, 2003 5:17 PM
Subject: Re: [physfs] win32: Using PhysFS from inside a DLL?
> Hi Travis,
> It is fine using physfs with dlls. If you pass a blank string "" into the
> physfs_init method from anywhere in the dll it all works just fine on
> windows. I think the argv isn't that relevant on the windows platform.
> I'm not sure why you think working with PhysFS in a dll should be any
> different from an exe, except for the init string. We use it as a dll just
> fine. We don't have an exe as our app is mostly in java, so using dlls is
> our only option.
> ----- Original Message -----
> From: "Philip D. Bober" <wildfire1138 at mchsi.com>
> To: <physfs at icculus.org>
> Sent: Wednesday, September 03, 2003 9:20 PM
> Subject: [physfs] win32: Using PhysFS from inside a DLL?
> > Can PhysFS be used (Started, read/write files, and shutdown) from inside
> > DLL?
> > I'm asking cause I've been working on adding features to an oldish
> > game, and I've been doing this mainly through DLL interception, so all
> > code is inside of DLLs.
> > I've been working out how to do a virtual file system (through
> > the open-file calls), and PhysFS would be perfect for this, I just don't
> > know how well it would work in a DLL.
> > (Aside from any more technical problems, there's no way I can get at
> > but I should be able to fake that pretty easily)
> > -Travis Wells
More information about the physfs