physfs_internal.h
author Ryan C. Gordon <icculus@icculus.org>
Wed, 12 Mar 2008 21:42:16 +0000
changeset 938 ecbae90ae88d
parent 936 3b4b6c107a59
child 1088 d19e235efe5f
permissions -rw-r--r--
Yet another attempt to patch to compile.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     1
/*
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     2
 * Internal function/structure declaration. Do NOT include in your
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     3
 *  application.
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     4
 *
809
116b8fe30371 Renamed LICENSE to LICENSE.txt
Ryan C. Gordon <icculus@icculus.org>
parents: 775
diff changeset
     5
 * Please see the file LICENSE.txt in the source's root directory.
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     6
 *
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     7
 *  This file written by Ryan C. Gordon.
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     8
 */
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    10
#ifndef _INCLUDE_PHYSFS_INTERNAL_H_
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    11
#define _INCLUDE_PHYSFS_INTERNAL_H_
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    12
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    13
#ifndef __PHYSICSFS_INTERNAL__
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    14
#error Do not include this header from your applications.
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    15
#endif
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    16
132
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
    17
#include "physfs.h"
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
    18
828
ee871d51510d Bunch of work on Unicode...added case-folding stricmp, removed
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
    19
#include <stdlib.h>  /* make sure NULL is defined... */
ee871d51510d Bunch of work on Unicode...added case-folding stricmp, removed
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
    20
504
3420d82f9b01 Some cleanups for PocketPC port.
Ryan C. Gordon <icculus@icculus.org>
parents: 467
diff changeset
    21
#ifdef HAVE_ASSERT_H
3420d82f9b01 Some cleanups for PocketPC port.
Ryan C. Gordon <icculus@icculus.org>
parents: 467
diff changeset
    22
#include <assert.h>
743
8afd4cb34040 Assert define fix.
Ryan C. Gordon <icculus@icculus.org>
parents: 694
diff changeset
    23
#elif (!defined assert)
504
3420d82f9b01 Some cleanups for PocketPC port.
Ryan C. Gordon <icculus@icculus.org>
parents: 467
diff changeset
    24
#define assert(x)
3420d82f9b01 Some cleanups for PocketPC port.
Ryan C. Gordon <icculus@icculus.org>
parents: 467
diff changeset
    25
#endif
3420d82f9b01 Some cleanups for PocketPC port.
Ryan C. Gordon <icculus@icculus.org>
parents: 467
diff changeset
    26
836
6514fba91816 Patched to compile with latest Platform SDK.
Ryan C. Gordon <icculus@icculus.org>
parents: 828
diff changeset
    27
/* !!! FIXME: remove this when revamping stack allocation code... */
905
8006327f5797 Whoops, it's malloc.h, not alloca.h ...
Ryan C. Gordon <icculus@icculus.org>
parents: 903
diff changeset
    28
#if defined(_MSC_VER) || defined(__MINGW32__)
836
6514fba91816 Patched to compile with latest Platform SDK.
Ryan C. Gordon <icculus@icculus.org>
parents: 828
diff changeset
    29
#include <malloc.h>
6514fba91816 Patched to compile with latest Platform SDK.
Ryan C. Gordon <icculus@icculus.org>
parents: 828
diff changeset
    30
#endif
6514fba91816 Patched to compile with latest Platform SDK.
Ryan C. Gordon <icculus@icculus.org>
parents: 828
diff changeset
    31
132
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
    32
#ifdef __cplusplus
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
    33
extern "C" {
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
    34
#endif
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
    35
936
3b4b6c107a59 Fixed aliasing bug in Windows platform layer (thanks, Dennis!).
Ryan C. Gordon <icculus@icculus.org>
parents: 933
diff changeset
    36
#ifdef __GNUC__
938
ecbae90ae88d Yet another attempt to patch to compile.
Ryan C. Gordon <icculus@icculus.org>
parents: 936
diff changeset
    37
#define PHYSFS_MINIMUM_GCC_VERSION(major, minor) \
936
3b4b6c107a59 Fixed aliasing bug in Windows platform layer (thanks, Dennis!).
Ryan C. Gordon <icculus@icculus.org>
parents: 933
diff changeset
    38
    ( ((__GNUC__ << 16) + __GNUC_MINOR__) >= (((major) << 16) + (minor)) )
3b4b6c107a59 Fixed aliasing bug in Windows platform layer (thanks, Dennis!).
Ryan C. Gordon <icculus@icculus.org>
parents: 933
diff changeset
    39
#else
938
ecbae90ae88d Yet another attempt to patch to compile.
Ryan C. Gordon <icculus@icculus.org>
parents: 936
diff changeset
    40
#define PHYSFS_MINIMUM_GCC_VERSION(major, minor) (0)
936
3b4b6c107a59 Fixed aliasing bug in Windows platform layer (thanks, Dennis!).
Ryan C. Gordon <icculus@icculus.org>
parents: 933
diff changeset
    41
#endif
3b4b6c107a59 Fixed aliasing bug in Windows platform layer (thanks, Dennis!).
Ryan C. Gordon <icculus@icculus.org>
parents: 933
diff changeset
    42
852
9467e96abdf1 Replaced some Malloc and all the alloca() calls with __PHYSFS_smallAlloc(),
Ryan C. Gordon <icculus@icculus.org>
parents: 851
diff changeset
    43
/*
9467e96abdf1 Replaced some Malloc and all the alloca() calls with __PHYSFS_smallAlloc(),
Ryan C. Gordon <icculus@icculus.org>
parents: 851
diff changeset
    44
 * Interface for small allocations. If you need a little scratch space for
9467e96abdf1 Replaced some Malloc and all the alloca() calls with __PHYSFS_smallAlloc(),
Ryan C. Gordon <icculus@icculus.org>
parents: 851
diff changeset
    45
 *  a throwaway buffer or string, use this. It will make small allocations
9467e96abdf1 Replaced some Malloc and all the alloca() calls with __PHYSFS_smallAlloc(),
Ryan C. Gordon <icculus@icculus.org>
parents: 851
diff changeset
    46
 *  on the stack if possible, and use allocator.Malloc() if they are too
9467e96abdf1 Replaced some Malloc and all the alloca() calls with __PHYSFS_smallAlloc(),
Ryan C. Gordon <icculus@icculus.org>
parents: 851
diff changeset
    47
 *  large. This helps reduce malloc pressure.
9467e96abdf1 Replaced some Malloc and all the alloca() calls with __PHYSFS_smallAlloc(),
Ryan C. Gordon <icculus@icculus.org>
parents: 851
diff changeset
    48
 * There are some rules, though:
9467e96abdf1 Replaced some Malloc and all the alloca() calls with __PHYSFS_smallAlloc(),
Ryan C. Gordon <icculus@icculus.org>
parents: 851
diff changeset
    49
 * NEVER return a pointer from this, as stack-allocated buffers go away
9467e96abdf1 Replaced some Malloc and all the alloca() calls with __PHYSFS_smallAlloc(),
Ryan C. Gordon <icculus@icculus.org>
parents: 851
diff changeset
    50
 *  when your function returns.
9467e96abdf1 Replaced some Malloc and all the alloca() calls with __PHYSFS_smallAlloc(),
Ryan C. Gordon <icculus@icculus.org>
parents: 851
diff changeset
    51
 * NEVER allocate in a loop, as stack-allocated pointers will pile up. Call
9467e96abdf1 Replaced some Malloc and all the alloca() calls with __PHYSFS_smallAlloc(),
Ryan C. Gordon <icculus@icculus.org>
parents: 851
diff changeset
    52
 *  a function that uses smallAlloc from your loop, so the allocation can
9467e96abdf1 Replaced some Malloc and all the alloca() calls with __PHYSFS_smallAlloc(),
Ryan C. Gordon <icculus@icculus.org>
parents: 851
diff changeset
    53
 *  free each time.
9467e96abdf1 Replaced some Malloc and all the alloca() calls with __PHYSFS_smallAlloc(),
Ryan C. Gordon <icculus@icculus.org>
parents: 851
diff changeset
    54
 * NEVER call smallAlloc with any complex expression (it's a macro that WILL
9467e96abdf1 Replaced some Malloc and all the alloca() calls with __PHYSFS_smallAlloc(),
Ryan C. Gordon <icculus@icculus.org>
parents: 851
diff changeset
    55
 *  have side effects...it references the argument multiple times). Use a
9467e96abdf1 Replaced some Malloc and all the alloca() calls with __PHYSFS_smallAlloc(),
Ryan C. Gordon <icculus@icculus.org>
parents: 851
diff changeset
    56
 *  variable or a literal.
9467e96abdf1 Replaced some Malloc and all the alloca() calls with __PHYSFS_smallAlloc(),
Ryan C. Gordon <icculus@icculus.org>
parents: 851
diff changeset
    57
 * NEVER free a pointer from this with anything but smallFree. It will not
9467e96abdf1 Replaced some Malloc and all the alloca() calls with __PHYSFS_smallAlloc(),
Ryan C. Gordon <icculus@icculus.org>
parents: 851
diff changeset
    58
 *  be a valid pointer to the allocator, regardless of where the memory came
9467e96abdf1 Replaced some Malloc and all the alloca() calls with __PHYSFS_smallAlloc(),
Ryan C. Gordon <icculus@icculus.org>
parents: 851
diff changeset
    59
 *  from.
9467e96abdf1 Replaced some Malloc and all the alloca() calls with __PHYSFS_smallAlloc(),
Ryan C. Gordon <icculus@icculus.org>
parents: 851
diff changeset
    60
 * NEVER realloc a pointer from this.
9467e96abdf1 Replaced some Malloc and all the alloca() calls with __PHYSFS_smallAlloc(),
Ryan C. Gordon <icculus@icculus.org>
parents: 851
diff changeset
    61
 * NEVER forget to use smallFree: it may not be a pointer from the stack.
9467e96abdf1 Replaced some Malloc and all the alloca() calls with __PHYSFS_smallAlloc(),
Ryan C. Gordon <icculus@icculus.org>
parents: 851
diff changeset
    62
 * NEVER forget to check for NULL...allocation can fail here, of course!
9467e96abdf1 Replaced some Malloc and all the alloca() calls with __PHYSFS_smallAlloc(),
Ryan C. Gordon <icculus@icculus.org>
parents: 851
diff changeset
    63
 */
9467e96abdf1 Replaced some Malloc and all the alloca() calls with __PHYSFS_smallAlloc(),
Ryan C. Gordon <icculus@icculus.org>
parents: 851
diff changeset
    64
#define __PHYSFS_SMALLALLOCTHRESHOLD 128
9467e96abdf1 Replaced some Malloc and all the alloca() calls with __PHYSFS_smallAlloc(),
Ryan C. Gordon <icculus@icculus.org>
parents: 851
diff changeset
    65
void *__PHYSFS_initSmallAlloc(void *ptr, PHYSFS_uint64 len);
9467e96abdf1 Replaced some Malloc and all the alloca() calls with __PHYSFS_smallAlloc(),
Ryan C. Gordon <icculus@icculus.org>
parents: 851
diff changeset
    66
9467e96abdf1 Replaced some Malloc and all the alloca() calls with __PHYSFS_smallAlloc(),
Ryan C. Gordon <icculus@icculus.org>
parents: 851
diff changeset
    67
#define __PHYSFS_smallAlloc(bytes) ( \
857
5ecd1349c789 Patched to compile on MSVC.
Ryan C. Gordon <icculus@icculus.org>
parents: 852
diff changeset
    68
    __PHYSFS_initSmallAlloc((((bytes) < __PHYSFS_SMALLALLOCTHRESHOLD) ? \
5ecd1349c789 Patched to compile on MSVC.
Ryan C. Gordon <icculus@icculus.org>
parents: 852
diff changeset
    69
                             alloca((size_t)((bytes)+1)) : NULL), (bytes)) \
852
9467e96abdf1 Replaced some Malloc and all the alloca() calls with __PHYSFS_smallAlloc(),
Ryan C. Gordon <icculus@icculus.org>
parents: 851
diff changeset
    70
)
9467e96abdf1 Replaced some Malloc and all the alloca() calls with __PHYSFS_smallAlloc(),
Ryan C. Gordon <icculus@icculus.org>
parents: 851
diff changeset
    71
9467e96abdf1 Replaced some Malloc and all the alloca() calls with __PHYSFS_smallAlloc(),
Ryan C. Gordon <icculus@icculus.org>
parents: 851
diff changeset
    72
void __PHYSFS_smallFree(void *ptr);
9467e96abdf1 Replaced some Malloc and all the alloca() calls with __PHYSFS_smallAlloc(),
Ryan C. Gordon <icculus@icculus.org>
parents: 851
diff changeset
    73
9467e96abdf1 Replaced some Malloc and all the alloca() calls with __PHYSFS_smallAlloc(),
Ryan C. Gordon <icculus@icculus.org>
parents: 851
diff changeset
    74
691
71d9affe0d8a All memory management now goes through allocation hooks instead of directly to
Ryan C. Gordon <icculus@icculus.org>
parents: 676
diff changeset
    75
/* Use the allocation hooks. */
71d9affe0d8a All memory management now goes through allocation hooks instead of directly to
Ryan C. Gordon <icculus@icculus.org>
parents: 676
diff changeset
    76
#define malloc(x) Do not use malloc() directly.
71d9affe0d8a All memory management now goes through allocation hooks instead of directly to
Ryan C. Gordon <icculus@icculus.org>
parents: 676
diff changeset
    77
#define realloc(x, y) Do not use realloc() directly.
71d9affe0d8a All memory management now goes through allocation hooks instead of directly to
Ryan C. Gordon <icculus@icculus.org>
parents: 676
diff changeset
    78
#define free(x) Do not use free() directly.
836
6514fba91816 Patched to compile with latest Platform SDK.
Ryan C. Gordon <icculus@icculus.org>
parents: 828
diff changeset
    79
/* !!! FIXME: add alloca check here. */
427
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    80
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    81
/* The LANG section. */
767
db29bf06d171 Changed my email address.
Ryan C. Gordon <icculus@icculus.org>
parents: 763
diff changeset
    82
/*  please send questions/translations to Ryan: icculus@icculus.org. */
427
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    83
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    84
#if (!defined PHYSFS_LANG)
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    85
#  define PHYSFS_LANG PHYSFS_LANG_ENGLISH
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    86
#endif
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    87
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
    88
/* All language strings are UTF-8 encoded! */
444
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
    89
#define PHYSFS_LANG_ENGLISH            1  /* English by Ryan C. Gordon  */
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
    90
#define PHYSFS_LANG_RUSSIAN            2  /* Russian by Ed Sinjiashvili */
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
    91
