Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Zip file solution for Streams  (Read 1768 times)

0 Members and 2 Guests are viewing this topic.

dk123

  • Newbie
  • *
  • Posts: 49
    • View Profile
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.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
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 »
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
    • View Profile
    • Email
Re: Zip file solution for Streams
« Reply #2 on: January 17, 2015, 10:42:11 pm »
Exploiter, you've linked the same thing twice. ;D
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).
Back to C++ gamedev with SFML in May 2023

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Zip file solution for Streams
« Reply #3 on: January 17, 2015, 11:24:07 pm »
Exploiter, you've linked the same thing twice. ;D
I swear one day, I'm gonna hunt down whoever changed the Chrome's address bar selection behavior, so annoying... >:(
Thanks, fixed it. ;D
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/