Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
General
»
Zip file solution for Streams
Print
Pages: [
1
]
Author
Topic: Zip file solution for Streams (Read 1773 times)
0 Members and 1 Guest are viewing this topic.
dk123
Newbie
Posts: 49
Zip file solution for Streams
«
on:
January 17, 2015, 08:25:49 pm »
Hi, I was wondering if anyone new of any zip file InputStream implementations (that also work with password encryption) for SFML.
Logged
eXpl0it3r
SFML Team
Hero Member
Posts: 11035
Re: Zip file solution for Streams
«
Reply #1 on:
January 17, 2015, 10:33:38 pm »
For just zip files without password encryption you can take a look at
PhyFS
, there's even
a possible implementation
by FRex.
Other than that you probably want to use zlib directly. Though if you think about using an encrypted zip to "protect" your assets, just don't. No matter how good you try to "hide" the password in your binary, security through obscurity doesn't work.
«
Last Edit: January 17, 2015, 11:22:46 pm by eXpl0it3r
»
Logged
Official FAQ:
https://www.sfml-dev.org/faq.php
Official Discord Server:
https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog:
https://duerrenberger.dev/blog/
FRex
Hero Member
Posts: 1848
Back to C++ gamedev with SFML in May 2023
Re: Zip file solution for Streams
«
Reply #2 on:
January 17, 2015, 10:42:11 pm »
Exploiter, you've linked the same thing twice.
http://icculus.org/physfs/
PHYSFS is a very simple to use C library and has rather nice and unified API for real filesystem and archives. And it gets (depending on build options) other archive types too - notably 7zip (and some idiotic/exotic ones that you won't need, like doom's wads, quake's pak, build's grp and few more I don't even care to remember).
Logged
Back to C++ gamedev with SFML in May 2023
eXpl0it3r
SFML Team
Hero Member
Posts: 11035
Re: Zip file solution for Streams
«
Reply #3 on:
January 17, 2015, 11:24:07 pm »
Quote from: FRex on January 17, 2015, 10:42:11 pm
Exploiter, you've linked the same thing twice.
I swear one day, I'm gonna hunt down whoever changed the Chrome's address bar selection behavior, so annoying...
Thanks, fixed it.
Logged
Official FAQ:
https://www.sfml-dev.org/faq.php
Official Discord Server:
https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog:
https://duerrenberger.dev/blog/
Print
Pages: [
1
]
SFML community forums
»
Help
»
General
»
Zip file solution for Streams
anything