#define PHYSFS_LANG_SPANISH            3  /* Spanish by Pedro J. Pérez  */
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
    92
#define PHYSFS_LANG_FRENCH             4  /*  French by Stéphane Peter  */
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
    93
#define PHYSFS_LANG_GERMAN             5  /*  German by Michael Renner  */
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
    94
#define PHYSFS_LANG_PORTUGUESE_BR      6  /* pt-br by Danny Angelo Carminati Grein  */
427
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    95
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    96
#if (PHYSFS_LANG == PHYSFS_LANG_ENGLISH)
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    97
 #define DIR_ARCHIVE_DESCRIPTION  "Non-archive, direct filesystem I/O"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    98
 #define GRP_ARCHIVE_DESCRIPTION  "Build engine Groupfile format"
553
4338d9c0bbcd Descent I/II HOG and MVL archive support (thanks, Bradley Bell!).
Ryan C. Gordon <icculus@icculus.org>
parents: 549
diff changeset
    99
 #define HOG_ARCHIVE_DESCRIPTION  "Descent I/II HOG file format"
4338d9c0bbcd Descent I/II HOG and MVL archive support (thanks, Bradley Bell!).
Ryan C. Gordon <icculus@icculus.org>
parents: 549
diff changeset
   100
 #define MVL_ARCHIVE_DESCRIPTION  "Descent II Movielib format"
582
d15d27e34a7e Readded new qpak archiver.
Ryan C. Gordon <icculus@icculus.org>
parents: 578
diff changeset
   101
 #define QPAK_ARCHIVE_DESCRIPTION "Quake I/II format"
427
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   102
 #define ZIP_ARCHIVE_DESCRIPTION  "PkZip/WinZip/Info-Zip compatible"
775
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 774
diff changeset
   103
 #define WAD_ARCHIVE_DESCRIPTION  "DOOM engine format"
774
916c2e81e77f 7zip support, written by Dennis Schridde, and heavily Ryanified by me.
Ryan C. Gordon <icculus@icculus.org>
parents: 767
diff changeset
   104
 #define LZMA_ARCHIVE_DESCRIPTION "LZMA (7zip) format"
427
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   105
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   106
 #define ERR_IS_INITIALIZED       "Already initialized"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   107
 #define ERR_NOT_INITIALIZED      "Not initialized"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   108
 #define ERR_INVALID_ARGUMENT     "Invalid argument"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   109
 #define ERR_FILES_STILL_OPEN     "Files still open"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   110
 #define ERR_NO_DIR_CREATE        "Failed to create directories"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   111
 #define ERR_OUT_OF_MEMORY        "Out of memory"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   112
 #define ERR_NOT_IN_SEARCH_PATH   "No such entry in search path"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   113
 #define ERR_NOT_SUPPORTED        "Operation not supported"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   114
 #define ERR_UNSUPPORTED_ARCHIVE  "Archive type unsupported"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   115
 #define ERR_NOT_A_HANDLE         "Not a file handle"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   116
 #define ERR_INSECURE_FNAME       "Insecure filename"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   117
 #define ERR_SYMLINK_DISALLOWED   "Symbolic links are disabled"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   118
 #define ERR_NO_WRITE_DIR         "Write directory is not set"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   119
 #define ERR_NO_SUCH_FILE         "File not found"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   120
 #define ERR_NO_SUCH_PATH         "Path not found"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   121
 #define ERR_NO_SUCH_VOLUME       "Volume not found"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   122
 #define ERR_PAST_EOF             "Past end of file"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   123
 #define ERR_ARC_IS_READ_ONLY     "Archive is read-only"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   124
 #define ERR_IO_ERROR             "I/O error"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   125
 #define ERR_CANT_SET_WRITE_DIR   "Can't set write directory"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   126
 #define ERR_SYMLINK_LOOP         "Infinite symbolic link loop"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   127
 #define ERR_COMPRESSION          "(De)compression error"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   128
 #define ERR_NOT_IMPLEMENTED      "Not implemented"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   129
 #define ERR_OS_ERROR             "Operating system reported error"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   130
 #define ERR_FILE_EXISTS          "File already exists"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   131
 #define ERR_NOT_A_FILE           "Not a file"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   132
 #define ERR_NOT_A_DIR            "Not a directory"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   133
 #define ERR_NOT_AN_ARCHIVE       "Not an archive"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   134
 #define ERR_CORRUPTED            "Corrupted archive"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   135
 #define ERR_SEEK_OUT_OF_RANGE    "Seek out of range"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   136
 #define ERR_BAD_FILENAME         "Bad filename"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   137
 #define ERR_PHYSFS_BAD_OS_CALL   "(BUG) PhysicsFS made a bad system call"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   138
 #define ERR_ARGV0_IS_NULL        "argv0 is NULL"
774
916c2e81e77f 7zip support, written by Dennis Schridde, and heavily Ryanified by me.
Ryan C. Gordon <icculus@icculus.org>
parents: 767
diff changeset
   139
 #define ERR_NEED_DICT            "need dictionary"
916c2e81e77f 7zip support, written by Dennis Schridde, and heavily Ryanified by me.
Ryan C. Gordon <icculus@icculus.org>
parents: 767
diff changeset
   140
 #define ERR_DATA_ERROR           "data error"
916c2e81e77f 7zip support, written by Dennis Schridde, and heavily Ryanified by me.
Ryan C. Gordon <icculus@icculus.org>
parents: 767
diff changeset
   141
 #define ERR_MEMORY_ERROR         "memory error"
916c2e81e77f 7zip support, written by Dennis Schridde, and heavily Ryanified by me.
Ryan C. Gordon <icculus@icculus.org>
parents: 767
diff changeset
   142
 #define ERR_BUFFER_ERROR         "buffer error"
916c2e81e77f 7zip support, written by Dennis Schridde, and heavily Ryanified by me.
Ryan C. Gordon <icculus@icculus.org>
parents: 767
diff changeset
   143
 #define ERR_VERSION_ERROR        "version error"
916c2e81e77f 7zip support, written by Dennis Schridde, and heavily Ryanified by me.
Ryan C. Gordon <icculus@icculus.org>
parents: 767
diff changeset
   144
 #define ERR_UNKNOWN_ERROR        "unknown error"
427
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   145
 #define ERR_SEARCHPATH_TRUNC     "Search path was truncated"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   146
 #define ERR_GETMODFN_TRUNC       "GetModuleFileName() was truncated"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   147
 #define ERR_GETMODFN_NO_DIR      "GetModuleFileName() had no dir"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   148
 #define ERR_DISK_FULL            "Disk is full"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   149
 #define ERR_DIRECTORY_FULL       "Directory full"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   150
 #define ERR_MACOS_GENERIC        "MacOS reported error (%d)"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   151
 #define ERR_OS2_GENERIC          "OS/2 reported error (%d)"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   152
 #define ERR_VOL_LOCKED_HW        "Volume is locked through hardware"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   153
 #define ERR_VOL_LOCKED_SW        "Volume is locked through software"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   154
 #define ERR_FILE_LOCKED          "File is locked"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   155
 #define ERR_FILE_OR_DIR_BUSY     "File/directory is busy"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   156
 #define ERR_FILE_ALREADY_OPEN_W  "File already open for writing"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   157
 #define ERR_FILE_ALREADY_OPEN_R  "File already open for reading"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   158
 #define ERR_INVALID_REFNUM       "Invalid reference number"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   159
 #define ERR_GETTING_FILE_POS     "Error getting file position"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   160
 #define ERR_VOLUME_OFFLINE       "Volume is offline"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   161
 #define ERR_PERMISSION_DENIED    "Permission denied"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   162
 #define ERR_VOL_ALREADY_ONLINE   "Volume already online"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   163
 #define ERR_NO_SUCH_DRIVE        "No such drive"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   164
 #define ERR_NOT_MAC_DISK         "Not a Macintosh disk"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   165
 #define ERR_VOL_EXTERNAL_FS      "Volume belongs to an external filesystem"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   166
 #define ERR_PROBLEM_RENAME       "Problem during rename"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   167
 #define ERR_BAD_MASTER_BLOCK     "Bad master directory block"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   168
 #define ERR_CANT_MOVE_FORBIDDEN  "Attempt to move forbidden"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   169
 #define ERR_WRONG_VOL_TYPE       "Wrong volume type"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   170
 #define ERR_SERVER_VOL_LOST      "Server volume has been disconnected"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   171
 #define ERR_FILE_ID_NOT_FOUND    "File ID not found"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   172
 #define ERR_FILE_ID_EXISTS       "File ID already exists"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   173
 #define ERR_SERVER_NO_RESPOND    "Server not responding"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   174
 #define ERR_USER_AUTH_FAILED     "User authentication failed"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   175
 #define ERR_PWORD_EXPIRED        "Password has expired on server"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   176
 #define ERR_ACCESS_DENIED        "Access denied"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   177
 #define ERR_NOT_A_DOS_DISK       "Not a DOS disk"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   178
 #define ERR_SHARING_VIOLATION    "Sharing violation"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   179
 #define ERR_CANNOT_MAKE          "Cannot make"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   180
 #define ERR_DEV_IN_USE           "Device already in use"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   181
 #define ERR_OPEN_FAILED          "Open failed"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   182
 #define ERR_PIPE_BUSY            "Pipe is busy"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   183
 #define ERR_SHARING_BUF_EXCEEDED "Sharing buffer exceeded"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   184
 #define ERR_TOO_MANY_HANDLES     "Too many open handles"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   185
 #define ERR_SEEK_ERROR           "Seek error"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   186
 #define ERR_DEL_CWD              "Trying to delete current working directory"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   187
 #define ERR_WRITE_PROTECT_ERROR  "Write protect error"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   188
 #define ERR_WRITE_FAULT          "Write fault"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   189
 #define ERR_LOCK_VIOLATION       "Lock violation"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   190
 #define ERR_GEN_FAILURE          "General failure"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   191
 #define ERR_UNCERTAIN_MEDIA      "Uncertain media"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   192
 #define ERR_PROT_VIOLATION       "Protection violation"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   193
 #define ERR_BROKEN_PIPE          "Broken pipe"
431
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   194
511
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   195
#elif (PHYSFS_LANG == PHYSFS_LANG_GERMAN)
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   196
 #define DIR_ARCHIVE_DESCRIPTION  "Kein Archiv, direkte Ein/Ausgabe in das Dateisystem"
582
d15d27e34a7e Readded new qpak archiver.
Ryan C. Gordon <icculus@icculus.org>
parents: 578
diff changeset
   197
 #define GRP_ARCHIVE_DESCRIPTION  "Build engine Groupfile format"
553
4338d9c0bbcd Descent I/II HOG and MVL archive support (thanks, Bradley Bell!).
Ryan C. Gordon <icculus@icculus.org>
parents: 549
diff changeset
   198
 #define HOG_ARCHIVE_DESCRIPTION  "Descent I/II HOG file format"
4338d9c0bbcd Descent I/II HOG and MVL archive support (thanks, Bradley Bell!).
Ryan C. Gordon <icculus@icculus.org>
parents: 549
diff changeset
   199
 #define MVL_ARCHIVE_DESCRIPTION  "Descent II Movielib format"
582
d15d27e34a7e Readded new qpak archiver.
Ryan C. Gordon <icculus@icculus.org>
parents: 578
diff changeset
   200
 #define QPAK_ARCHIVE_DESCRIPTION "Quake I/II format"
511
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   201
 #define ZIP_ARCHIVE_DESCRIPTION  "PkZip/WinZip/Info-Zip kompatibel"
775
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 774
diff changeset
   202
 #define WAD_ARCHIVE_DESCRIPTION  "DOOM engine format" /* !!! FIXME: translate this line if needed */
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 774
diff changeset
   203
 #define LZMA_ARCHIVE_DESCRIPTION "LZMA (7zip) format" /* !!! FIXME: translate this line if needed */
511
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   204
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   205
 #define ERR_IS_INITIALIZED       "Bereits initialisiert"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   206
 #define ERR_NOT_INITIALIZED      "Nicht initialisiert"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   207
 #define ERR_INVALID_ARGUMENT     "Ungültiges Argument"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   208
 #define ERR_FILES_STILL_OPEN     "Dateien noch immer geöffnet"
511
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   209
 #define ERR_NO_DIR_CREATE        "Fehler beim Erzeugen der Verzeichnisse"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   210
 #define ERR_OUT_OF_MEMORY        "Kein Speicher mehr frei"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   211
 #define ERR_NOT_IN_SEARCH_PATH   "Eintrag nicht im Suchpfad enthalten"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   212
 #define ERR_NOT_SUPPORTED        "Befehl nicht unterstützt"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   213
 #define ERR_UNSUPPORTED_ARCHIVE  "Archiv-Typ nicht unterstützt"
511
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   214
 #define ERR_NOT_A_HANDLE         "Ist kein Dateideskriptor"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   215
 #define ERR_INSECURE_FNAME       "Unsicherer Dateiname"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   216
 #define ERR_SYMLINK_DISALLOWED   "Symbolische Verweise deaktiviert"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   217
 #define ERR_NO_WRITE_DIR         "Schreibverzeichnis ist nicht gesetzt"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   218
 #define ERR_NO_SUCH_FILE         "Datei nicht gefunden"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   219
 #define ERR_NO_SUCH_PATH         "Pfad nicht gefunden"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   220
 #define ERR_NO_SUCH_VOLUME       "Datencontainer nicht gefunden"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   221
 #define ERR_PAST_EOF             "Hinter dem Ende der Datei"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   222
 #define ERR_ARC_IS_READ_ONLY     "Archiv ist schreibgeschützt"
511
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   223
 #define ERR_IO_ERROR             "Ein/Ausgabe Fehler"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   224
 #define ERR_CANT_SET_WRITE_DIR   "Kann Schreibverzeichnis nicht setzen"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   225
 #define ERR_SYMLINK_LOOP         "Endlosschleife durch symbolische Verweise"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   226
 #define ERR_COMPRESSION          "(De)Kompressionsfehler"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   227
 #define ERR_NOT_IMPLEMENTED      "Nicht implementiert"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   228
 #define ERR_OS_ERROR             "Betriebssystem meldete Fehler"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   229
 #define ERR_FILE_EXISTS          "Datei existiert bereits"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   230
 #define ERR_NOT_A_FILE           "Ist keine Datei"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   231
 #define ERR_NOT_A_DIR            "Ist kein Verzeichnis"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   232
 #define ERR_NOT_AN_ARCHIVE       "Ist kein Archiv"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   233
 #define ERR_CORRUPTED            "Beschädigtes Archiv"
