Simple SMCPAK Format with Quick Implementation

Source Code and development in general from a technical point of view. Post Patches here.

Moderator: SMC Team

Simple SMCPAK Format with Quick Implementation

Postby Luiji » 28 Dec 2010 01:34

==========
Format
==========

Simply a ZIP file containing the same directory tree as smc/data.

==========
Implementation
==========

We don't change that much.

  • Change all file access functions to use PHYSFS_* functions.
  • Add smc/data to the search path in the main function.
  • Add the functionality to automatically add all files in <settings>/smc/packages to the search path.

And that should do it!

PHYSFS website: http://icculus.org/physfs/

Simple, fast, and easy! The beauty of PhysFS is that it not only supports normal directories in search paths but it supports transparent ZIP reading along with other files such as WADs and Quake packages.

P.S. I'll create a patch soon for this. It's not much more work then using sed!
If you've submitted a Release level and I haven't added to the level repository in over a weak, I probably missed it and you should PM me if you want it uploaded.

Custom Built IBM-Compatible (Arch Linux)
Dell Vostro (Windows 7)
Dell Inspiron 1440 (PC-BSD)
Dell Inspiron 11z (Linux Mint)
Luiji
MVP
MVP
 
Posts: 2696
Joined: 14 Jan 2010 23:20
Location: The Mushroom Kyngdom

Return to Development

Who is online

Users browsing this forum: No registered users and 2 guests

cron