[physfs] Time to stop painting...
hook_l at pyrogon.com
Sun Nov 2 13:46:43 EST 2003
> - Someone suggested wrapping the win32 registry in PhysFS...
This should be a separate library, but one that I think would be very
useful. If you're so inclined, feel free to jack any of my
HSystemRegistry bullshit from CC and use it to your heart's content.
Feel free to use POSH of course =)
The only tricky thing I've found with system registry abstraction is
differentiating between HKCU and HKLM. There's no "right" answer.
If you put everything into HKLM, then different users can't have
different configs without "logging in" to the game. If you put
everything into HKCU, then the app has to be reinstalled multiple
times for each user.
If you do a combination, e.g. system stuff in HKLM and user stuff in
HKCU, you have to expose this at the API level.
I'm willing to help with the API design if you'd like. It should be
pretty simple, and I'd imagine just a simple API would work fine, e.g.
open/close registry (specifying application name and whether this is
user or system level), read/write (endian-safe), privilege checks, and
that's about it.
More information about the physfs