511
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   234
 #define ERR_SEEK_OUT_OF_RANGE    "Suche war ausserhalb der Reichweite"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   235
 #define ERR_BAD_FILENAME         "Unzulässiger Dateiname"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   236
 #define ERR_PHYSFS_BAD_OS_CALL   "(BUG) PhysicsFS verursachte einen ungültigen Systemaufruf"
511
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   237
 #define ERR_ARGV0_IS_NULL        "argv0 ist NULL"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   238
 #define ERR_NEED_DICT            "brauche Wörterbuch"
775
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 774
diff changeset
   239
 #define ERR_DATA_ERROR           "Datenfehler"
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 774
diff changeset
   240
 #define ERR_MEMORY_ERROR         "Speicherfehler"
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 774
diff changeset
   241
 #define ERR_BUFFER_ERROR         "Bufferfehler"
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 774
diff changeset
   242
 #define ERR_VERSION_ERROR        "Versionskonflikt"
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 774
diff changeset
   243
 #define ERR_UNKNOWN_ERROR        "Unbekannter Fehler"
511
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   244
 #define ERR_SEARCHPATH_TRUNC     "Suchpfad war abgeschnitten"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   245
 #define ERR_GETMODFN_TRUNC       "GetModuleFileName() war abgeschnitten"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   246
 #define ERR_GETMODFN_NO_DIR      "GetModuleFileName() bekam kein Verzeichnis"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   247
 #define ERR_DISK_FULL            "Laufwerk ist voll"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   248
 #define ERR_DIRECTORY_FULL       "Verzeichnis ist voll"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   249
 #define ERR_MACOS_GENERIC        "MacOS meldete Fehler (%d)"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   250
 #define ERR_OS2_GENERIC          "OS/2 meldete Fehler (%d)"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   251
 #define ERR_VOL_LOCKED_HW        "Datencontainer ist durch Hardware gesperrt"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   252
 #define ERR_VOL_LOCKED_SW        "Datencontainer ist durch Software gesperrt"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   253
 #define ERR_FILE_LOCKED          "Datei ist gesperrt"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   254
 #define ERR_FILE_OR_DIR_BUSY     "Datei/Verzeichnis ist beschäftigt"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   255
 #define ERR_FILE_ALREADY_OPEN_W  "Datei schon im Schreibmodus geöffnet"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   256
 #define ERR_FILE_ALREADY_OPEN_R  "Datei schon im Lesemodus geöffnet"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   257
 #define ERR_INVALID_REFNUM       "Ungültige Referenznummer"
511
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   258
 #define ERR_GETTING_FILE_POS     "Fehler beim Finden der Dateiposition"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   259
 #define ERR_VOLUME_OFFLINE       "Datencontainer ist offline"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   260
 #define ERR_PERMISSION_DENIED    "Zugriff verweigert"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   261
 #define ERR_VOL_ALREADY_ONLINE   "Datencontainer ist bereits online"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   262
 #define ERR_NO_SUCH_DRIVE        "Laufwerk nicht vorhanden"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   263
 #define ERR_NOT_MAC_DISK         "Ist kein Macintosh Laufwerk"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   264
 #define ERR_VOL_EXTERNAL_FS      "Datencontainer liegt auf einem externen Dateisystem"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   265
 #define ERR_PROBLEM_RENAME       "Fehler beim Umbenennen"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   266
 #define ERR_BAD_MASTER_BLOCK     "Beschädigter Hauptverzeichnisblock"
511
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   267
 #define ERR_CANT_MOVE_FORBIDDEN  "Verschieben nicht erlaubt"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   268
 #define ERR_WRONG_VOL_TYPE       "Falscher Datencontainer-Typ"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   269
 #define ERR_SERVER_VOL_LOST      "Datencontainer am Server wurde getrennt"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   270
 #define ERR_FILE_ID_NOT_FOUND    "Dateikennung nicht gefunden"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   271
 #define ERR_FILE_ID_EXISTS       "Dateikennung existiert bereits"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   272
 #define ERR_SERVER_NO_RESPOND    "Server antwortet nicht"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   273
 #define ERR_USER_AUTH_FAILED     "Benutzerauthentifizierung fehlgeschlagen"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   274
 #define ERR_PWORD_EXPIRED        "Passwort am Server ist abgelaufen"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   275
 #define ERR_ACCESS_DENIED        "Zugriff verweigert"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   276
 #define ERR_NOT_A_DOS_DISK       "Ist kein DOS-Laufwerk"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   277
 #define ERR_SHARING_VIOLATION    "Zugriffsverletzung"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   278
 #define ERR_CANNOT_MAKE          "Kann nicht erzeugen"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   279
 #define ERR_DEV_IN_USE           "Gerät wird bereits benutzt"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   280
 #define ERR_OPEN_FAILED          "Öffnen fehlgeschlagen"
511
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   281
 #define ERR_PIPE_BUSY            "Pipeverbindung ist belegt"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   282
 #define ERR_SHARING_BUF_EXCEEDED "Zugriffsbuffer überschritten"
511
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   283
 #define ERR_TOO_MANY_HANDLES     "Zu viele offene Dateien"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   284
 #define ERR_SEEK_ERROR           "Fehler beim Suchen"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   285
 #define ERR_DEL_CWD              "Aktuelles Arbeitsverzeichnis darf nicht gelöscht werden"
511
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   286
 #define ERR_WRITE_PROTECT_ERROR  "Schreibschutzfehler"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   287
 #define ERR_WRITE_FAULT          "Schreibfehler"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   288
 #define ERR_LOCK_VIOLATION       "Sperrverletzung"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   289
 #define ERR_GEN_FAILURE          "Allgemeiner Fehler"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   290
 #define ERR_UNCERTAIN_MEDIA      "Unsicheres Medium"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   291
 #define ERR_PROT_VIOLATION       "Schutzverletzung"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   292
 #define ERR_BROKEN_PIPE          "Pipeverbindung unterbrochen"
7a36b164a975 Added German translation.
Ryan C. Gordon <icculus@icculus.org>
parents: 508
diff changeset
   293
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   294
#elif (PHYSFS_LANG == PHYSFS_LANG_RUSSIAN)
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   295
 #define DIR_ARCHIVE_DESCRIPTION  "Не архив, непосредственный ввод/вывод файловой системы"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   296
 #define GRP_ARCHIVE_DESCRIPTION  "Формат группового файла Build engine"
585
760fe85ea2a0 Readded Russian translations, since contributor approved zlib license change.
Ryan C. Gordon <icculus@icculus.org>
parents: 582
diff changeset
   297
 #define HOG_ARCHIVE_DESCRIPTION  "Descent I/II HOG file format"
760fe85ea2a0 Readded Russian translations, since contributor approved zlib license change.
Ryan C. Gordon <icculus@icculus.org>
parents: 582
diff changeset
   298
 #define MVL_ARCHIVE_DESCRIPTION  "Descent II Movielib format"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   299
 #define ZIP_ARCHIVE_DESCRIPTION  "PkZip/WinZip/Info-Zip совместимый"
775
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 774
diff changeset
   300
 #define WAD_ARCHIVE_DESCRIPTION  "DOOM engine format" /* !!! FIXME: translate this line if needed */
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 774
diff changeset
   301
 #define LZMA_ARCHIVE_DESCRIPTION "LZMA (7zip) format" /* !!! FIXME: translate this line if needed */
585
760fe85ea2a0 Readded Russian translations, since contributor approved zlib license change.
Ryan C. Gordon <icculus@icculus.org>
parents: 582
diff changeset
   302
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   303
 #define ERR_IS_INITIALIZED       "Уже инициализирован"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   304
 #define ERR_NOT_INITIALIZED      "Не инициализирован"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   305
 #define ERR_INVALID_ARGUMENT     "Неверный аргумент"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   306
 #define ERR_FILES_STILL_OPEN     "Файлы еще открыты"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   307
 #define ERR_NO_DIR_CREATE        "Не могу создать каталоги"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   308
 #define ERR_OUT_OF_MEMORY        "Кончилась память"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   309
 #define ERR_NOT_IN_SEARCH_PATH   "Нет такого элемента в пути поиска"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   310
 #define ERR_NOT_SUPPORTED        "Операция не поддерживается"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   311
 #define ERR_UNSUPPORTED_ARCHIVE  "Архивы такого типа не поддерживаются"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   312
 #define ERR_NOT_A_HANDLE         "Не файловый дескриптор"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   313
 #define ERR_INSECURE_FNAME       "Небезопасное имя файла"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   314
 #define ERR_SYMLINK_DISALLOWED   "Символьные ссылки отключены"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   315
 #define ERR_NO_WRITE_DIR         "Каталог для записи не установлен"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   316
 #define ERR_NO_SUCH_FILE         "Файл не найден"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   317
 #define ERR_NO_SUCH_PATH         "Путь не найден"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   318
 #define ERR_NO_SUCH_VOLUME       "Том не найден"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   319
 #define ERR_PAST_EOF             "За концом файла"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   320
 #define ERR_ARC_IS_READ_ONLY     "Архив только для чтения"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   321
 #define ERR_IO_ERROR             "Ошибка ввода/вывода"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   322
 #define ERR_CANT_SET_WRITE_DIR   "Не могу установить каталог для записи"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   323
 #define ERR_SYMLINK_LOOP         "Бесконечный цикл символьной ссылки"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   324
 #define ERR_COMPRESSION          "Ошибка (Рас)паковки"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   325
 #define ERR_NOT_IMPLEMENTED      "Не реализовано"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   326
 #define ERR_OS_ERROR             "Операционная система сообщила ошибку"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   327
 #define ERR_FILE_EXISTS          "Файл уже существует"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   328
 #define ERR_NOT_A_FILE           "Не файл"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   329
 #define ERR_NOT_A_DIR            "Не каталог"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   330
 #define ERR_NOT_AN_ARCHIVE       "Не архив"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   331
 #define ERR_CORRUPTED            "Поврежденный архив"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   332
 #define ERR_SEEK_OUT_OF_RANGE    "Позиционирование за пределы"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   333
 #define ERR_BAD_FILENAME         "Неверное имя файла"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   334
 #define ERR_PHYSFS_BAD_OS_CALL   "(BUG) PhysicsFS выполнила неверный системный вызов"
585
760fe85ea2a0 Readded Russian translations, since contributor approved zlib license change.
Ryan C. Gordon <icculus@icculus.org>
parents: 582
diff changeset
   335
 #define ERR_ARGV0_IS_NULL        "argv0 is NULL"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   336
 #define ERR_NEED_DICT            "нужен словарь"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   337
 #define ERR_DATA_ERROR           "ошибка данных"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   338
 #define ERR_MEMORY_ERROR         "ошибка памяти"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   339
 #define ERR_BUFFER_ERROR         "ошибка буфера"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   340
 #define ERR_VERSION_ERROR        "ошибка версии"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   341
 #define ERR_UNKNOWN_ERROR        "неизвестная ошибка"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   342
 #define ERR_SEARCHPATH_TRUNC     "Путь поиска обрезан"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   343
 #define ERR_GETMODFN_TRUNC       "GetModuleFileName() обрезан"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   344
 #define ERR_GETMODFN_NO_DIR      "GetModuleFileName() не получил каталог"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   345
 #define ERR_DISK_FULL            "Диск полон"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   346
 #define ERR_DIRECTORY_FULL       "Каталог полон"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   347
 #define ERR_MACOS_GENERIC        "MacOS сообщила ошибку (%d)"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   348
 #define ERR_OS2_GENERIC          "OS/2 сообщила ошибку (%d)"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   349
 #define ERR_VOL_LOCKED_HW        "Том блокирован аппаратно"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   350
 #define ERR_VOL_LOCKED_SW        "Том блокирован программно"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   351
 #define ERR_FILE_LOCKED          "Файл заблокирован"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   352
 #define ERR_FILE_OR_DIR_BUSY     "Файл/каталог занят"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   353
 #define ERR_FILE_ALREADY_OPEN_W  "Файл уже открыт на запись"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   354
 #define ERR_FILE_ALREADY_OPEN_R  "Файл уже открыт на чтение"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   355
 #define ERR_INVALID_REFNUM       "Неверное количество ссылок"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   356
 #define ERR_GETTING_FILE_POS     "Ошибка при получении позиции файла"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   357
 #define ERR_VOLUME_OFFLINE       "Том отсоединен"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   358
 #define ERR_PERMISSION_DENIED    "Отказано в разрешении"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   359
 #define ERR_VOL_ALREADY_ONLINE   "Том уже подсоединен"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   360
 #define ERR_NO_SUCH_DRIVE        "Нет такого диска"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   361
 #define ERR_NOT_MAC_DISK         "Не диск Macintosh"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   362
 #define ERR_VOL_EXTERNAL_FS      "Том принадлежит внешней файловой системе"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   363
 #define ERR_PROBLEM_RENAME       "Проблема при переименовании"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   364
 #define ERR_BAD_MASTER_BLOCK     "Плохой главный блок каталога"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   365
 #define ERR_CANT_MOVE_FORBIDDEN  "Попытка переместить запрещена"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   366
 #define ERR_WRONG_VOL_TYPE       "Неверный тип тома"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   367
 #define ERR_SERVER_VOL_LOST      "Серверный том был отсоединен"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   368
 #define ERR_FILE_ID_NOT_FOUND    "Идентификатор файла не найден"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   369
 #define ERR_FILE_ID_EXISTS       "Идентификатор файла уже существует"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   370
 #define ERR_SERVER_NO_RESPOND    "Сервер не отвечает"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   371
 #define ERR_USER_AUTH_FAILED     "Идентификация пользователя не удалась"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   372
 #define ERR_PWORD_EXPIRED        "Пароль на сервере устарел"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   373
 #define ERR_ACCESS_DENIED        "Отказано в доступе"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   374
 #define ERR_NOT_A_DOS_DISK       "Не диск DOS"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   375
 #define ERR_SHARING_VIOLATION    "Нарушение совместного доступа"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   376
 #define ERR_CANNOT_MAKE          "Не могу собрать"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   377
 #define ERR_DEV_IN_USE           "Устройство уже используется"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   378
 #define ERR_OPEN_FAILED          "Открытие не удалось"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   379
 #define ERR_PIPE_BUSY            "Конвейер занят"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   380
 #define ERR_SHARING_BUF_EXCEEDED "Разделяемый буфер переполнен"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   381
 #define ERR_TOO_MANY_HANDLES     "Слишком много открытых дескрипторов"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   382
 #define ERR_SEEK_ERROR           "Ошибка позиционирования"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   383
 #define ERR_DEL_CWD              "Попытка удалить текущий рабочий каталог"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   384
 #define ERR_WRITE_PROTECT_ERROR  "Ошибка защиты записи"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   385
 #define ERR_WRITE_FAULT          "Ошибка записи"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   386
 #define ERR_LOCK_VIOLATION       "Нарушение блокировки"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   387
 #define ERR_GEN_FAILURE          "Общий сбой"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   388
 #define ERR_UNCERTAIN_MEDIA      "Неопределенный носитель"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   389
 #define ERR_PROT_VIOLATION       "Нарушение защиты"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   390
 #define ERR_BROKEN_PIPE          "Сломанный конвейер"
