changed extension for archive (addon) content from zip to dxa - still a zip-file but renamed to not accidentially add user generated backups and possibly mess things up

This commit is contained in:
zicodxx 2012-06-01 13:04:25 +02:00
parent fc421b290a
commit f7565217fe
3 changed files with 5 additions and 2 deletions

View file

@ -4,6 +4,7 @@ D1X-Rebirth Changelog
--------
main/kconfig.c, main/kconfig.h, main/menu.c, main/playsave.c, main/playsave.h: Introduced sensitivity sliders for keyboard which cause movement increase the longer the designated key is pressed
main/gauges.c, main/menu.c, main/net_udp.c, main/songs.c, misc/physfsx.c: use size of output buffer for snprintf; on the way changed rebirth-specific song file to dxx-r.sng to respect hog 8+3 file convention
editor/med.c, misc/physfsx.c: changed extension for archive (addon) content from zip to dxa - still a zip-file but renamed to not accidentially add user generated backups and possibly mess things up
20120527

View file

@ -377,6 +377,7 @@ void init_editor()
PHYSFSX_addRelToSearchPath("editor/data", 1); // look in source directory first (for work in progress)
PHYSFSX_addRelToSearchPath("editor", 1); // then in editor directory
PHYSFSX_addRelToSearchPath("editor.zip", 1); // then in a zip file
PHYSFSX_addRelToSearchPath("editor.dxa", 1); // or addon pack
ui_init();
@ -973,6 +974,7 @@ void close_editor() {
PHYSFSX_removeRelFromSearchPath("editor/data");
PHYSFSX_removeRelFromSearchPath("editor");
PHYSFSX_removeRelFromSearchPath("editor.zip");
PHYSFSX_removeRelFromSearchPath("editor.dxa");
switch (ModeFlag)
{

View file

@ -457,7 +457,7 @@ PHYSFS_file *PHYSFSX_openWriteBuffered(char *filename)
void PHYSFSX_addArchiveContent()
{
char **list = NULL;
char *archive_exts[] = { ".zip", ".7z", NULL }, *file[2];
char *archive_exts[] = { ".dxa", NULL }, *file[2];
int i = 0, content_updated = 0;
con_printf(CON_DEBUG, "PHYSFS: Adding archives to the game.\n");
@ -515,7 +515,7 @@ void PHYSFSX_addArchiveContent()
void PHYSFSX_removeArchiveContent()
{
char **list = NULL;
char *archive_exts[] = { ".zip", ".7z", NULL }, *file[2];
char *archive_exts[] = { ".dxa", NULL }, *file[2];
int i = 0;
// find files in Searchpath ...