585
760fe85ea2a0 Readded Russian translations, since contributor approved zlib license change.
Ryan C. Gordon <icculus@icculus.org>
parents: 582
diff changeset
   391
760fe85ea2a0 Readded Russian translations, since contributor approved zlib license change.
Ryan C. Gordon <icculus@icculus.org>
parents: 582
diff changeset
   392
439
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   393
#elif (PHYSFS_LANG == PHYSFS_LANG_FRENCH)
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   394
 #define DIR_ARCHIVE_DESCRIPTION  "Pas d'archive, E/S directes sur système de fichiers"
439
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   395
 #define GRP_ARCHIVE_DESCRIPTION  "Format Groupfile du moteur Build"
553
4338d9c0bbcd Descent I/II HOG and MVL archive support (thanks, Bradley Bell!).
Ryan C. Gordon <icculus@icculus.org>
parents: 549
diff changeset
   396
 #define HOG_ARCHIVE_DESCRIPTION  "Descent I/II HOG file format"
4338d9c0bbcd Descent I/II HOG and MVL archive support (thanks, Bradley Bell!).
Ryan C. Gordon <icculus@icculus.org>
parents: 549
diff changeset
   397
 #define MVL_ARCHIVE_DESCRIPTION  "Descent II Movielib format"
582
d15d27e34a7e Readded new qpak archiver.
Ryan C. Gordon <icculus@icculus.org>
parents: 578
diff changeset
   398
 #define QPAK_ARCHIVE_DESCRIPTION "Quake I/II format"
439
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   399
 #define ZIP_ARCHIVE_DESCRIPTION  "Compatible PkZip/WinZip/Info-Zip"
694
80bc8858b4ab Added translation for WAD file type.
Ryan C. Gordon <icculus@icculus.org>
parents: 691
diff changeset
   400
 #define WAD_ARCHIVE_DESCRIPTION  "Format WAD du moteur DOOM"
775
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 774
diff changeset
   401
 #define LZMA_ARCHIVE_DESCRIPTION "LZMA (7zip) format" /* !!! FIXME: translate this line if needed */
439
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   402
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   403
 #define ERR_IS_INITIALIZED       "Déjà initialisé"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   404
 #define ERR_NOT_INITIALIZED      "Non initialisé"
439
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   405
 #define ERR_INVALID_ARGUMENT     "Argument invalide"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   406
 #define ERR_FILES_STILL_OPEN     "Fichiers encore ouverts"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   407
 #define ERR_NO_DIR_CREATE        "Echec de la création de répertoires"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   408
 #define ERR_OUT_OF_MEMORY        "A court de mémoire"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   409
 #define ERR_NOT_IN_SEARCH_PATH   "Aucune entrée dans le chemin de recherche"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   410
 #define ERR_NOT_SUPPORTED        "Opération non supportée"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   411
 #define ERR_UNSUPPORTED_ARCHIVE  "Type d'archive non supportée"
439
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   412
 #define ERR_NOT_A_HANDLE         "Pas un descripteur de fichier"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   413
 #define ERR_INSECURE_FNAME       "Nom de fichier dangereux"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   414
 #define ERR_SYMLINK_DISALLOWED   "Les liens symboliques sont désactivés"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   415
 #define ERR_NO_WRITE_DIR         "Le répertoire d'écriture n'est pas spécifié"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   416
 #define ERR_NO_SUCH_FILE         "Fichier non trouvé"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   417
 #define ERR_NO_SUCH_PATH         "Chemin non trouvé"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   418
 #define ERR_NO_SUCH_VOLUME       "Volume non trouvé"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   419
 #define ERR_PAST_EOF             "Au-delà de la fin du fichier"
439
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   420
 #define ERR_ARC_IS_READ_ONLY     "L'archive est en lecture seule"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   421
 #define ERR_IO_ERROR             "Erreur E/S"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   422
 #define ERR_CANT_SET_WRITE_DIR   "Ne peut utiliser le répertoire d'écriture"
439
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   423
 #define ERR_SYMLINK_LOOP         "Boucle infinie dans les liens symboliques"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   424
 #define ERR_COMPRESSION          "Erreur de (dé)compression"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   425
 #define ERR_NOT_IMPLEMENTED      "Non implémenté"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   426
 #define ERR_OS_ERROR             "Erreur rapportée par le système d'exploitation"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   427
 #define ERR_FILE_EXISTS          "Le fichier existe déjà"
439
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   428
 #define ERR_NOT_A_FILE           "Pas un fichier"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   429
 #define ERR_NOT_A_DIR            "Pas un répertoire"
439
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   430
 #define ERR_NOT_AN_ARCHIVE       "Pas une archive"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   431
 #define ERR_CORRUPTED            "Archive corrompue"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   432
 #define ERR_SEEK_OUT_OF_RANGE    "Pointeur de fichier hors de portée"
439
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   433
 #define ERR_BAD_FILENAME         "Mauvais nom de fichier"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   434
 #define ERR_PHYSFS_BAD_OS_CALL   "(BOGUE) PhysicsFS a fait un mauvais appel système, le salaud"
439
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   435
 #define ERR_ARGV0_IS_NULL        "argv0 est NULL"
775
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 774
diff changeset
   436
 #define ERR_NEED_DICT            "a besoin du dico"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   437
 #define ERR_DATA_ERROR           "erreur de données"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   438
 #define ERR_MEMORY_ERROR         "erreur mémoire"
775
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 774
diff changeset
   439
 #define ERR_BUFFER_ERROR         "erreur tampon"
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 774
diff changeset
   440
 #define ERR_VERSION_ERROR        "erreur de version"
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 774
diff changeset
   441
 #define ERR_UNKNOWN_ERROR        "erreur inconnue"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   442
 #define ERR_SEARCHPATH_TRUNC     "Le chemin de recherche a été tronqué"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   443
 #define ERR_GETMODFN_TRUNC       "GetModuleFileName() a été tronqué"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   444
 #define ERR_GETMODFN_NO_DIR      "GetModuleFileName() n'a pas de répertoire"
439
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   445
 #define ERR_DISK_FULL            "Disque plein"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   446
 #define ERR_DIRECTORY_FULL       "Répertoire plein"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   447
 #define ERR_MACOS_GENERIC        "Erreur rapportée par MacOS (%d)"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   448
 #define ERR_OS2_GENERIC          "Erreur rapportée par OS/2 (%d)"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   449
 #define ERR_VOL_LOCKED_HW        "Le volume est verrouillé matériellement"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   450
 #define ERR_VOL_LOCKED_SW        "Le volume est verrouillé par logiciel"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   451
 #define ERR_FILE_LOCKED          "Fichier verrouillé"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   452
 #define ERR_FILE_OR_DIR_BUSY     "Fichier/répertoire occupé"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   453
 #define ERR_FILE_ALREADY_OPEN_W  "Fichier déjà ouvert en écriture"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   454
 #define ERR_FILE_ALREADY_OPEN_R  "Fichier déjà ouvert en lecture"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   455
 #define ERR_INVALID_REFNUM       "Numéro de référence invalide"
439
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   456
 #define ERR_GETTING_FILE_POS     "Erreur lors de l'obtention de la position du pointeur de fichier"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   457
 #define ERR_VOLUME_OFFLINE       "Le volume n'est pas en ligne"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   458
 #define ERR_PERMISSION_DENIED    "Permission refusée"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   459
 #define ERR_VOL_ALREADY_ONLINE   "Volumé déjà en ligne"
439
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   460
 #define ERR_NO_SUCH_DRIVE        "Lecteur inexistant"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   461
 #define ERR_NOT_MAC_DISK         "Pas un disque Macintosh"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   462
 #define ERR_VOL_EXTERNAL_FS      "Le volume appartient à un système de fichiers externe"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   463
 #define ERR_PROBLEM_RENAME       "Problème lors du renommage"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   464
 #define ERR_BAD_MASTER_BLOCK     "Mauvais block maitre de répertoire"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   465
 #define ERR_CANT_MOVE_FORBIDDEN  "Essai de déplacement interdit"
439
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   466
 #define ERR_WRONG_VOL_TYPE       "Mauvais type de volume"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   467
 #define ERR_SERVER_VOL_LOST      "Le volume serveur a été déconnecté"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   468
 #define ERR_FILE_ID_NOT_FOUND    "Identificateur de fichier non trouvé"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   469
 #define ERR_FILE_ID_EXISTS       "Identificateur de fichier existe déjà"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   470
 #define ERR_SERVER_NO_RESPOND    "Le serveur ne répond pas"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   471
 #define ERR_USER_AUTH_FAILED     "Authentification de l'utilisateur échouée"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   472
 #define ERR_PWORD_EXPIRED        "Le mot de passe a expiré sur le serveur"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   473
 #define ERR_ACCESS_DENIED        "Accès refusé"
439
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   474
 #define ERR_NOT_A_DOS_DISK       "Pas un disque DOS"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   475
 #define ERR_SHARING_VIOLATION    "Violation de partage"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   476
 #define ERR_CANNOT_MAKE          "Ne peut faire"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   477
 #define ERR_DEV_IN_USE           "Périphérique déjà en utilisation"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   478
 #define ERR_OPEN_FAILED          "Ouverture échouée"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   479
 #define ERR_PIPE_BUSY            "Le tube est occupé"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   480
 #define ERR_SHARING_BUF_EXCEEDED "Tampon de partage dépassé"
439
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   481
 #define ERR_TOO_MANY_HANDLES     "Trop de descripteurs ouverts"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   482
 #define ERR_SEEK_ERROR           "Erreur de positionement"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   483
 #define ERR_DEL_CWD              "Essai de supprimer le répertoire courant"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   484
 #define ERR_WRITE_PROTECT_ERROR  "Erreur de protection en écriture"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   485
 #define ERR_WRITE_FAULT          "Erreur d'écriture"
439
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   486
 #define ERR_LOCK_VIOLATION       "Violation de verrou"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   487
 #define ERR_GEN_FAILURE          "Echec général"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   488
 #define ERR_UNCERTAIN_MEDIA      "Média incertain"
439
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   489
 #define ERR_PROT_VIOLATION       "Violation de protection"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   490
 #define ERR_BROKEN_PIPE          "Tube cassé"
435
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   491
627
c47634e23a35 Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents: 596
diff changeset
   492
#elif (PHYSFS_LANG == PHYSFS_LANG_PORTUGUESE_BR)
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   493
 #define DIR_ARCHIVE_DESCRIPTION  "Não arquivo, E/S sistema de arquivos direto"
694
80bc8858b4ab Added translation for WAD file type.
Ryan C. Gordon <icculus@icculus.org>
parents: 691
diff changeset
   494
 #define GRP_ARCHIVE_DESCRIPTION  "Formato Groupfile do engine Build"
627
c47634e23a35 Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents: 596
diff changeset
   495
 #define HOG_ARCHIVE_DESCRIPTION  "Formato Descent I/II HOG file"
c47634e23a35 Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents: 596
diff changeset
   496
 #define MVL_ARCHIVE_DESCRIPTION  "Formato Descent II Movielib"
c47634e23a35 Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents: 596
diff changeset
   497
 #define QPAK_ARCHIVE_DESCRIPTION "Formato Quake I/II"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   498
 #define ZIP_ARCHIVE_DESCRIPTION  "Formato compatível PkZip/WinZip/Info-Zip"
694
80bc8858b4ab Added translation for WAD file type.
Ryan C. Gordon <icculus@icculus.org>
parents: 691
diff changeset
   499
 #define WAD_ARCHIVE_DESCRIPTION  "Formato WAD do engine DOOM"
775
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 774
diff changeset
   500
 #define WAD_ARCHIVE_DESCRIPTION  "DOOM engine format" /* !!! FIXME: translate this line if needed */
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 774
diff changeset
   501
 #define LZMA_ARCHIVE_DESCRIPTION "LZMA (7zip) format" /* !!! FIXME: translate this line if needed */
627
c47634e23a35 Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents: 596
diff changeset
   502
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   503
 #define ERR_IS_INITIALIZED       "Já inicializado"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   504
 #define ERR_NOT_INITIALIZED      "Não inicializado"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   505
 #define ERR_INVALID_ARGUMENT     "Argumento inválido"
627
c47634e23a35 Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents: 596
diff changeset
   506
 #define ERR_FILES_STILL_OPEN     "Arquivos ainda abertos"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   507
 #define ERR_NO_DIR_CREATE        "Falha na criação de diretórios"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   508
 #define ERR_OUT_OF_MEMORY        "Memória insuficiente"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   509
 #define ERR_NOT_IN_SEARCH_PATH   "Entrada não encontrada no caminho de busca"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   510
 #define ERR_NOT_SUPPORTED        "Operação não suportada"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   511
 #define ERR_UNSUPPORTED_ARCHIVE  "Tipo de arquivo não suportado"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   512
 #define ERR_NOT_A_HANDLE         "Não é um handler de arquivo"
627
c47634e23a35 Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents: 596
diff changeset
   513
 #define ERR_INSECURE_FNAME       "Nome de arquivo inseguro"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   514
 #define ERR_SYMLINK_DISALLOWED   "Links simbólicos desabilitados"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   515
 #define ERR_NO_WRITE_DIR         "Diretório de escrita não definido"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   516
 #define ERR_NO_SUCH_FILE         "Arquivo não encontrado"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   517
 #define ERR_NO_SUCH_PATH         "Caminho não encontrado"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   518
 #define ERR_NO_SUCH_VOLUME       "Volume não encontrado"
627
c47634e23a35 Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents: 596
diff changeset
   519
 #define ERR_PAST_EOF             "Passou o fim do arquivo"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   520
 #define ERR_ARC_IS_READ_ONLY     "Arquivo é somente de leitura"
627
c47634e23a35 Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents: 596
diff changeset
   521
 #define ERR_IO_ERROR             "Erro de E/S"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   522
 #define ERR_CANT_SET_WRITE_DIR   "Não foi possível definir diretório de escrita"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   523
 #define ERR_SYMLINK_LOOP         "Loop infinito de link simbólico"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   524
 #define ERR_COMPRESSION          "Erro de (Des)compressão"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   525
 #define ERR_NOT_IMPLEMENTED      "Não implementado"
627
c47634e23a35 Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents: 596
diff changeset
   526
 #define ERR_OS_ERROR             "Erro reportado pelo Sistema Operacional"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   527
 #define ERR_FILE_EXISTS          "Arquivo já existente"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   528
 #define ERR_NOT_A_FILE           "Não é um arquivo"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   529
 #define ERR_NOT_A_DIR            "Não é um diretório"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   530
 #define ERR_NOT_AN_ARCHIVE       "Não é um pacote"
627
c47634e23a35 Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents: 596
diff changeset
   531
 #define ERR_CORRUPTED            "Pacote corrompido"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   532
 #define ERR_SEEK_OUT_OF_RANGE    "Posicionamento além do tamanho"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   533
 #define ERR_BAD_FILENAME         "Nome de arquivo inválido"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   534
 #define ERR_PHYSFS_BAD_OS_CALL   "(BUG) PhysicsFS realizou uma chamada de sistema inválida"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   535
 #define ERR_ARGV0_IS_NULL        "argv0 é NULL"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   536
 #define ERR_NEED_DICT            "precisa de diretório"
775
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 774
diff changeset
   537
 #define ERR_DATA_ERROR           "erro nos dados"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   538
 #define ERR_MEMORY_ERROR         "erro de memória"
775
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 774
diff changeset
   539
 #define ERR_BUFFER_ERROR         "erro de buffer"
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 774
diff changeset
   540
 #define ERR_VERSION_ERROR        "erro na version"
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 774
diff changeset
   541
 #define ERR_UNKNOWN_ERROR        "erro desconhecido"
627
c47634e23a35 Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents: 596
diff changeset
   542
 #define ERR_SEARCHPATH_TRUNC     "Caminho de procura quebrado"
c47634e23a35 Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents: 596
diff changeset
   543
 #define ERR_GETMODFN_TRUNC       "GetModuleFileName() foi quebrado"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   544
 #define ERR_GETMODFN_NO_DIR      "GetModuleFileName() nao teve diretório"
627
c47634e23a35 Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents: 596
diff changeset
   545
 #define ERR_DISK_FULL            "Disco cheio"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   546
 #define ERR_DIRECTORY_FULL       "Diretório cheio"
627
c47634e23a35 Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents: 596
diff changeset
   547
 #define ERR_MACOS_GENERIC        "MacOS reportou um erro (%d)"
c47634e23a35 Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents: 596
diff changeset
   548
 #define ERR_OS2_GENERIC          "OS/2 reportou um erro (%d)"
c47634e23a35 Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents: 596
diff changeset
   549
 #define ERR_VOL_LOCKED_HW        "Volume travado por hardware"
c47634e23a35 Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents: 596
diff changeset
   550
 #define ERR_VOL_LOCKED_SW        "Volume travado por software"
c47634e23a35 Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents: 596
diff changeset
   551
 #define ERR_FILE_LOCKED          "Arquivo travado"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   552
 #define ERR_FILE_OR_DIR_BUSY     "Arquivo/Diretório está em uso"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   553
 #define ERR_FILE_ALREADY_OPEN_W  "Arquivo já aberto para escrita"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   554
 #define ERR_FILE_ALREADY_OPEN_R  "Arquivo já aberto para leitura"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   555
 #define ERR_INVALID_REFNUM       "Número de referência"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   556
 #define ERR_GETTING_FILE_POS     "Erro ao tentar obter posição do arquivo"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   557
 #define ERR_VOLUME_OFFLINE       "Volume está indisponível"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   558
 #define ERR_PERMISSION_DENIED    "Permissão negada"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   559
 #define ERR_VOL_ALREADY_ONLINE   "Volume disponível"
627
c47634e23a35 Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents: 596
diff changeset
   560
 #define ERR_NO_SUCH_DRIVE        "Drive inexistente"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   561
 #define ERR_NOT_MAC_DISK         "Não é um disco Macintosh"
627
c47634e23a35 Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents: 596
diff changeset
   562
 #define ERR_VOL_EXTERNAL_FS      "Volume pertence a um sistema de arquivos externo"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   563
 #define ERR_PROBLEM_RENAME       "Problema durante renomeação"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   564
 #define ERR_BAD_MASTER_BLOCK     "Bloco master do diretório inválido"
627
c47634e23a35 Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents: 596
diff changeset
   565
 #define ERR_CANT_MOVE_FORBIDDEN  "Tentativa de mover proibida"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   566
 #define ERR_WRONG_VOL_TYPE       "Tipo inválido de volume"
627
c47634e23a35 Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents: 596
diff changeset
   567
 #define ERR_SERVER_VOL_LOST      "Volume servidor desconectado"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   568
 #define ERR_FILE_ID_NOT_FOUND    "ID de Arquivo não encontrado"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   569
 #define ERR_FILE_ID_EXISTS       "ID de Arquivo já existente"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   570
 #define ERR_SERVER_NO_RESPOND    "Servidor não respondendo"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   571
 #define ERR_USER_AUTH_FAILED     "Autenticação de usuário falhada"
627
c47634e23a35 Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents: 596
diff changeset
   572
 #define ERR_PWORD_EXPIRED        "Password foi expirada no servidor"
c47634e23a35 Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents: 596
diff changeset
   573
 #define ERR_ACCESS_DENIED        "Accesso negado"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   574
 #define ERR_NOT_A_DOS_DISK       "Não é um disco DOS"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   575
 #define ERR_SHARING_VIOLATION    "Violação de compartilhamento"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   576
 #define ERR_CANNOT_MAKE          "Não pode ser feito"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   577
 #define ERR_DEV_IN_USE           "Device já em uso"
627
c47634e23a35 Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents: 596
diff changeset
   578
 #define ERR_OPEN_FAILED          "Falaha na abertura"
c47634e23a35 Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents: 596
diff changeset
   579
 #define ERR_PIPE_BUSY            "Fila ocupada"
c47634e23a35 Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents: 596
diff changeset
   580
 #define ERR_SHARING_BUF_EXCEEDED "Buffer de compartilhamento excedeu"
c47634e23a35 Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents: 596
diff changeset
   581
 #define ERR_TOO_MANY_HANDLES     "Muitos handles abertos"
c47634e23a35 Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents: 596
diff changeset
   582
 #define ERR_SEEK_ERROR           "Erro de posicionamento"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   583
 #define ERR_DEL_CWD              "Tentando remover diretório de trabalho atual"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   584
 #define ERR_WRITE_PROTECT_ERROR  "Erro de proteção de escrita"
627
c47634e23a35 Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents: 596
diff changeset
   585
 #define ERR_WRITE_FAULT          "Erro de escrita"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   586
 #define ERR_LOCK_VIOLATION       "Violação de trava"
627
c47634e23a35 Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents: 596
diff changeset
   587
 #define ERR_GEN_FAILURE          "Falha geral"
c47634e23a35 Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents: 596
diff changeset
   588
 #define ERR_UNCERTAIN_MEDIA      "Media incerta"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   589
 #define ERR_PROT_VIOLATION       "Violação de proteção"
627
c47634e23a35 Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents: 596
diff changeset
   590
 #define ERR_BROKEN_PIPE          "Fila quebrada"
c47634e23a35 Added Brazillian Portuguese translation (thanks, Danny!)
Ryan C. Gordon <icculus@icculus.org>
parents: 596
diff changeset
   591
641
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   592
#elif (PHYSFS_LANG == PHYSFS_LANG_SPANISH)
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   593
 #define DIR_ARCHIVE_DESCRIPTION  "No es un archivo, E/S directa al sistema de ficheros"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   594
 #define GRP_ARCHIVE_DESCRIPTION  "Formato Build engine Groupfile"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   595
 #define HOG_ARCHIVE_DESCRIPTION  "Formato Descent I/II HOG file"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   596
 #define MVL_ARCHIVE_DESCRIPTION  "Formato Descent II Movielib"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   597
 #define QPAK_ARCHIVE_DESCRIPTION "Formato Quake I/II"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   598
 #define ZIP_ARCHIVE_DESCRIPTION  "Compatible con PkZip/WinZip/Info-Zip"
775
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 774
diff changeset
   599
 #define WAD_ARCHIVE_DESCRIPTION  "DOOM engine format" /* !!! FIXME: translate this line if needed */
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 774
diff changeset
   600
 #define LZMA_ARCHIVE_DESCRIPTION "LZMA (7zip) format" /* !!! FIXME: translate this line if needed */
641
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   601
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   602
 #define ERR_IS_INITIALIZED       "Ya estaba inicializado"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   603
 #define ERR_NOT_INITIALIZED      "No está inicializado"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   604
 #define ERR_INVALID_ARGUMENT     "Argumento inválido"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   605
 #define ERR_FILES_STILL_OPEN     "Archivos aún abiertos"
641
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   606
 #define ERR_NO_DIR_CREATE        "Fallo al crear los directorios"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   607
 #define ERR_OUT_OF_MEMORY        "Memoria agotada"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   608
 #define ERR_NOT_IN_SEARCH_PATH   "No existe tal entrada en la ruta de búsqueda"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   609
 #define ERR_NOT_SUPPORTED        "Operación no soportada"
641
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   610
 #define ERR_UNSUPPORTED_ARCHIVE  "Tipo de archivo no soportado"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   611
 #define ERR_NOT_A_HANDLE         "No es un manejador de ficheo (file handle)"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   612
 #define ERR_INSECURE_FNAME       "Nombre de archivo inseguro"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   613
 #define ERR_SYMLINK_DISALLOWED   "Los enlaces simbólicos están desactivados"
641
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   614
 #define ERR_NO_WRITE_DIR         "No has configurado un directorio de escritura"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   615
 #define ERR_NO_SUCH_FILE         "Archivo no encontrado"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   616
 #define ERR_NO_SUCH_PATH         "Ruta no encontrada"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   617
 #define ERR_NO_SUCH_VOLUME       "Volumen no encontrado"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   618
 #define ERR_PAST_EOF             "Te pasaste del final del archivo"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   619
 #define ERR_ARC_IS_READ_ONLY     "El archivo es de sólo lectura"
641
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   620
 #define ERR_IO_ERROR             "Error E/S"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   621
 #define ERR_CANT_SET_WRITE_DIR   "No puedo configurar el directorio de escritura"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   622
 #define ERR_SYMLINK_LOOP         "Bucle infnito de enlaces simbólicos"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   623
 #define ERR_COMPRESSION          "Error de (des)compresión"
641
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   624
 #define ERR_NOT_IMPLEMENTED      "No implementado"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   625
 #define ERR_OS_ERROR             "El sistema operativo ha devuelto un error"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   626
 #define ERR_FILE_EXISTS          "El archivo ya existe"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   627
 #define ERR_NOT_A_FILE           "No es un archivo"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   628
 #define ERR_NOT_A_DIR            "No es un directorio"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   629
 #define ERR_NOT_AN_ARCHIVE       "No es un archivo"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   630
 #define ERR_CORRUPTED            "Archivo corrupto"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   631
 #define ERR_SEEK_OUT_OF_RANGE    "Búsqueda fuera de rango"
641
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   632
 #define ERR_BAD_FILENAME         "Nombre de archivo incorrecto"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   633
 #define ERR_PHYSFS_BAD_OS_CALL   "(BUG) PhysicsFS ha hecho una llamada incorrecta al sistema"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   634
 #define ERR_ARGV0_IS_NULL        "argv0 es NULL"
775
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 774
diff changeset
   635
 #define ERR_NEED_DICT            "necesito diccionario"
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 774
diff changeset
   636
 #define ERR_DATA_ERROR           "error de datos"
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 774
diff changeset
   637
 #define ERR_MEMORY_ERROR         "error de memoria"
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 774
diff changeset
   638
 #define ERR_BUFFER_ERROR         "error de buffer"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   639
 #define ERR_VERSION_ERROR        "error de versión"
775
a8cc6b8a8e9c Some minor fixes and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 774
diff changeset
   640
 #define ERR_UNKNOWN_ERROR        "error desconocido"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   641
 #define ERR_SEARCHPATH_TRUNC     "La ruta de búsqueda ha sido truncada"
641
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   642
 #define ERR_GETMODFN_TRUNC       "GetModuleFileName() ha sido truncado"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   643
 #define ERR_GETMODFN_NO_DIR      "GetModuleFileName() no tenia directorio"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   644
 #define ERR_DISK_FULL            "El disco está lleno"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   645
 #define ERR_DIRECTORY_FULL       "El directorio está lleno"
641
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   646
 #define ERR_MACOS_GENERIC        "MacOS ha devuelto un error (%d)"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   647
 #define ERR_OS2_GENERIC          "OS/2 ha devuelto un error (%d)"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   648
 #define ERR_VOL_LOCKED_HW        "El volumen está bloqueado por el hardware"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   649
 #define ERR_VOL_LOCKED_SW        "El volumen está bloqueado por el software"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   650
 #define ERR_FILE_LOCKED          "El archivo está bloqueado"
641
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   651
 #define ERR_FILE_OR_DIR_BUSY     "Fichero o directorio ocupados"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   652
 #define ERR_FILE_ALREADY_OPEN_W  "Fichero ya abierto para escritura"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   653
 #define ERR_FILE_ALREADY_OPEN_R  "Fichero ya abierto para lectura"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   654
 #define ERR_INVALID_REFNUM       "El número de referencia no es válido"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   655
 #define ERR_GETTING_FILE_POS     "Error al tomar la posición del fichero"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   656
 #define ERR_VOLUME_OFFLINE       "El volumen está desconectado"
641
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   657
 #define ERR_PERMISSION_DENIED    "Permiso denegado"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   658
 #define ERR_VOL_ALREADY_ONLINE   "El volumen ya estaba conectado"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   659
 #define ERR_NO_SUCH_DRIVE        "No existe tal unidad"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   660
 #define ERR_NOT_MAC_DISK         "No es un disco Macintosh"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   661
 #define ERR_VOL_EXTERNAL_FS      "El volumen pertence a un sistema de ficheros externo"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   662
 #define ERR_PROBLEM_RENAME       "Problemas al renombrar"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   663
 #define ERR_BAD_MASTER_BLOCK     "Bloque maestro de directorios incorrecto"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   664
 #define ERR_CANT_MOVE_FORBIDDEN  "Intento de mover forbidden"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   665
 #define ERR_WRONG_VOL_TYPE       "Tipo de volumen incorrecto"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   666
 #define ERR_SERVER_VOL_LOST      "El servidor de volúmenes ha sido desconectado"
641
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   667
 #define ERR_FILE_ID_NOT_FOUND    "Identificador de archivo no encontrado"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   668
 #define ERR_FILE_ID_EXISTS       "El identificador de archivo ya existe"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   669
 #define ERR_SERVER_NO_RESPOND    "El servidor no responde"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   670
 #define ERR_USER_AUTH_FAILED     "Fallo al autentificar el usuario"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   671
 #define ERR_PWORD_EXPIRED        "La Password  en el servidor ha caducado"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   672
 #define ERR_ACCESS_DENIED        "Acceso denegado"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   673
 #define ERR_NOT_A_DOS_DISK       "No es un disco de DOS"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   674
 #define ERR_SHARING_VIOLATION    "Violación al compartir"
641
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   675
 #define ERR_CANNOT_MAKE          "No puedo hacer make"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   676
 #define ERR_DEV_IN_USE           "El dispositivo ya estaba en uso"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   677
 #define ERR_OPEN_FAILED          "Fallo al abrir"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   678
 #define ERR_PIPE_BUSY            "Tubería ocupada"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   679
 #define ERR_SHARING_BUF_EXCEEDED "Buffer de compartición sobrepasado"
641
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   680
 #define ERR_TOO_MANY_HANDLES     "Demasiados manejadores (handles)"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   681
 #define ERR_SEEK_ERROR           "Error de búsqueda"
641
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   682
 #define ERR_DEL_CWD              "Intentando borrar el directorio de trabajo actual"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   683
 #define ERR_WRITE_PROTECT_ERROR  "Error de protección contra escritura"
641
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   684
 #define ERR_WRITE_FAULT          "Fallo al escribir"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   685
 #define ERR_LOCK_VIOLATION       "Violación del bloqueo"
641
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   686
 #define ERR_GEN_FAILURE          "Fallo general"
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   687
 #define ERR_UNCERTAIN_MEDIA      "Medio incierto"
933
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   688
 #define ERR_PROT_VIOLATION       "Violación de la protección"
02f861d084a8 Converted translations to UTF-8 (and removed duplicate Russian translations,
Ryan C. Gordon <icculus@icculus.org>
parents: 905
diff changeset
   689
 #define ERR_BROKEN_PIPE          "Tubería rota"
641
c6b04c2a0599 Readded Spanish translation:
Ryan C. Gordon <icculus@icculus.org>
parents: 629
diff changeset
   690
427
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   691
#else
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   692
 #error Please define PHYSFS_LANG.
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   693
#endif
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   694
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   695
/* end LANG section. */
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   696
15
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   697
struct __PHYSFS_DIRHANDLE__;
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   698
struct __PHYSFS_FILEFUNCTIONS__;
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   699
20
efdde0d21521 Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents: 19
diff changeset
   700
650
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   701
/* !!! FIXME: find something better than "dvoid" and "fvoid" ... */
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   702
/* Opaque data for file and dir handlers... */
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   703
typedef void dvoid;
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   704
typedef void fvoid;
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   705
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   706
650
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   707
typedef struct
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   708
{
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   709
        /*
650
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   710
         * Basic info about this archiver...
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   711
         */
650
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   712
    const PHYSFS_ArchiveInfo *info;
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   713
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   714
650
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   715
    /*
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   716
     * DIRECTORY ROUTINES:
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   717
     * These functions are for dir handles. Generate a handle with the
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   718
     *  openArchive() method, then pass it as the "opaque" dvoid to the
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   719
     *  others.
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   720
     *
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   721
     * Symlinks should always be followed; PhysicsFS will use the
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   722
     *  isSymLink() method and make a judgement on whether to
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   723
     *  continue to call other methods based on that.
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   724
     */
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   725
399
02dd53688315 Changed DirFunctions struct a little.
Ryan C. Gordon <icculus@icculus.org>
parents: 363
diff changeset
   726
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   727
        /*
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   728
         * Returns non-zero if (filename) is a valid archive that this
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   729
         *  driver can handle. This filename is in platform-dependent
15
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   730
         *  notation. forWriting is non-zero if this is to be used for
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   731
         *  the write directory, and zero if this is to be used for an
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   732
         *  element of the search path.
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   733
         */
15
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   734
    int (*isArchive)(const char *filename, int forWriting);
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   735
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   736
        /*
648
5c993684b8f2 Cleaned up archiver interface to not deal with DirHandles anymore,
Ryan C. Gordon <icculus@icculus.org>
parents: 644
diff changeset
   737
         * Open a dirhandle for dir/archive (name).
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   738
         *  This filename is in platform-dependent notation.
15
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   739
         *  forWriting is non-zero if this is to be used for
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   740
         *  the write directory, and zero if this is to be used for an
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   741
         *  element of the search path.
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   742
         * Returns NULL on failure, and calls __PHYSFS_setError().
648
5c993684b8f2 Cleaned up archiver interface to not deal with DirHandles anymore,
Ryan C. Gordon <icculus@icculus.org>
parents: 644
diff changeset
   743
         *  Returns non-NULL on success. The pointer returned will be
5c993684b8f2 Cleaned up archiver interface to not deal with DirHandles anymore,
Ryan C. Gordon <icculus@icculus.org>
parents: 644
diff changeset
   744
         *  passed as the "opaque" parameter for later calls.
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   745
         */
648
5c993684b8f2 Cleaned up archiver interface to not deal with DirHandles anymore,
Ryan C. Gordon <icculus@icculus.org>
parents: 644
diff changeset
   746
    void *(*openArchive)(const char *name, int forWriting);
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   747
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   748
        /*
657
dad3b5c307a9 Added callback APIs and ripped up the internals everywhere to use them.
Ryan C. Gordon <icculus@icculus.org>
parents: 650
diff changeset
   749
         * List all files in (dirname). Each file is passed to (callback),
dad3b5c307a9 Added callback APIs and ripped up the internals everywhere to use them.
Ryan C. Gordon <icculus@icculus.org>
parents: 650
diff changeset
   750
         *  where a copy is made if appropriate, so you should dispose of
dad3b5c307a9 Added callback APIs and ripped up the internals everywhere to use them.
Ryan C. Gordon <icculus@icculus.org>
parents: 650
diff changeset
   751
         *  it properly upon return from the callback.
dad3b5c307a9 Added callback APIs and ripped up the internals everywhere to use them.
Ryan C. Gordon <icculus@icculus.org>
parents: 650
diff changeset
   752
         * You should omit symlinks if (omitSymLinks) is non-zero.
dad3b5c307a9 Added callback APIs and ripped up the internals everywhere to use them.
Ryan C. Gordon <icculus@icculus.org>
parents: 650
diff changeset
   753
         * If you have a failure, report as much as you can.
dad3b5c307a9 Added callback APIs and ripped up the internals everywhere to use them.
Ryan C. Gordon <icculus@icculus.org>
parents: 650
diff changeset
   754
         *  (dirname) is in platform-independent notation.
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   755
         */
657
dad3b5c307a9 Added callback APIs and ripped up the internals everywhere to use them.
Ryan C. Gordon <icculus@icculus.org>
parents: 650
diff changeset
   756
    void (*enumerateFiles)(dvoid *opaque,
dad3b5c307a9 Added callback APIs and ripped up the internals everywhere to use them.
Ryan C. Gordon <icculus@icculus.org>
parents: 650
diff changeset
   757
                            const char *dirname,
dad3b5c307a9 Added callback APIs and ripped up the internals everywhere to use them.
Ryan C. Gordon <icculus@icculus.org>
parents: 650
diff changeset
   758
                            int omitSymLinks,
754
e7cd7411eadf API BREAKAGE: Changed PHYSFS_enumerateFilesCallback() to pass the originally
Ryan C. Gordon <icculus@icculus.org>
parents: 747
diff changeset
   759
                            PHYSFS_EnumFilesCallback callback,
e7cd7411eadf API BREAKAGE: Changed PHYSFS_enumerateFilesCallback() to pass the originally
Ryan C. Gordon <icculus@icculus.org>
parents: 747
diff changeset
   760
                            const char *origdir,
657
dad3b5c307a9 Added callback APIs and ripped up the internals everywhere to use them.
Ryan C. Gordon <icculus@icculus.org>
parents: 650
diff changeset
   761
                            void *callbackdata);
15
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   762
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   763
        /*
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   764
         * Returns non-zero if filename can be opened for reading.
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   765
         *  This filename is in platform-independent notation.
467
99664d9842cb Bunch of tedious corrections, optimizations, and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 464
diff changeset
   766
         *  You should not follow symlinks.
15
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   767
         */
650
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   768
    int (*exists)(dvoid *opaque, const char *name);
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   769
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   770
        /*
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   771
         * Returns non-zero if filename is really a directory.
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   772
         *  This filename is in platform-independent notation.
363
79f155a51527 Added __PHYSFS_addToLinkedStringList().
Ryan C. Gordon <icculus@icculus.org>
parents: 344
diff changeset
   773
         *  Symlinks should be followed; if what the symlink points
79f155a51527 Added __PHYSFS_addToLinkedStringList().
Ryan C. Gordon <icculus@icculus.org>
parents: 344
diff changeset
   774
         *  to is missing, or isn't a directory, then the retval is zero.
467
99664d9842cb Bunch of tedious corrections, optimizations, and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 464
diff changeset
   775
         *
99664d9842cb Bunch of tedious corrections, optimizations, and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 464
diff changeset
   776
         * Regardless of success or failure, please set *fileExists to
99664d9842cb Bunch of tedious corrections, optimizations, and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 464
diff changeset
   777
         *  non-zero if the file existed (even if it's a broken symlink!),
99664d9842cb Bunch of tedious corrections, optimizations, and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 464
diff changeset
   778
         *  zero if it did not.
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   779
         */
650
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   780
    int (*isDirectory)(dvoid *opaque, const char *name, int *fileExists);
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   781
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   782
        /*
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   783
         * Returns non-zero if filename is really a symlink.
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   784
         *  This filename is in platform-independent notation.
467
99664d9842cb Bunch of tedious corrections, optimizations, and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 464
diff changeset
   785
         *
99664d9842cb Bunch of tedious corrections, optimizations, and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 464
diff changeset
   786
         * Regardless of success or failure, please set *fileExists to
99664d9842cb Bunch of tedious corrections, optimizations, and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 464
diff changeset
   787
         *  non-zero if the file existed (even if it's a broken symlink!),
99664d9842cb Bunch of tedious corrections, optimizations, and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 464
diff changeset
   788
         *  zero if it did not.
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   789
         */
650
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   790
    int (*isSymLink)(dvoid *opaque, const char *name, int *fileExists);
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   791
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   792
        /*
578
bff1af8455ca Tabs-to-spaces patch by James Turk.
Ryan C. Gordon <icculus@icculus.org>
parents: 576
diff changeset
   793
         * Retrieve the last modification time (mtime) of a file.
bff1af8455ca Tabs-to-spaces patch by James Turk.
Ryan C. Gordon <icculus@icculus.org>
parents: 576
diff changeset
   794
         *  Returns -1 on failure, or the file's mtime in seconds since
bff1af8455ca Tabs-to-spaces patch by James Turk.
Ryan C. Gordon <icculus@icculus.org>
parents: 576
diff changeset
   795
         *  the epoch (Jan 1, 1970) on success.
240
052041af9001 Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents: 172
diff changeset
   796
         *  This filename is in platform-independent notation.
467
99664d9842cb Bunch of tedious corrections, optimizations, and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 464
diff changeset
   797
         *
99664d9842cb Bunch of tedious corrections, optimizations, and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 464
diff changeset
   798
         * Regardless of success or failure, please set *exists to
99664d9842cb Bunch of tedious corrections, optimizations, and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 464
diff changeset
   799
         *  non-zero if the file existed (even if it's a broken symlink!),
99664d9842cb Bunch of tedious corrections, optimizations, and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 464
diff changeset
   800
         *  zero if it did not.
578
bff1af8455ca Tabs-to-spaces patch by James Turk.
Ryan C. Gordon <icculus@icculus.org>
parents: 576
diff changeset
   801
         */
650
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   802
    PHYSFS_sint64 (*getLastModTime)(dvoid *opaque, const char *fnm, int *exist);
240
052041af9001 Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents: 172
diff changeset
   803
052041af9001 Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents: 172
diff changeset
   804
        /*
650
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   805
         * Open file for reading.
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   806
         *  This filename is in platform-independent notation.
15
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   807
         * If you can't handle multiple opens of the same file,
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   808
         *  you can opt to fail for the second call.
20
efdde0d21521 Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents: 19
diff changeset
   809
         * Fail if the file does not exist.
15
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   810
         * Returns NULL on failure, and calls __PHYSFS_setError().
650
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   811
         *  Returns non-NULL on success. The pointer returned will be
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   812
         *  passed as the "opaque" parameter for later file calls.
467
99664d9842cb Bunch of tedious corrections, optimizations, and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 464
diff changeset
   813
         *
99664d9842cb Bunch of tedious corrections, optimizations, and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 464
diff changeset
   814
         * Regardless of success or failure, please set *fileExists to
99664d9842cb Bunch of tedious corrections, optimizations, and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 464
diff changeset
   815
         *  non-zero if the file existed (even if it's a broken symlink!),
99664d9842cb Bunch of tedious corrections, optimizations, and cleanups.
Ryan C. Gordon <icculus@icculus.org>
parents: 464
diff changeset
   816
         *  zero if it did not.
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   817
         */
650
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   818
    fvoid *(*openRead)(dvoid *opaque, const char *fname, int *fileExists);
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   819
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   820
        /*
650
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   821
         * Open file for writing.
20
efdde0d21521 Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents: 19
diff changeset
   822
         * If the file does not exist, it should be created. If it exists,
efdde0d21521 Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents: 19
diff changeset
   823
         *  it should be truncated to zero bytes. The writing
efdde0d21521 Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents: 19
diff changeset
   824
         *  offset should be the start of the file.
efdde0d21521 Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents: 19
diff changeset
   825
         * This filename is in platform-independent notation.
15
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   826
         * If you can't handle multiple opens of the same file,
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   827
         *  you can opt to fail for the second call.
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   828
         * Returns NULL on failure, and calls __PHYSFS_setError().
650
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   829
         *  Returns non-NULL on success. The pointer returned will be
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   830
         *  passed as the "opaque" parameter for later file calls.
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   831
         */
650
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   832
    fvoid *(*openWrite)(dvoid *opaque, const char *filename);
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   833
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   834
        /*
650
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   835
         * Open file for appending.
20
efdde0d21521 Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents: 19
diff changeset
   836
         * If the file does not exist, it should be created. The writing
efdde0d21521 Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents: 19
diff changeset
   837
         *  offset should be the end of the file.
efdde0d21521 Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents: 19
diff changeset
   838
         * This filename is in platform-independent notation.
15
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   839
         * If you can't handle multiple opens of the same file,
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   840
         *  you can opt to fail for the second call.
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   841
         * Returns NULL on failure, and calls __PHYSFS_setError().
650
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   842
         *  Returns non-NULL on success. The pointer returned will be
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   843
         *  passed as the "opaque" parameter for later file calls.
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   844
         */
650
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   845
    fvoid *(*openAppend)(dvoid *opaque, const char *filename);
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   846
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   847
        /*
15
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   848
         * Delete a file in the archive/directory.
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   849
         *  Return non-zero on success, zero on failure.
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   850
         *  This filename is in platform-independent notation.
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   851
         *  This method may be NULL.
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   852
         * On failure, call __PHYSFS_setError().
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   853
         */
650
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   854
    int (*remove)(dvoid *opaque, const char *filename);
15
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   855
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   856
        /*
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   857
         * Create a directory in the archive/directory.
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   858
         *  If the application is trying to make multiple dirs, PhysicsFS
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   859
         *  will split them up into multiple calls before passing them to
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   860
         *  your driver.
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   861
         *  Return non-zero on success, zero on failure.
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   862
         *  This filename is in platform-independent notation.
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   863
         *  This method may be NULL.
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   864
         * On failure, call __PHYSFS_setError().
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   865
         */
650
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   866
    int (*mkdir)(dvoid *opaque, const char *filename);
15
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   867
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   868
        /*
648
5c993684b8f2 Cleaned up archiver interface to not deal with DirHandles anymore,
Ryan C. Gordon <icculus@icculus.org>
parents: 644
diff changeset
   869
         * Close directories/archives, and free any associated memory,
5c993684b8f2 Cleaned up archiver interface to not deal with DirHandles anymore,
Ryan C. Gordon <icculus@icculus.org>
parents: 644
diff changeset
   870
         *  including (opaque) itself if applicable. Implementation can assume
5c993684b8f2 Cleaned up archiver interface to not deal with DirHandles anymore,
Ryan C. Gordon <icculus@icculus.org>
parents: 644
diff changeset
   871
         *  that it won't be called if there are still files open from
5c993684b8f2 Cleaned up archiver interface to not deal with DirHandles anymore,
Ryan C. Gordon <icculus@icculus.org>
parents: 644
diff changeset
   872
         *  this archive.
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   873
         */
650
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   874
    void (*dirClose)(dvoid *opaque);
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   875
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   876
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   877
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   878
    /*
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   879
     * FILE ROUTINES:
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   880
     * These functions are for file handles generated by the open*() methods.
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   881
     *  They are distinguished by taking a "fvoid" instead of a "dvoid" for
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   882
     *  the opaque handle.
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   883
     */
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   884
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   885
        /*
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   886
         * Read more from the file.
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   887
         * Returns number of objects of (objSize) bytes read from file, -1
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   888
         *  if complete failure.
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   889
         * On failure, call __PHYSFS_setError().
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   890
         */
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   891
    PHYSFS_sint64 (*read)(fvoid *opaque, void *buffer,
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   892
                          PHYSFS_uint32 objSize, PHYSFS_uint32 objCount);
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   893
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   894
        /*
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   895
         * Write more to the file. Archives don't have to implement this.
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   896
         *  (Set it to NULL if not implemented).
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   897
         * Returns number of objects of (objSize) bytes written to file, -1
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   898
         *  if complete failure.
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   899
         * On failure, call __PHYSFS_setError().
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   900
         */
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   901
    PHYSFS_sint64 (*write)(fvoid *opaque, const void *buffer,
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   902
                 PHYSFS_uint32 objSize, PHYSFS_uint32 objCount);
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   903
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   904
        /*
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   905
         * Returns non-zero if at end of file.
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   906
         */
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   907
    int (*eof)(fvoid *opaque);
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   908
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   909
        /*
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   910
         * Returns byte offset from start of file.
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   911
         */
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   912
    PHYSFS_sint64 (*tell)(fvoid *opaque);
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   913
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   914
        /*
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   915
         * Move read/write pointer to byte offset from start of file.
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   916
         *  Returns non-zero on success, zero on error.
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   917
         * On failure, call __PHYSFS_setError().
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   918
         */
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   919
    int (*seek)(fvoid *opaque, PHYSFS_uint64 offset);
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   920
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   921
        /*
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   922
         * Return number of bytes available in the file, or -1 if you
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   923
         *  aren't able to determine.
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   924
         * On failure, call __PHYSFS_setError().
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   925
         */
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   926
    PHYSFS_sint64 (*fileLength)(fvoid *opaque);
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   927
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   928
        /*
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   929
         * Close the file, and free associated resources, including (opaque)
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   930
         *  if applicable. Returns non-zero on success, zero if can't close
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   931
         *  file. On failure, call __PHYSFS_setError().
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   932
         */
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   933
    int (*fileClose)(fvoid *opaque);
298b8bb26775 Did the same thing to FileHandles than I did to DirHandles, but this
Ryan C. Gordon <icculus@icculus.org>
parents: 648
diff changeset
   934
} PHYSFS_Archiver;
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   935
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   936
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   937
/*
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   938
 * Call this to set the message returned by PHYSFS_getLastError().
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   939
 *  Please only use the ERR_* constants above, or add new constants to the
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   940
 *  above group, but I want these all in one place.
15
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   941
 *
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   942
 * Calling this with a NULL argument is a safe no-op.
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   943
 */
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   944
void __PHYSFS_setError(const char *err);
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   945
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   946
15
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   947
/*
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   948
 * Convert (dirName) to platform-dependent notation, then prepend (prepend)
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   949
 *  and append (append) to the converted string.
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   950
 *
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   951
 *  So, on Win32, calling:
20
efdde0d21521 Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents: 19
diff changeset
   952
 *     __PHYSFS_convertToDependent("C:\", "my/files", NULL);
15
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   953
 *  ...will return the string "C:\my\files".
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   954
 *
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   955
 * This is a convenience function; you might want to hack something out that
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   956
 *  is less generic (and therefore more efficient).
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   957
 *
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   958
 * Be sure to free() the return value when done with it.
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   959
 */
20
efdde0d21521 Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents: 19
diff changeset
   960
char *__PHYSFS_convertToDependent(const char *prepend,
efdde0d21521 Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents: 19
diff changeset
   961
                                  const char *dirName,
efdde0d21521 Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents: 19
diff changeset
   962
                                  const char *append);
15
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   963
363
79f155a51527 Added __PHYSFS_addToLinkedStringList().
Ryan C. Gordon <icculus@icculus.org>
parents: 344
diff changeset
   964
629
b01a59827192 Moved byte order defines into internal header.
Ryan C. Gordon <icculus@icculus.org>
parents: 627
diff changeset
   965
/* This byteorder stuff was lifted from SDL. http://www.libsdl.org/ */
b01a59827192 Moved byte order defines into internal header.
Ryan C. Gordon <icculus@icculus.org>
parents: 627
diff changeset
   966
#define PHYSFS_LIL_ENDIAN  1234
b01a59827192 Moved byte order defines into internal header.
Ryan C. Gordon <icculus@icculus.org>
parents: 627
diff changeset
   967
#define PHYSFS_BIG_ENDIAN  4321
b01a59827192 Moved byte order defines into internal header.
Ryan C. Gordon <icculus@icculus.org>
parents: 627
diff changeset
   968
b01a59827192 Moved byte order defines into internal header.
Ryan C. Gordon <icculus@icculus.org>
parents: 627
diff changeset
   969
#if  defined(__i386__) || defined(__ia64__) || defined(WIN32) || \
b01a59827192 Moved byte order defines into internal header.
Ryan C. Gordon <icculus@icculus.org>
parents: 627
diff changeset
   970
    (defined(__alpha__) || defined(__alpha)) || \
b01a59827192 Moved byte order defines into internal header.
Ryan C. Gordon <icculus@icculus.org>
parents: 627
diff changeset
   971
     defined(__arm__) || defined(ARM) || \
b01a59827192 Moved byte order defines into internal header.
Ryan C. Gordon <icculus@icculus.org>
parents: 627
diff changeset
   972
    (defined(__mips__) && defined(__MIPSEL__)) || \
b01a59827192 Moved byte order defines into internal header.
Ryan C. Gordon <icculus@icculus.org>
parents: 627
diff changeset
   973
     defined(__SYMBIAN32__) || \
b01a59827192 Moved byte order defines into internal header.
Ryan C. Gordon <icculus@icculus.org>
parents: 627
diff changeset
   974
     defined(__x86_64__) || \
b01a59827192 Moved byte order defines into internal header.
Ryan C. Gordon <icculus@icculus.org>
parents: 627
diff changeset
   975
     defined(__LITTLE_ENDIAN__)
b01a59827192 Moved byte order defines into internal header.
Ryan C. Gordon <icculus@icculus.org>
parents: 627
diff changeset
   976
#define PHYSFS_BYTEORDER    PHYSFS_LIL_ENDIAN
b01a59827192 Moved byte order defines into internal header.
Ryan C. Gordon <icculus@icculus.org>
parents: 627
diff changeset
   977
#else
b01a59827192 Moved byte order defines into internal header.
Ryan C. Gordon <icculus@icculus.org>
parents: 627
diff changeset
   978
#define PHYSFS_BYTEORDER    PHYSFS_BIG_ENDIAN
b01a59827192 Moved byte order defines into internal header.
Ryan C. Gordon <icculus@icculus.org>
parents: 627
diff changeset
   979
#endif
b01a59827192 Moved byte order defines into internal header.
Ryan C. Gordon <icculus@icculus.org>
parents: 627
diff changeset
   980
b01a59827192 Moved byte order defines into internal header.
Ryan C. Gordon <icculus@icculus.org>
parents: 627
diff changeset
   981
464
21c8e0d1578c Generalized sorting routines, and removed individual implementations.
Ryan C. Gordon <icculus@icculus.org>
parents: 444
diff changeset
   982
/*
21c8e0d1578c Generalized sorting routines, and removed individual implementations.
Ryan C. Gordon <icculus@icculus.org>
parents: 444
diff changeset
   983
 * When sorting the entries in an archive, we use a modified QuickSort.
21c8e0d1578c Generalized sorting routines, and removed individual implementations.
Ryan C. Gordon <icculus@icculus.org>
parents: 444
diff changeset
   984
 *  When there are less then PHYSFS_QUICKSORT_THRESHOLD entries left to sort,
21c8e0d1578c Generalized sorting routines, and removed individual implementations.
Ryan C. Gordon <icculus@icculus.org>
parents: 444
diff changeset
   985
 *  we switch over to a BubbleSort for the remainder. Tweak to taste.
21c8e0d1578c Generalized sorting routines, and removed individual implementations.
Ryan C. Gordon <icculus@icculus.org>
parents: 444
diff changeset
   986
 *
21c8e0d1578c Generalized sorting routines, and removed individual implementations.
Ryan C. Gordon <icculus@icculus.org>
parents: 444
diff changeset
   987
 * You can override this setting by defining PHYSFS_QUICKSORT_THRESHOLD
21c8e0d1578c Generalized sorting routines, and removed individual implementations.
Ryan C. Gordon <icculus@icculus.org>
parents: 444
diff changeset
   988
 *  before #including "physfs_internal.h".
21c8e0d1578c Generalized sorting routines, and removed individual implementations.
Ryan C. Gordon <icculus@icculus.org>
parents: 444
diff changeset
   989
 */
21c8e0d1578c Generalized sorting routines, and removed individual implementations.
Ryan C. Gordon <icculus@icculus.org>
parents: 444
diff changeset
   990
#ifndef PHYSFS_QUICKSORT_THRESHOLD
21c8e0d1578c Generalized sorting routines, and removed individual implementations.
Ryan C. Gordon <icculus@icculus.org>
parents: 444
diff changeset
   991
#define PHYSFS_QUICKSORT_THRESHOLD 4
21c8e0d1578c Generalized sorting routines, and removed individual implementations.
Ryan C. Gordon <icculus@icculus.org>
parents: 444
diff changeset
   992
#endif
21c8e0d1578c Generalized sorting routines, and removed individual implementations.
Ryan C. Gordon <icculus@icculus.org>
parents: 444
diff changeset
   993
21c8e0d1578c Generalized sorting routines, and removed individual implementations.
Ryan C. Gordon <icculus@icculus.org>
parents: 444
diff changeset
   994
/*
21c8e0d1578c Generalized sorting routines, and removed individual implementations.
Ryan C. Gordon <icculus@icculus.org>
parents: 444
diff changeset
   995
 * Sort an array (or whatever) of (max) elements. This uses a mixture of
21c8e0d1578c Generalized sorting routines, and removed individual implementations.
Ryan C. Gordon <icculus@icculus.org>
parents: 444
diff changeset
   996
 *  a QuickSort and BubbleSort internally.
21c8e0d1578c Generalized sorting routines, and removed individual implementations.
Ryan C. Gordon <icculus@icculus.org>
parents: 444
diff changeset
   997
 * (cmpfn) is used to determine ordering, and (swapfn) does the actual
21c8e0d1578c Generalized sorting routines, and removed individual implementations.
Ryan C. Gordon <icculus@icculus.org>
parents: 444
diff changeset
   998
 *  swapping of elements in the list.
21c8e0d1578c Generalized sorting routines, and removed individual implementations.
Ryan C. Gordon <icculus@icculus.org>
parents: 444
diff changeset
   999
 *
21c8e0d1578c Generalized sorting routines, and removed individual implementations.
Ryan C. Gordon <icculus@icculus.org>
parents: 444
diff changeset
  1000
 *  See zip.c for an example.
21c8e0d1578c Generalized sorting routines, and removed individual implementations.
Ryan C. Gordon <icculus@icculus.org>
parents: 444
diff changeset
  1001
 */
21c8e0d1578c Generalized sorting routines, and removed individual implementations.
Ryan C. Gordon <icculus@icculus.org>
parents: 444
diff changeset
  1002
void __PHYSFS_sort(void *entries, PHYSFS_uint32 max,
21c8e0d1578c Generalized sorting routines, and removed individual implementations.
Ryan C. Gordon <icculus@icculus.org>
parents: 444
diff changeset
  1003
                   int (*cmpfn)(void *, PHYSFS_uint32, PHYSFS_uint32),
21c8e0d1578c Generalized sorting routines, and removed individual implementations.
Ryan C. Gordon <icculus@icculus.org>
parents: 444
diff changeset
  1004
                   void (*swapfn)(void *, PHYSFS_uint32, PHYSFS_uint32));
21c8e0d1578c Generalized sorting routines, and removed individual implementations.
Ryan C. Gordon <icculus@icculus.org>
parents: 444
diff changeset
  1005
363
79f155a51527 Added __PHYSFS_addToLinkedStringList().
Ryan C. Gordon <icculus@icculus.org>
parents: 344
diff changeset
  1006
69
546a95cc5591 Updates, corrections and enhancements to get this ported to win32.
Ryan C. Gordon <icculus@icculus.org>
parents: 49
diff changeset
  1007
/* These get used all over for lessening code clutter. */
546a95cc5591 Updates, corrections and enhancements to get this ported to win32.
Ryan C. Gordon <icculus@icculus.org>
parents: 49
diff changeset
  1008
#define BAIL_MACRO(e, r) { __PHYSFS_setError(e); return r; }
15
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
  1009
#define BAIL_IF_MACRO(c, e, r) if (c) { __PHYSFS_setError(e); return r; }
145
d6385584f6c4 First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents: 137
diff changeset
  1010
#define BAIL_MACRO_MUTEX(e, m, r) { __PHYSFS_setError(e); __PHYSFS_platformReleaseMutex(m); return r; }
d6385584f6c4 First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents: 137
diff changeset
  1011
#define BAIL_IF_MACRO_MUTEX(c, e, m, r) if (c) { __PHYSFS_setError(e); __PHYSFS_platformReleaseMutex(m); return r; }
676
be1460fff07f Added evil GOTO_*_MACRO_* macros.
Ryan C. Gordon <icculus@icculus.org>
parents: 659
diff changeset
  1012
#define GOTO_MACRO(e, g) { __PHYSFS_setError(e); goto g; }
be1460fff07f Added evil GOTO_*_MACRO_* macros.
Ryan C. Gordon <icculus@icculus.org>
parents: 659
diff changeset
  1013
#define GOTO_IF_MACRO(c, e, g) if (c) { __PHYSFS_setError(e); goto g; }
be1460fff07f Added evil GOTO_*_MACRO_* macros.
Ryan C. Gordon <icculus@icculus.org>
parents: 659
diff changeset
  1014
#define GOTO_MACRO_MUTEX(e, m, g) { __PHYSFS_setError(e); __PHYSFS_platformReleaseMutex(m); goto g; }
be1460fff07f Added evil GOTO_*_MACRO_* macros.
Ryan C. Gordon <icculus@icculus.org>
parents: 659
diff changeset
  1015
#define GOTO_IF_MACRO_MUTEX(c, e, m, g) if (c) { __PHYSFS_setError(e); __PHYSFS_platformReleaseMutex(m); goto g; }
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
  1016
828
ee871d51510d Bunch of work on Unicode...added case-folding stricmp, removed
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
  1017
#define __PHYSFS_ARRAYLEN(x) ( (sizeof (x)) / (sizeof (x[0])) )
ee871d51510d Bunch of work on Unicode...added case-folding stricmp, removed
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
  1018
851
dcfbb779ff40 Apparently this is how you do 64-bit literals in MSVC...untested.
Ryan C. Gordon <icculus@icculus.org>
parents: 850
diff changeset
  1019
#if (defined __GNUC__)
850
2bc230284fed Replaced LONGLONGLITERAL with __PHYSFS_UI64/__PHYSFS_SI64.
Ryan C. Gordon <icculus@icculus.org>
parents: 845
diff changeset
  1020
#define __PHYSFS_SI64(x) x##LL
2bc230284fed Replaced LONGLONGLITERAL with __PHYSFS_UI64/__PHYSFS_SI64.
Ryan C. Gordon <icculus@icculus.org>
parents: 845
diff changeset
  1021
#define __PHYSFS_UI64(x) x##ULL
851
dcfbb779ff40 Apparently this is how you do 64-bit literals in MSVC...untested.
Ryan C. Gordon <icculus@icculus.org>
parents: 850
diff changeset
  1022
#elif (defined _MSC_VER)
dcfbb779ff40 Apparently this is how you do 64-bit literals in MSVC...untested.
Ryan C. Gordon <icculus@icculus.org>
parents: 850
diff changeset
  1023
#define __PHYSFS_SI64(x) x##i64
dcfbb779ff40 Apparently this is how you do 64-bit literals in MSVC...untested.
Ryan C. Gordon <icculus@icculus.org>
parents: 850
diff changeset
  1024
#define __PHYSFS_UI64(x) x##ui64
763
efadd9cdb6a4 Cleaned up overflow checks in platform memory allocators (thanks to Nicolas
Ryan C. Gordon <icculus@icculus.org>
parents: 754
diff changeset
  1025
#else
850
2bc230284fed Replaced LONGLONGLITERAL with __PHYSFS_UI64/__PHYSFS_SI64.
Ryan C. Gordon <icculus@icculus.org>
parents: 845
diff changeset
  1026
#define __PHYSFS_SI64(x) x
2bc230284fed Replaced LONGLONGLITERAL with __PHYSFS_UI64/__PHYSFS_SI64.
Ryan C. Gordon <icculus@icculus.org>
parents: 845
diff changeset
  1027
#define __PHYSFS_UI64(x) x
763
efadd9cdb6a4 Cleaned up overflow checks in platform memory allocators (thanks to Nicolas
Ryan C. Gordon <icculus@icculus.org>
parents: 754
diff changeset
  1028
#endif
efadd9cdb6a4 Cleaned up overflow checks in platform memory allocators (thanks to Nicolas
Ryan C. Gordon <icculus@icculus.org>
parents: 754
diff changeset
  1029
936
3b4b6c107a59 Fixed aliasing bug in Windows platform layer (thanks, Dennis!).
Ryan C. Gordon <icculus@icculus.org>
parents: 933
diff changeset
  1030
763
efadd9cdb6a4 Cleaned up overflow checks in platform memory allocators (thanks to Nicolas
Ryan C. Gordon <icculus@icculus.org>
parents: 754
diff changeset
  1031
/*
efadd9cdb6a4 Cleaned up overflow checks in platform memory allocators (thanks to Nicolas
Ryan C. Gordon <icculus@icculus.org>
parents: 754
diff changeset
  1032
 * Check if a ui64 will fit in the platform's address space.
efadd9cdb6a4 Cleaned up overflow checks in platform memory allocators (thanks to Nicolas
Ryan C. Gordon <icculus@icculus.org>
parents: 754
diff changeset
  1033
 *  The initial sizeof check will optimize this macro out entirely on
efadd9cdb6a4 Cleaned up overflow checks in platform memory allocators (thanks to Nicolas
Ryan C. Gordon <icculus@icculus.org>
parents: 754
diff changeset
  1034
 *  64-bit (and larger?!) platforms, and the other condition will
efadd9cdb6a4 Cleaned up overflow checks in platform memory allocators (thanks to Nicolas
Ryan C. Gordon <icculus@icculus.org>
parents: 754
diff changeset
  1035
 *  return zero or non-zero if the variable will fit in the platform's
efadd9cdb6a4 Cleaned up overflow checks in platform memory allocators (thanks to Nicolas
Ryan C. Gordon <icculus@icculus.org>
parents: 754
diff changeset
  1036
 *  size_t, suitable to pass to malloc. This is kinda messy, but effective.
efadd9cdb6a4 Cleaned up overflow checks in platform memory allocators (thanks to Nicolas
Ryan C. Gordon <icculus@icculus.org>
parents: 754
diff changeset
  1037
 */
efadd9cdb6a4 Cleaned up overflow checks in platform memory allocators (thanks to Nicolas
Ryan C. Gordon <icculus@icculus.org>
parents: 754
diff changeset
  1038
#define __PHYSFS_ui64FitsAddressSpace(s) ( \
efadd9cdb6a4 Cleaned up overflow checks in platform memory allocators (thanks to Nicolas
Ryan C. Gordon <icculus@icculus.org>
parents: 754
diff changeset
  1039
    (sizeof (PHYSFS_uint64) > sizeof (size_t)) && \
850
2bc230284fed Replaced LONGLONGLITERAL with __PHYSFS_UI64/__PHYSFS_SI64.
Ryan C. Gordon <icculus@icculus.org>
parents: 845
diff changeset
  1040
    ((s) > (__PHYSFS_UI64(0xFFFFFFFFFFFFFFFF) >> (64-(sizeof(size_t)*8)))) \
763
efadd9cdb6a4 Cleaned up overflow checks in platform memory allocators (thanks to Nicolas
Ryan C. Gordon <icculus@icculus.org>
parents: 754
diff changeset
  1041
)
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
  1042
936
3b4b6c107a59 Fixed aliasing bug in Windows platform layer (thanks, Dennis!).
Ryan C. Gordon <icculus@icculus.org>
parents: 933
diff changeset
  1043
644
1cb5533d369c Initial structure for replacable allocator work.
Ryan C. Gordon <icculus@icculus.org>
parents: 641
diff changeset
  1044
/*
828
ee871d51510d Bunch of work on Unicode...added case-folding stricmp, removed
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
  1045
 * This is a strcasecmp() or stricmp() replacement that expects both strings
ee871d51510d Bunch of work on Unicode...added case-folding stricmp, removed
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
  1046
 *  to be in UTF-8 encoding. It will do "case folding" to decide if the
ee871d51510d Bunch of work on Unicode...added case-folding stricmp, removed
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
  1047
 *  Unicode codepoints in the strings match.
ee871d51510d Bunch of work on Unicode...added case-folding stricmp, removed
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
  1048
 *
ee871d51510d Bunch of work on Unicode...added case-folding stricmp, removed
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
  1049
 * It will report which string is "greater than" the other, but be aware that
ee871d51510d Bunch of work on Unicode...added case-folding stricmp, removed
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
  1050
 *  this doesn't necessarily mean anything: 'a' may be "less than" 'b', but
ee871d51510d Bunch of work on Unicode...added case-folding stricmp, removed
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
  1051
 *  a random Kanji codepoint has no meaningful alphabetically relationship to
ee871d51510d Bunch of work on Unicode...added case-folding stricmp, removed
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
  1052
 *  a Greek Lambda, but being able to assign a reliable "value" makes sorting
ee871d51510d Bunch of work on Unicode...added case-folding stricmp, removed
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
  1053
 *  algorithms possible, if not entirely sane. Most cases should treat the
ee871d51510d Bunch of work on Unicode...added case-folding stricmp, removed
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
  1054
 *  return value as "equal" or "not equal".
ee871d51510d Bunch of work on Unicode...added case-folding stricmp, removed
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
  1055
 */
ee871d51510d Bunch of work on Unicode...added case-folding stricmp, removed
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
  1056
int __PHYSFS_utf8strcasecmp(const char *s1, const char *s2);
ee871d51510d Bunch of work on Unicode...added case-folding stricmp, removed
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
  1057
ee871d51510d Bunch of work on Unicode...added case-folding stricmp, removed
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
  1058
/*
ee871d51510d Bunch of work on Unicode...added case-folding stricmp, removed
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
  1059
 * This works like __PHYSFS_utf8strcasecmp(), but takes a character (NOT BYTE
ee871d51510d Bunch of work on Unicode...added case-folding stricmp, removed
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
  1060
 *  COUNT) argument, like strcasencmp().
ee871d51510d Bunch of work on Unicode...added case-folding stricmp, removed
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
  1061
 */
ee871d51510d Bunch of work on Unicode...added case-folding stricmp, removed
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
  1062
int __PHYSFS_utf8strnicmp(const char *s1, const char *s2, PHYSFS_uint32 l);
ee871d51510d Bunch of work on Unicode...added case-folding stricmp, removed
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
  1063
ee871d51510d Bunch of work on Unicode...added case-folding stricmp, removed
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
  1064
/*
ee871d51510d Bunch of work on Unicode...added case-folding stricmp, removed
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
  1065
 * stricmp() that guarantees to only work with low ASCII. The C runtime
ee871d51510d Bunch of work on Unicode...added case-folding stricmp, removed
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
  1066
 *  stricmp() might try to apply a locale/codepage/etc, which we don't want.
ee871d51510d Bunch of work on Unicode...added case-folding stricmp, removed
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
  1067
 */
ee871d51510d Bunch of work on Unicode...added case-folding stricmp, removed
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
  1068
int __PHYSFS_stricmpASCII(const char *s1, const char *s2);
ee871d51510d Bunch of work on Unicode...added case-folding stricmp, removed
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
  1069
ee871d51510d Bunch of work on Unicode...added case-folding stricmp, removed
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
  1070
/*
ee871d51510d Bunch of work on Unicode...added case-folding stricmp, removed
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
  1071
 * strnicmp() that guarantees to only work with low ASCII. The C runtime
ee871d51510d Bunch of work on Unicode...added case-folding stricmp, removed
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
  1072
 *  strnicmp() might try to apply a locale/codepage/etc, which we don't want.
ee871d51510d Bunch of work on Unicode...added case-folding stricmp, removed
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
  1073
 */
ee871d51510d Bunch of work on Unicode...added case-folding stricmp, removed
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
  1074
int __PHYSFS_strnicmpASCII(const char *s1, const char *s2, PHYSFS_uint32 l);
ee871d51510d Bunch of work on Unicode...added case-folding stricmp, removed
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
  1075
ee871d51510d Bunch of work on Unicode...added case-folding stricmp, removed
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
  1076
ee871d51510d Bunch of work on Unicode...added case-folding stricmp, removed
Ryan C. Gordon <icculus@icculus.org>
parents: 809
diff changeset
  1077
/*
691
71d9affe0d8a All memory management now goes through allocation hooks instead of directly to
Ryan C. Gordon <icculus@icculus.org>
parents: 676
diff changeset
  1078
 * The current allocator. Not valid before PHYSFS_init is called!
644
1cb5533d369c Initial structure for replacable allocator work.
Ryan C. Gordon <icculus@icculus.org>
parents: 641
diff changeset
  1079
 */
691
71d9affe0d8a All memory management now goes through allocation hooks instead of directly to
Ryan C. Gordon <icculus@icculus.org>
parents: 676
diff changeset
  1080
extern PHYSFS_Allocator __PHYSFS_AllocatorHooks;
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
  1081
691
71d9affe0d8a All memory management now goes through allocation hooks instead of directly to
Ryan C. Gordon <icculus@icculus.org>
parents: 676
diff changeset
  1082
/* convenience macro to make this less cumbersome internally... */
71d9affe0d8a All memory management now goes through allocation hooks instead of directly to
Ryan C. Gordon <icculus@icculus.org>
parents: 676
diff changeset
  1083
#define allocator __PH