physfs_internal.h
author Ryan C. Gordon <icculus@icculus.org>
Tue, 20 Aug 2002 01:34:27 +0000
changeset 464 21c8e0d1578c
parent 444 06f6a31057a0
child 467 99664d9842cb
permissions -rw-r--r--
Generalized sorting routines, and removed individual implementations.
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
 *
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     5
 * Please see the file LICENSE in the source's root directory.
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
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
    19
#ifdef __cplusplus
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
    20
extern "C" {
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
    21
#endif
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
    22
427
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    23
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    24
/* The LANG section. */
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    25
/*  please send questions/translations to Ryan: icculus@clutteredmind.org. */
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    26
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    27
#if (!defined PHYSFS_LANG)
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    28
#  define PHYSFS_LANG PHYSFS_LANG_ENGLISH
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    29
#endif
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    30
444
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
    31
#define PHYSFS_LANG_ENGLISH            1  /* English by Ryan C. Gordon  */
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
    32
#define PHYSFS_LANG_RUSSIAN_KOI8_R     2  /* Russian by Ed Sinjiashvili */
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
    33
#define PHYSFS_LANG_RUSSIAN_CP1251     3  /* Russian by Ed Sinjiashvili */
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
    34
#define PHYSFS_LANG_RUSSIAN_CP866      4  /* Russian by Ed Sinjiashvili */
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
    35
#define PHYSFS_LANG_RUSSIAN_ISO_8859_5 5  /* Russian by Ed Sinjiashvili */
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
    36
#define PHYSFS_LANG_SPANISH            6  /* Spanish by Pedro J. Prez  */
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
    37
#define PHYSFS_LANG_FRENCH             7  /*  French by Stphane Peter  */
427
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    38
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    39
#if (PHYSFS_LANG == PHYSFS_LANG_ENGLISH)
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    40
 #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
    41
 #define GRP_ARCHIVE_DESCRIPTION  "Build engine Groupfile format"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    42
 #define ZIP_ARCHIVE_DESCRIPTION  "PkZip/WinZip/Info-Zip compatible"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    43
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    44
 #define ERR_IS_INITIALIZED       "Already initialized"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    45
 #define ERR_NOT_INITIALIZED      "Not initialized"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    46
 #define ERR_INVALID_ARGUMENT     "Invalid argument"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    47
 #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
    48
 #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
    49
 #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
    50
 #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
    51
 #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
    52
 #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
    53
 #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
    54
 #define ERR_INSECURE_FNAME       "Insecure filename"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    55
 #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
    56
 #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
    57
 #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
    58
 #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
    59
 #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
    60
 #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
    61
 #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
    62
 #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
    63
 #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
    64
 #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
    65
 #define ERR_COMPRESSION          "(De)compression error"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    66
 #define ERR_NOT_IMPLEMENTED      "Not implemented"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    67
 #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
    68
 #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
    69
 #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
    70
 #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
    71
 #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
    72
 #define ERR_CORRUPTED            "Corrupted archive"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    73
 #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
    74
 #define ERR_BAD_FILENAME         "Bad filename"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    75
 #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
    76
 #define ERR_ARGV0_IS_NULL        "argv0 is NULL"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    77
 #define ERR_ZLIB_NEED_DICT       "zlib: need dictionary"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    78
 #define ERR_ZLIB_DATA_ERROR      "zlib: data error"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    79
 #define ERR_ZLIB_MEMORY_ERROR    "zlib: memory error"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    80
 #define ERR_ZLIB_BUFFER_ERROR    "zlib: buffer error"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    81
 #define ERR_ZLIB_VERSION_ERROR   "zlib: version error"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    82
 #define ERR_ZLIB_UNKNOWN_ERROR   "zlib: unknown error"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    83
 #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
    84
 #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
    85
 #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
    86
 #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
    87
 #define ERR_DIRECTORY_FULL       "Directory full"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
    88
 #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
    89
 #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
    90
 #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
    91
 #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
    92
 #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
    93
 #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
    94
 #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
    95
 #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
    96
 #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
    97
 #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
    98
 #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
    99
 #define ERR_PERMISSION_DENIED    "Permission denied"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   100
 #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
   101
 #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
   102
 #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
   103
 #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
   104
 #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
   105
 #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
   106
 #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
   107
 #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
   108
 #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
   109
 #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
   110
 #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
   111
 #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
   112
 #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
   113
 #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
   114
 #define ERR_ACCESS_DENIED        "Access denied"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   115
 #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
   116
 #define ERR_SHARING_VIOLATION    "Sharing violation"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   117
 #define ERR_CANNOT_MAKE          "Cannot make"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   118
 #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
   119
 #define ERR_OPEN_FAILED          "Open failed"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   120
 #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
   121
 #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
   122
 #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
   123
 #define ERR_SEEK_ERROR           "Seek error"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   124
 #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
   125
 #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
   126
 #define ERR_WRITE_FAULT          "Write fault"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   127
 #define ERR_LOCK_VIOLATION       "Lock violation"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   128
 #define ERR_GEN_FAILURE          "General failure"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   129
 #define ERR_UNCERTAIN_MEDIA      "Uncertain media"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   130
 #define ERR_PROT_VIOLATION       "Protection violation"
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   131
 #define ERR_BROKEN_PIPE          "Broken pipe"
431
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   132
434
19a16ec64f82 Changed russian to russian-koi8-r.
Ryan C. Gordon <icculus@icculus.org>
parents: 431
diff changeset
   133
#elif (PHYSFS_LANG == PHYSFS_LANG_RUSSIAN_KOI8_R)
431
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   134
 #define DIR_ARCHIVE_DESCRIPTION  " ,  /  "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   135
 #define GRP_ARCHIVE_DESCRIPTION  "   Build engine"
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   136
 #define ZIP_ARCHIVE_DESCRIPTION  "PkZip/WinZip/Info-Zip "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   137
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   138
 #define ERR_IS_INITIALIZED       " "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   139
 #define ERR_NOT_INITIALIZED      " "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   140
 #define ERR_INVALID_ARGUMENT     " "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   141
 #define ERR_FILES_STILL_OPEN     "  "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   142
 #define ERR_NO_DIR_CREATE        "   "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   143
 #define ERR_OUT_OF_MEMORY        " "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   144
 #define ERR_NOT_IN_SEARCH_PATH   "     "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   145
 #define ERR_NOT_SUPPORTED        "  "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   146
 #define ERR_UNSUPPORTED_ARCHIVE  "    "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   147
 #define ERR_NOT_A_HANDLE         "  "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   148
 #define ERR_INSECURE_FNAME       "  "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   149
 #define ERR_SYMLINK_DISALLOWED   "  "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   150
 #define ERR_NO_WRITE_DIR         "    "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   151
 #define ERR_NO_SUCH_FILE         "  "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   152
 #define ERR_NO_SUCH_PATH         "  "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   153
 #define ERR_NO_SUCH_VOLUME       "  "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   154
 #define ERR_PAST_EOF             "  "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   155
 #define ERR_ARC_IS_READ_ONLY     "   "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   156
 #define ERR_IO_ERROR             " /"
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   157
 #define ERR_CANT_SET_WRITE_DIR   "     "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   158
 #define ERR_SYMLINK_LOOP         "   "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   159
 #define ERR_COMPRESSION          " ()"
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   160
 #define ERR_NOT_IMPLEMENTED      " "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   161
 #define ERR_OS_ERROR             "   "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   162
 #define ERR_FILE_EXISTS          "  "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   163
 #define ERR_NOT_A_FILE           " "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   164
 #define ERR_NOT_A_DIR            " "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   165
 #define ERR_NOT_AN_ARCHIVE       " "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   166
 #define ERR_CORRUPTED            " "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   167
 #define ERR_SEEK_OUT_OF_RANGE    "  "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   168
 #define ERR_BAD_FILENAME         "  "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   169
 #define ERR_PHYSFS_BAD_OS_CALL   "(BUG) PhysicsFS    "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   170
 #define ERR_ARGV0_IS_NULL        "argv0 is NULL"
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   171
 #define ERR_ZLIB_NEED_DICT       "zlib:  "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   172
 #define ERR_ZLIB_DATA_ERROR      "zlib:  "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   173
 #define ERR_ZLIB_MEMORY_ERROR    "zlib:  "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   174
 #define ERR_ZLIB_BUFFER_ERROR    "zlib:  "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   175
 #define ERR_ZLIB_VERSION_ERROR   "zlib:  "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   176
 #define ERR_ZLIB_UNKNOWN_ERROR   "zlib:  "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   177
 #define ERR_SEARCHPATH_TRUNC     "  "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   178
 #define ERR_GETMODFN_TRUNC       "GetModuleFileName() "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   179
 #define ERR_GETMODFN_NO_DIR      "GetModuleFileName()   "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   180
 #define ERR_DISK_FULL            " "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   181
 #define ERR_DIRECTORY_FULL       " "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   182
 #define ERR_MACOS_GENERIC        "MacOS   (%d)"
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   183
 #define ERR_OS2_GENERIC          "OS/2   (%d)"
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   184
 #define ERR_VOL_LOCKED_HW        "  "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   185
 #define ERR_VOL_LOCKED_SW        "  "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   186
 #define ERR_FILE_LOCKED          " "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   187
 #define ERR_FILE_OR_DIR_BUSY     "/ "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   188
 #define ERR_FILE_ALREADY_OPEN_W  "    "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   189
 #define ERR_FILE_ALREADY_OPEN_R  "    "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   190
 #define ERR_INVALID_REFNUM       "  "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   191
 #define ERR_GETTING_FILE_POS     "    "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   192
 #define ERR_VOLUME_OFFLINE       " "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   193
 #define ERR_PERMISSION_DENIED    "  "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   194
 #define ERR_VOL_ALREADY_ONLINE   "  "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   195
 #define ERR_NO_SUCH_DRIVE        "  "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   196
 #define ERR_NOT_MAC_DISK         "  Macintosh"
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   197
 #define ERR_VOL_EXTERNAL_FS      "    "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   198
 #define ERR_PROBLEM_RENAME       "  "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   199
 #define ERR_BAD_MASTER_BLOCK     "   "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   200
 #define ERR_CANT_MOVE_FORBIDDEN  "  "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   201
 #define ERR_WRONG_VOL_TYPE       "  "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   202
 #define ERR_SERVER_VOL_LOST      "   "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   203
 #define ERR_FILE_ID_NOT_FOUND    "   "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   204
 #define ERR_FILE_ID_EXISTS       "   "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   205
 #define ERR_SERVER_NO_RESPOND    "  "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   206
 #define ERR_USER_AUTH_FAILED     "   "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   207
 #define ERR_PWORD_EXPIRED        "   "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   208
 #define ERR_ACCESS_DENIED        "  "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   209
 #define ERR_NOT_A_DOS_DISK       "  DOS"
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   210
 #define ERR_SHARING_VIOLATION    "  "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   211
 #define ERR_CANNOT_MAKE          "  "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   212
 #define ERR_DEV_IN_USE           "  "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   213
 #define ERR_OPEN_FAILED          "  "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   214
 #define ERR_PIPE_BUSY            " "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   215
 #define ERR_SHARING_BUF_EXCEEDED "  "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   216
 #define ERR_TOO_MANY_HANDLES     "   "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   217
 #define ERR_SEEK_ERROR           " "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   218
 #define ERR_DEL_CWD              "    "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   219
 #define ERR_WRITE_PROTECT_ERROR  "  "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   220
 #define ERR_WRITE_FAULT          " "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   221
 #define ERR_LOCK_VIOLATION       " "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   222
 #define ERR_GEN_FAILURE          " "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   223
 #define ERR_UNCERTAIN_MEDIA      " "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   224
 #define ERR_PROT_VIOLATION       " "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   225
 #define ERR_BROKEN_PIPE          " "
a1cb2bf24ce5 Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents: 427
diff changeset
   226
444
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   227
#elif (PHYSFS_LANG == PHYSFS_LANG_RUSSIAN_CP1251)
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   228
 #define DIR_ARCHIVE_DESCRIPTION  " ,  /  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   229
 #define GRP_ARCHIVE_DESCRIPTION  "   Build engine"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   230
 #define ZIP_ARCHIVE_DESCRIPTION  "PkZip/WinZip/Info-Zip "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   231
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   232
 #define ERR_IS_INITIALIZED       " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   233
 #define ERR_NOT_INITIALIZED      " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   234
 #define ERR_INVALID_ARGUMENT     " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   235
 #define ERR_FILES_STILL_OPEN     "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   236
 #define ERR_NO_DIR_CREATE        "   "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   237
 #define ERR_OUT_OF_MEMORY        " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   238
 #define ERR_NOT_IN_SEARCH_PATH   "     "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   239
 #define ERR_NOT_SUPPORTED        "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   240
 #define ERR_UNSUPPORTED_ARCHIVE  "    "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   241
 #define ERR_NOT_A_HANDLE         "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   242
 #define ERR_INSECURE_FNAME       "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   243
 #define ERR_SYMLINK_DISALLOWED   "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   244
 #define ERR_NO_WRITE_DIR         "    "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   245
 #define ERR_NO_SUCH_FILE         "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   246
 #define ERR_NO_SUCH_PATH         "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   247
 #define ERR_NO_SUCH_VOLUME       "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   248
 #define ERR_PAST_EOF             "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   249
 #define ERR_ARC_IS_READ_ONLY     "   "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   250
 #define ERR_IO_ERROR             " /"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   251
 #define ERR_CANT_SET_WRITE_DIR   "     "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   252
 #define ERR_SYMLINK_LOOP         "   "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   253
 #define ERR_COMPRESSION          " ()"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   254
 #define ERR_NOT_IMPLEMENTED      " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   255
 #define ERR_OS_ERROR             "   "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   256
 #define ERR_FILE_EXISTS          "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   257
 #define ERR_NOT_A_FILE           " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   258
 #define ERR_NOT_A_DIR            " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   259
 #define ERR_NOT_AN_ARCHIVE       " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   260
 #define ERR_CORRUPTED            " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   261
 #define ERR_SEEK_OUT_OF_RANGE    "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   262
 #define ERR_BAD_FILENAME         "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   263
 #define ERR_PHYSFS_BAD_OS_CALL   "(BUG) PhysicsFS    "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   264
 #define ERR_ARGV0_IS_NULL        "argv0 is NULL"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   265
 #define ERR_ZLIB_NEED_DICT       "zlib:  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   266
 #define ERR_ZLIB_DATA_ERROR      "zlib:  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   267
 #define ERR_ZLIB_MEMORY_ERROR    "zlib:  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   268
 #define ERR_ZLIB_BUFFER_ERROR    "zlib:  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   269
 #define ERR_ZLIB_VERSION_ERROR   "zlib:  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   270
 #define ERR_ZLIB_UNKNOWN_ERROR   "zlib:  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   271
 #define ERR_SEARCHPATH_TRUNC     "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   272
 #define ERR_GETMODFN_TRUNC       "GetModuleFileName() "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   273
 #define ERR_GETMODFN_NO_DIR      "GetModuleFileName()   "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   274
 #define ERR_DISK_FULL            " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   275
 #define ERR_DIRECTORY_FULL       " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   276
 #define ERR_MACOS_GENERIC        "MacOS   (%d)"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   277
 #define ERR_OS2_GENERIC          "OS/2   (%d)"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   278
 #define ERR_VOL_LOCKED_HW        "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   279
 #define ERR_VOL_LOCKED_SW        "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   280
 #define ERR_FILE_LOCKED          " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   281
 #define ERR_FILE_OR_DIR_BUSY     "/ "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   282
 #define ERR_FILE_ALREADY_OPEN_W  "    "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   283
 #define ERR_FILE_ALREADY_OPEN_R  "    "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   284
 #define ERR_INVALID_REFNUM       "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   285
 #define ERR_GETTING_FILE_POS     "    "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   286
 #define ERR_VOLUME_OFFLINE       " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   287
 #define ERR_PERMISSION_DENIED    "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   288
 #define ERR_VOL_ALREADY_ONLINE   "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   289
 #define ERR_NO_SUCH_DRIVE        "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   290
 #define ERR_NOT_MAC_DISK         "  Macintosh"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   291
 #define ERR_VOL_EXTERNAL_FS      "    "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   292
 #define ERR_PROBLEM_RENAME       "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   293
 #define ERR_BAD_MASTER_BLOCK     "   "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   294
 #define ERR_CANT_MOVE_FORBIDDEN  "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   295
 #define ERR_WRONG_VOL_TYPE       "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   296
 #define ERR_SERVER_VOL_LOST      "   "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   297
 #define ERR_FILE_ID_NOT_FOUND    "   "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   298
 #define ERR_FILE_ID_EXISTS       "   "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   299
 #define ERR_SERVER_NO_RESPOND    "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   300
 #define ERR_USER_AUTH_FAILED     "   "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   301
 #define ERR_PWORD_EXPIRED        "   "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   302
 #define ERR_ACCESS_DENIED        "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   303
 #define ERR_NOT_A_DOS_DISK       "  DOS"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   304
 #define ERR_SHARING_VIOLATION    "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   305
 #define ERR_CANNOT_MAKE          "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   306
 #define ERR_DEV_IN_USE           "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   307
 #define ERR_OPEN_FAILED          "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   308
 #define ERR_PIPE_BUSY            " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   309
 #define ERR_SHARING_BUF_EXCEEDED "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   310
 #define ERR_TOO_MANY_HANDLES     "   "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   311
 #define ERR_SEEK_ERROR           " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   312
 #define ERR_DEL_CWD              "    "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   313
 #define ERR_WRITE_PROTECT_ERROR  "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   314
 #define ERR_WRITE_FAULT          " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   315
 #define ERR_LOCK_VIOLATION       " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   316
 #define ERR_GEN_FAILURE          " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   317
 #define ERR_UNCERTAIN_MEDIA      " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   318
 #define ERR_PROT_VIOLATION       " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   319
 #define ERR_BROKEN_PIPE          " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   320
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   321
#elif (PHYSFS_LANG == PHYSFS_LANG_RUSSIAN_CP866)
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   322
 #define DIR_ARCHIVE_DESCRIPTION  " 娢, ।⢥ /뢮 䠩 ⥬"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   323
 #define GRP_ARCHIVE_DESCRIPTION  "ଠ 㯯 䠩 Build engine"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   324
 #define ZIP_ARCHIVE_DESCRIPTION  "PkZip/WinZip/Info-Zip ᮢ⨬"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   325
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   326
 #define ERR_IS_INITIALIZED       " 樠஢"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   327
 #define ERR_NOT_INITIALIZED      " 樠஢"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   328
 #define ERR_INVALID_ARGUMENT     " 㬥"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   329
 #define ERR_FILES_STILL_OPEN     "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   330
 #define ERR_NO_DIR_CREATE        "  ᮧ ⠫"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   331
 #define ERR_OUT_OF_MEMORY        "稫 "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   332
 #define ERR_NOT_IN_SEARCH_PATH   " ⠪    ᪠"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   333
 #define ERR_NOT_SUPPORTED        "  ন"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   334
 #define ERR_UNSUPPORTED_ARCHIVE  "娢 ⠪ ⨯  ন"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   335
 #define ERR_NOT_A_HANDLE         " 䠩 ਯ"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   336
 #define ERR_INSECURE_FNAME       "᭮  䠩"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   337
 #define ERR_SYMLINK_DISALLOWED   " 뫪 ⪫祭"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   338
 #define ERR_NO_WRITE_DIR         "⠫    ⠭"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   339
 #define ERR_NO_SUCH_FILE         "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   340
 #define ERR_NO_SUCH_PATH         "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   341
 #define ERR_NO_SUCH_VOLUME       "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   342
 #define ERR_PAST_EOF             " 殬 䠩"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   343
 #define ERR_ARC_IS_READ_ONLY     "娢 ⮫쪮  ⥭"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   344
 #define ERR_IO_ERROR             "訡 /뢮"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   345
 #define ERR_CANT_SET_WRITE_DIR   "  ⠭ ⠫  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   346
 #define ERR_SYMLINK_LOOP         "᪮ 横 ᨬ쭮 뫪"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   347
 #define ERR_COMPRESSION          "訡 ()"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   348
 #define ERR_NOT_IMPLEMENTED      " ॠ"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   349
 #define ERR_OS_ERROR             "樮 ⥬ ᮮ騫 訡"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   350
 #define ERR_FILE_EXISTS          " 㦥 "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   351
 #define ERR_NOT_A_FILE           " 䠩"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   352
 #define ERR_NOT_A_DIR            " ⠫"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   353
 #define ERR_NOT_AN_ARCHIVE       " 娢"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   354
 #define ERR_CORRUPTED            "० 娢"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   355
 #define ERR_SEEK_OUT_OF_RANGE    "樮஢  ।"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   356
 #define ERR_BAD_FILENAME         "୮  䠩"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   357
 #define ERR_PHYSFS_BAD_OS_CALL   "(BUG) PhysicsFS 믮  ⥬ 맮"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   358
 #define ERR_ARGV0_IS_NULL        "argv0 is NULL"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   359
 #define ERR_ZLIB_NEED_DICT       "zlib: 㦥 ᫮"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   360
 #define ERR_ZLIB_DATA_ERROR      "zlib: 訡 "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   361
 #define ERR_ZLIB_MEMORY_ERROR    "zlib: 訡 "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   362
 #define ERR_ZLIB_BUFFER_ERROR    "zlib: 訡 "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   363
 #define ERR_ZLIB_VERSION_ERROR   "zlib: 訡 ᨨ"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   364
 #define ERR_ZLIB_UNKNOWN_ERROR   "zlib: ⭠ 訡"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   365
 #define ERR_SEARCHPATH_TRUNC     " ᪠ १"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   366
 #define ERR_GETMODFN_TRUNC       "GetModuleFileName() १"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   367
 #define ERR_GETMODFN_NO_DIR      "GetModuleFileName()  稫 ⠫"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   368
 #define ERR_DISK_FULL            " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   369
 #define ERR_DIRECTORY_FULL       "⠫ "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   370
 #define ERR_MACOS_GENERIC        "MacOS ᮮ騫 訡 (%d)"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   371
 #define ERR_OS2_GENERIC          "OS/2 ᮮ騫 訡 (%d)"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   372
 #define ERR_VOL_LOCKED_HW        " ஢ ⭮"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   373
 #define ERR_VOL_LOCKED_SW        " ஢ ணࠬ"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   374
 #define ERR_FILE_LOCKED          " ஢"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   375
 #define ERR_FILE_OR_DIR_BUSY     "/⠫ "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   376
 #define ERR_FILE_ALREADY_OPEN_W  " 㦥   "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   377
 #define ERR_FILE_ALREADY_OPEN_R  " 㦥   ⥭"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   378
 #define ERR_INVALID_REFNUM       "୮ ⢮ 뫮"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   379
 #define ERR_GETTING_FILE_POS     "訡  祭 樨 䠩"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   380
 #define ERR_VOLUME_OFFLINE       " ᮥ"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   381
 #define ERR_PERMISSION_DENIED    "⪠  ࠧ襭"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   382
 #define ERR_VOL_ALREADY_ONLINE   " 㦥 ᮥ"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   383
 #define ERR_NO_SUCH_DRIVE        " ⠪ ᪠"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   384
 #define ERR_NOT_MAC_DISK         "  Macintosh"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   385
 #define ERR_VOL_EXTERNAL_FS      " ਭ 譥 䠩 ⥬"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   386
 #define ERR_PROBLEM_RENAME       "஡  २"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   387
 #define ERR_BAD_MASTER_BLOCK     "宩   ⠫"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   388
 #define ERR_CANT_MOVE_FORBIDDEN  "⪠ ६ 饭"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   389
 #define ERR_WRONG_VOL_TYPE       " ⨯ ⮬"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   390
 #define ERR_SERVER_VOL_LOST      "ࢥ ⮬  ᮥ"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   391
 #define ERR_FILE_ID_NOT_FOUND    "䨪 䠩  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   392
 #define ERR_FILE_ID_EXISTS       "䨪 䠩 㦥 "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   393
 #define ERR_SERVER_NO_RESPOND    "ࢥ  ⢥砥"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   394
 #define ERR_USER_AUTH_FAILED     "䨪 짮⥫  㤠"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   395
 #define ERR_PWORD_EXPIRED        "஫  ࢥ ५"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   396
 #define ERR_ACCESS_DENIED        "⪠  㯥"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   397
 #define ERR_NOT_A_DOS_DISK       "  DOS"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   398
 #define ERR_SHARING_VIOLATION    "襭 ᮢ⭮ 㯠"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   399
 #define ERR_CANNOT_MAKE          "  ᮡ"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   400
 #define ERR_DEV_IN_USE           "ன⢮ 㦥 ᯮ"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   401
 #define ERR_OPEN_FAILED          "⨥  㤠"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   402
 #define ERR_PIPE_BUSY            " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   403
 #define ERR_SHARING_BUF_EXCEEDED "塞  ९"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   404
 #define ERR_TOO_MANY_HANDLES     "誮   ਯ஢"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   405
 #define ERR_SEEK_ERROR           "訡 樮஢"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   406
 #define ERR_DEL_CWD              "⪠ 㤠 ⥪騩 ࠡ稩 ⠫"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   407
 #define ERR_WRITE_PROTECT_ERROR  "訡  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   408
 #define ERR_WRITE_FAULT          "訡 "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   409
 #define ERR_LOCK_VIOLATION       "襭 ஢"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   410
 #define ERR_GEN_FAILURE          "騩 ᡮ"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   411
 #define ERR_UNCERTAIN_MEDIA      "। ⥫"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   412
 #define ERR_PROT_VIOLATION       "襭 "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   413
 #define ERR_BROKEN_PIPE          " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   414
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   415
#elif (PHYSFS_LANG == PHYSFS_LANG_RUSSIAN_ISO_8859_5)
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   416
 #define DIR_ARCHIVE_DESCRIPTION  " ,  /  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   417
 #define GRP_ARCHIVE_DESCRIPTION  "   Build engine"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   418
 #define ZIP_ARCHIVE_DESCRIPTION  "PkZip/WinZip/Info-Zip "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   419
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   420
 #define ERR_IS_INITIALIZED       " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   421
 #define ERR_NOT_INITIALIZED      " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   422
 #define ERR_INVALID_ARGUMENT     " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   423
 #define ERR_FILES_STILL_OPEN     "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   424
 #define ERR_NO_DIR_CREATE        "   "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   425
 #define ERR_OUT_OF_MEMORY        " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   426
 #define ERR_NOT_IN_SEARCH_PATH   "     "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   427
 #define ERR_NOT_SUPPORTED        "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   428
 #define ERR_UNSUPPORTED_ARCHIVE  "    "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   429
 #define ERR_NOT_A_HANDLE         "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   430
 #define ERR_INSECURE_FNAME       "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   431
 #define ERR_SYMLINK_DISALLOWED   "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   432
 #define ERR_NO_WRITE_DIR         "    "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   433
 #define ERR_NO_SUCH_FILE         "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   434
 #define ERR_NO_SUCH_PATH         "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   435
 #define ERR_NO_SUCH_VOLUME       "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   436
 #define ERR_PAST_EOF             "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   437
 #define ERR_ARC_IS_READ_ONLY     "   "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   438
 #define ERR_IO_ERROR             " /"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   439
 #define ERR_CANT_SET_WRITE_DIR   "     "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   440
 #define ERR_SYMLINK_LOOP         "   "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   441
 #define ERR_COMPRESSION          " ()"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   442
 #define ERR_NOT_IMPLEMENTED      " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   443
 #define ERR_OS_ERROR             "   "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   444
 #define ERR_FILE_EXISTS          "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   445
 #define ERR_NOT_A_FILE           " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   446
 #define ERR_NOT_A_DIR            " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   447
 #define ERR_NOT_AN_ARCHIVE       " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   448
 #define ERR_CORRUPTED            " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   449
 #define ERR_SEEK_OUT_OF_RANGE    "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   450
 #define ERR_BAD_FILENAME         "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   451
 #define ERR_PHYSFS_BAD_OS_CALL   "(BUG) PhysicsFS    "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   452
 #define ERR_ARGV0_IS_NULL        "argv0 is NULL"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   453
 #define ERR_ZLIB_NEED_DICT       "zlib:  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   454
 #define ERR_ZLIB_DATA_ERROR      "zlib:  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   455
 #define ERR_ZLIB_MEMORY_ERROR    "zlib:  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   456
 #define ERR_ZLIB_BUFFER_ERROR    "zlib:  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   457
 #define ERR_ZLIB_VERSION_ERROR   "zlib:  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   458
 #define ERR_ZLIB_UNKNOWN_ERROR   "zlib:  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   459
 #define ERR_SEARCHPATH_TRUNC     "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   460
 #define ERR_GETMODFN_TRUNC       "GetModuleFileName() "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   461
 #define ERR_GETMODFN_NO_DIR      "GetModuleFileName()   "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   462
 #define ERR_DISK_FULL            " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   463
 #define ERR_DIRECTORY_FULL       " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   464
 #define ERR_MACOS_GENERIC        "MacOS   (%d)"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   465
 #define ERR_OS2_GENERIC          "OS/2   (%d)"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   466
 #define ERR_VOL_LOCKED_HW        "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   467
 #define ERR_VOL_LOCKED_SW        "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   468
 #define ERR_FILE_LOCKED          " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   469
 #define ERR_FILE_OR_DIR_BUSY     "/ "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   470
 #define ERR_FILE_ALREADY_OPEN_W  "    "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   471
 #define ERR_FILE_ALREADY_OPEN_R  "    "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   472
 #define ERR_INVALID_REFNUM       "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   473
 #define ERR_GETTING_FILE_POS     "    "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   474
 #define ERR_VOLUME_OFFLINE       " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   475
 #define ERR_PERMISSION_DENIED    "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   476
 #define ERR_VOL_ALREADY_ONLINE   "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   477
 #define ERR_NO_SUCH_DRIVE        "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   478
 #define ERR_NOT_MAC_DISK         "  Macintosh"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   479
 #define ERR_VOL_EXTERNAL_FS      "    "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   480
 #define ERR_PROBLEM_RENAME       "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   481
 #define ERR_BAD_MASTER_BLOCK     "   "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   482
 #define ERR_CANT_MOVE_FORBIDDEN  "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   483
 #define ERR_WRONG_VOL_TYPE       "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   484
 #define ERR_SERVER_VOL_LOST      "   "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   485
 #define ERR_FILE_ID_NOT_FOUND    "   "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   486
 #define ERR_FILE_ID_EXISTS       "   "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   487
 #define ERR_SERVER_NO_RESPOND    "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   488
 #define ERR_USER_AUTH_FAILED     "   "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   489
 #define ERR_PWORD_EXPIRED        "   "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   490
 #define ERR_ACCESS_DENIED        "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   491
 #define ERR_NOT_A_DOS_DISK       "  DOS"
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   492
 #define ERR_SHARING_VIOLATION    "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   493
 #define ERR_CANNOT_MAKE          "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   494
 #define ERR_DEV_IN_USE           "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   495
 #define ERR_OPEN_FAILED          "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   496
 #define ERR_PIPE_BUSY            " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   497
 #define ERR_SHARING_BUF_EXCEEDED "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   498
 #define ERR_TOO_MANY_HANDLES     "   "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   499
 #define ERR_SEEK_ERROR           " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   500
 #define ERR_DEL_CWD              "    "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   501
 #define ERR_WRITE_PROTECT_ERROR  "  "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   502
 #define ERR_WRITE_FAULT          " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   503
 #define ERR_LOCK_VIOLATION       " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   504
 #define ERR_GEN_FAILURE          " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   505
 #define ERR_UNCERTAIN_MEDIA      " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   506
 #define ERR_PROT_VIOLATION       " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   507
 #define ERR_BROKEN_PIPE          " "
06f6a31057a0 More Russian codepages.
Ryan C. Gordon <icculus@icculus.org>
parents: 439
diff changeset
   508
435
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   509
#elif (PHYSFS_LANG == PHYSFS_LANG_SPANISH)
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   510
 #define DIR_ARCHIVE_DESCRIPTION  "No es un archivo, E/S directa al sistema de ficheros"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   511
 #define GRP_ARCHIVE_DESCRIPTION  "Formato Build engine Groupfile"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   512
 #define ZIP_ARCHIVE_DESCRIPTION  "Compatible con PkZip/WinZip/Info-Zip"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   513
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   514
 #define ERR_IS_INITIALIZED       "Ya estaba inicializado"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   515
 #define ERR_NOT_INITIALIZED      "No est inicializado"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   516
 #define ERR_INVALID_ARGUMENT     "Argumento invlido"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   517
 #define ERR_FILES_STILL_OPEN     "Archivos an abiertos"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   518
 #define ERR_NO_DIR_CREATE        "Fallo al crear los directorios"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   519
 #define ERR_OUT_OF_MEMORY        "Memoria agotada"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   520
 #define ERR_NOT_IN_SEARCH_PATH   "No existe tal entrada en la ruta de bsqueda"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   521
 #define ERR_NOT_SUPPORTED        "Operacin no soportada"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   522
 #define ERR_UNSUPPORTED_ARCHIVE  "Tipo de archivo no soportado"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   523
 #define ERR_NOT_A_HANDLE         "No es un manejador de ficheo (file handle)"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   524
 #define ERR_INSECURE_FNAME       "Nombre de archivo inseguro"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   525
 #define ERR_SYMLINK_DISALLOWED   "Los enlaces simblicos estn desactivados"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   526
 #define ERR_NO_WRITE_DIR         "No has configurado un directorio de escritura"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   527
 #define ERR_NO_SUCH_FILE         "Archivo no encontrado"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   528
 #define ERR_NO_SUCH_PATH         "Ruta no encontrada"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   529
 #define ERR_NO_SUCH_VOLUME       "Volumen no encontrado"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   530
 #define ERR_PAST_EOF             "Te pasaste del final del archivo"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   531
 #define ERR_ARC_IS_READ_ONLY     "El archivo es de slo lectura"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   532
 #define ERR_IO_ERROR             "Error E/S"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   533
 #define ERR_CANT_SET_WRITE_DIR   "No puedo configurar el directorio de escritura"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   534
 #define ERR_SYMLINK_LOOP         "Bucle infnito de enlaces simblicos"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   535
 #define ERR_COMPRESSION          "Error de (des)compresin"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   536
 #define ERR_NOT_IMPLEMENTED      "No implementado"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   537
 #define ERR_OS_ERROR             "El sistema operativo ha devuelto un error"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   538
 #define ERR_FILE_EXISTS          "El archivo ya existe"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   539
 #define ERR_NOT_A_FILE           "No es un archivo"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   540
 #define ERR_NOT_A_DIR            "No es un directorio"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   541
 #define ERR_NOT_AN_ARCHIVE       "No es un archivo"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   542
 #define ERR_CORRUPTED            "Archivo corrupto"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   543
 #define ERR_SEEK_OUT_OF_RANGE    "Bsqueda fuera de rango"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   544
 #define ERR_BAD_FILENAME         "Nombre de archivo incorrecto"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   545
 #define ERR_PHYSFS_BAD_OS_CALL   "(BUG) PhysicsFS ha hecho una llamada incorrecta al sistema"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   546
 #define ERR_ARGV0_IS_NULL        "argv0 es NULL"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   547
 #define ERR_ZLIB_NEED_DICT       "zlib: necesito diccionario"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   548
 #define ERR_ZLIB_DATA_ERROR      "zlib: error de datos"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   549
 #define ERR_ZLIB_MEMORY_ERROR    "zlib: error de memoria"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   550
 #define ERR_ZLIB_BUFFER_ERROR    "zlib: error de buffer"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   551
 #define ERR_ZLIB_VERSION_ERROR   "zlib: error de versin"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   552
 #define ERR_ZLIB_UNKNOWN_ERROR   "zlib: error desconocido"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   553
 #define ERR_SEARCHPATH_TRUNC     "La ruta de bsqueda ha sido truncada"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   554
 #define ERR_GETMODFN_TRUNC       "GetModuleFileName() ha sido truncado"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   555
 #define ERR_GETMODFN_NO_DIR      "GetModuleFileName() no tenia directorio"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   556
 #define ERR_DISK_FULL            "El disco est lleno"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   557
 #define ERR_DIRECTORY_FULL       "El directorio est lleno"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   558
 #define ERR_MACOS_GENERIC        "MacOS ha devuelto un error (%d)"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   559
 #define ERR_OS2_GENERIC          "OS/2 ha devuelto un error (%d)"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   560
 #define ERR_VOL_LOCKED_HW        "El volumen est bloqueado por el hardware"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   561
 #define ERR_VOL_LOCKED_SW        "El volumen est bloqueado por el software"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   562
 #define ERR_FILE_LOCKED          "El archivo est bloqueado"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   563
 #define ERR_FILE_OR_DIR_BUSY     "Fichero o directorio ocupados"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   564
 #define ERR_FILE_ALREADY_OPEN_W  "Fichero ya abierto para escritura"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   565
 #define ERR_FILE_ALREADY_OPEN_R  "Fichero ya abierto para lectura"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   566
 #define ERR_INVALID_REFNUM       "El nmero de referencia no es vlido"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   567
 #define ERR_GETTING_FILE_POS     "Error al tomar la posicin del fichero"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   568
 #define ERR_VOLUME_OFFLINE       "El volumen est desconectado"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   569
 #define ERR_PERMISSION_DENIED    "Permiso denegado"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   570
 #define ERR_VOL_ALREADY_ONLINE   "El volumen ya estaba conectado"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   571
 #define ERR_NO_SUCH_DRIVE        "No existe tal unidad"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   572
 #define ERR_NOT_MAC_DISK         "No es un disco Macintosh"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   573
 #define ERR_VOL_EXTERNAL_FS      "El volumen pertence a un sistema de ficheros externo"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   574
 #define ERR_PROBLEM_RENAME       "Problemas al renombrar"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   575
 #define ERR_BAD_MASTER_BLOCK     "Bloque maestro de directorios incorrecto"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   576
 #define ERR_CANT_MOVE_FORBIDDEN  "Intento de mover forbidden"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   577
 #define ERR_WRONG_VOL_TYPE       "Tipo de volumen incorrecto"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   578
 #define ERR_SERVER_VOL_LOST      "El servidor de volmenes ha sido desconectado"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   579
 #define ERR_FILE_ID_NOT_FOUND    "Identificador de archivo no encontrado"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   580
 #define ERR_FILE_ID_EXISTS       "El identificador de archivo ya existe"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   581
 #define ERR_SERVER_NO_RESPOND    "El servidor no responde"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   582
 #define ERR_USER_AUTH_FAILED     "Fallo al autentificar el usuario"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   583
 #define ERR_PWORD_EXPIRED        "La Password  en el servidor ha caducado"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   584
 #define ERR_ACCESS_DENIED        "Acceso denegado"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   585
 #define ERR_NOT_A_DOS_DISK       "No es un disco de DOS"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   586
 #define ERR_SHARING_VIOLATION    "Violacin al compartir"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   587
 #define ERR_CANNOT_MAKE          "No puedo hacer make"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   588
 #define ERR_DEV_IN_USE           "El dispositivo ya estaba en uso"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   589
 #define ERR_OPEN_FAILED          "Fallo al abrir"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   590
 #define ERR_PIPE_BUSY            "Tubera ocupada"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   591
 #define ERR_SHARING_BUF_EXCEEDED "Buffer de comparticin sobrepasado"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   592
 #define ERR_TOO_MANY_HANDLES     "Demasiados manejadores (handles)"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   593
 #define ERR_SEEK_ERROR           "Error de bsqueda"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   594
 #define ERR_DEL_CWD              "Intentando borrar el directorio de trabajo actual"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   595
 #define ERR_WRITE_PROTECT_ERROR  "Error de proteccin contra escritura"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   596
 #define ERR_WRITE_FAULT          "Fallo al escribir"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   597
 #define ERR_LOCK_VIOLATION       "Violacin del bloqueo"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   598
 #define ERR_GEN_FAILURE          "Fallo general"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   599
 #define ERR_UNCERTAIN_MEDIA      "Medio incierto"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   600
 #define ERR_PROT_VIOLATION       "Violacin de la proteccin"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   601
 #define ERR_BROKEN_PIPE          "Tubera rota"
c4daca3b09b9 Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents: 434
diff changeset
   602
439
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   603
#elif (PHYSFS_LANG == PHYSFS_LANG_FRENCH)
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   604
 #define DIR_ARCHIVE_DESCRIPTION  "Pas d'archive, E/S directes sur systme de fichiers"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   605
 #define GRP_ARCHIVE_DESCRIPTION  "Format Groupfile du moteur Build"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   606
 #define ZIP_ARCHIVE_DESCRIPTION  "Compatible PkZip/WinZip/Info-Zip"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   607
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   608
 #define ERR_IS_INITIALIZED       "Dj initialis"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   609
 #define ERR_NOT_INITIALIZED      "Non initialis"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   610
 #define ERR_INVALID_ARGUMENT     "Argument invalide"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   611
 #define ERR_FILES_STILL_OPEN     "Fichiers encore ouverts"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   612
 #define ERR_NO_DIR_CREATE        "Echec de la cration de rpertoires"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   613
 #define ERR_OUT_OF_MEMORY        "A court de mmoire"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   614
 #define ERR_NOT_IN_SEARCH_PATH   "Aucune entre dans le chemin de recherche"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   615
 #define ERR_NOT_SUPPORTED        "Opration non supporte"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   616
 #define ERR_UNSUPPORTED_ARCHIVE  "Type d'archive non supporte"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   617
 #define ERR_NOT_A_HANDLE         "Pas un descripteur de fichier"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   618
 #define ERR_INSECURE_FNAME       "Nom de fichier dangereux"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   619
 #define ERR_SYMLINK_DISALLOWED   "Les liens symboliques sont dsactivs"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   620
 #define ERR_NO_WRITE_DIR         "Le rpertoire d'criture n'est pas spcifi"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   621
 #define ERR_NO_SUCH_FILE         "Fichier non trouv"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   622
 #define ERR_NO_SUCH_PATH         "Chemin non trouv"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   623
 #define ERR_NO_SUCH_VOLUME       "Volume non trouv"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   624
 #define ERR_PAST_EOF             "Au-del de la fin du fichier"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   625
 #define ERR_ARC_IS_READ_ONLY     "L'archive est en lecture seule"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   626
 #define ERR_IO_ERROR             "Erreur E/S"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   627
 #define ERR_CANT_SET_WRITE_DIR   "Ne peut utiliser le rpertoire d'criture"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   628
 #define ERR_SYMLINK_LOOP         "Boucle infinie dans les liens symboliques"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   629
 #define ERR_COMPRESSION          "Erreur de (d)compression"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   630
 #define ERR_NOT_IMPLEMENTED      "Non implment"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   631
 #define ERR_OS_ERROR             "Erreur rapporte par le systme d'exploitation"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   632
 #define ERR_FILE_EXISTS          "Le fichier existe dj"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   633
 #define ERR_NOT_A_FILE           "Pas un fichier"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   634
 #define ERR_NOT_A_DIR            "Pas un rpertoire"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   635
 #define ERR_NOT_AN_ARCHIVE       "Pas une archive"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   636
 #define ERR_CORRUPTED            "Archive corrompue"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   637
 #define ERR_SEEK_OUT_OF_RANGE    "Pointeur de fichier hors de porte"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   638
 #define ERR_BAD_FILENAME         "Mauvais nom de fichier"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   639
 #define ERR_PHYSFS_BAD_OS_CALL   "(BOGUE) PhysicsFS a fait un mauvais appel systme, le salaud"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   640
 #define ERR_ARGV0_IS_NULL        "argv0 est NULL"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   641
 #define ERR_ZLIB_NEED_DICT       "zlib: a besoin du dico"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   642
 #define ERR_ZLIB_DATA_ERROR      "zlib: erreur de donnes"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   643
 #define ERR_ZLIB_MEMORY_ERROR    "zlib: erreur mmoire"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   644
 #define ERR_ZLIB_BUFFER_ERROR    "zlib: erreur tampon"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   645
 #define ERR_ZLIB_VERSION_ERROR   "zlib: erreur de version"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   646
 #define ERR_ZLIB_UNKNOWN_ERROR   "zlib: erreur inconnue"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   647
 #define ERR_SEARCHPATH_TRUNC     "Le chemin de recherche a t tronqu"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   648
 #define ERR_GETMODFN_TRUNC       "GetModuleFileName() a t tronqu"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   649
 #define ERR_GETMODFN_NO_DIR      "GetModuleFileName() n'a pas de rpertoire"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   650
 #define ERR_DISK_FULL            "Disque plein"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   651
 #define ERR_DIRECTORY_FULL       "Rpertoire plein"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   652
 #define ERR_MACOS_GENERIC        "Erreur rapporte par MacOS (%d)"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   653
 #define ERR_OS2_GENERIC          "Erreur rapporte par OS/2 (%d)"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   654
 #define ERR_VOL_LOCKED_HW        "Le volume est verrouill matriellement"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   655
 #define ERR_VOL_LOCKED_SW        "Le volume est verrouill par logiciel"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   656
 #define ERR_FILE_LOCKED          "Fichier verrouill"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   657
 #define ERR_FILE_OR_DIR_BUSY     "Fichier/rpertoire occup"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   658
 #define ERR_FILE_ALREADY_OPEN_W  "Fichier dj ouvert en criture"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   659
 #define ERR_FILE_ALREADY_OPEN_R  "Fichier dj ouvert en lecture"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   660
 #define ERR_INVALID_REFNUM       "Numro de rfrence invalide"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   661
 #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
   662
 #define ERR_VOLUME_OFFLINE       "Le volume n'est pas en ligne"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   663
 #define ERR_PERMISSION_DENIED    "Permission refuse"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   664
 #define ERR_VOL_ALREADY_ONLINE   "Volum dj en ligne"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   665
 #define ERR_NO_SUCH_DRIVE        "Lecteur inexistant"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   666
 #define ERR_NOT_MAC_DISK         "Pas un disque Macintosh"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   667
 #define ERR_VOL_EXTERNAL_FS      "Le volume appartient  un systme de fichiers externe"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   668
 #define ERR_PROBLEM_RENAME       "Problme lors du renommage"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   669
 #define ERR_BAD_MASTER_BLOCK     "Mauvais block maitre de rpertoire"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   670
 #define ERR_CANT_MOVE_FORBIDDEN  "Essai de dplacement interdit"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   671
 #define ERR_WRONG_VOL_TYPE       "Mauvais type de volume"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   672
 #define ERR_SERVER_VOL_LOST      "Le volume serveur a t dconnect"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   673
 #define ERR_FILE_ID_NOT_FOUND    "Identificateur de fichier non trouv"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   674
 #define ERR_FILE_ID_EXISTS       "Identificateur de fichier existe dj"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   675
 #define ERR_SERVER_NO_RESPOND    "Le serveur ne rpond pas"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   676
 #define ERR_USER_AUTH_FAILED     "Authentification de l'utilisateur choue"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   677
 #define ERR_PWORD_EXPIRED        "Le mot de passe a expir sur le serveur"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   678
 #define ERR_ACCESS_DENIED        "Accs refus"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   679
 #define ERR_NOT_A_DOS_DISK       "Pas un disque DOS"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   680
 #define ERR_SHARING_VIOLATION    "Violation de partage"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   681
 #define ERR_CANNOT_MAKE          "Ne peut faire"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   682
 #define ERR_DEV_IN_USE           "Priphrique dj en utilisation"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   683
 #define ERR_OPEN_FAILED          "Ouverture choue"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   684
 #define ERR_PIPE_BUSY            "Le tube est occup"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   685
 #define ERR_SHARING_BUF_EXCEEDED "Tampon de partage dpass"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   686
 #define ERR_TOO_MANY_HANDLES     "Trop de descripteurs ouverts"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   687
 #define ERR_SEEK_ERROR           "Erreur de positionement"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   688
 #define ERR_DEL_CWD              "Essai de supprimer le rpertoire courant"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   689
 #define ERR_WRITE_PROTECT_ERROR  "Erreur de protection en criture"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   690
 #define ERR_WRITE_FAULT          "Erreur d'criture"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   691
 #define ERR_LOCK_VIOLATION       "Violation de verrou"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   692
 #define ERR_GEN_FAILURE          "Echec gnral"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   693
 #define ERR_UNCERTAIN_MEDIA      "Mdia incertain"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   694
 #define ERR_PROT_VIOLATION       "Violation de protection"
7423fa8fd31b Added French translation.
megastep
parents: 435
diff changeset
   695
 #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
   696
427
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   697
#else
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   698
 #error Please define PHYSFS_LANG.
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   699
#endif
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   700
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   701
/* end LANG section. */
c38ace41039f Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents: 422
diff changeset
   702
15
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   703
struct __PHYSFS_DIRHANDLE__;
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   704
struct __PHYSFS_FILEFUNCTIONS__;
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   705
20
efdde0d21521 Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents: 19
diff changeset
   706
efdde0d21521 Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents: 19
diff changeset
   707
typedef struct __PHYSFS_LINKEDSTRINGLIST__
efdde0d21521 Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents: 19
diff changeset
   708
{
efdde0d21521 Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents: 19
diff changeset
   709
    char *str;
efdde0d21521 Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents: 19
diff changeset
   710
    struct __PHYSFS_LINKEDSTRINGLIST__ *next;
efdde0d21521 Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents: 19
diff changeset
   711
} LinkedStringList;
efdde0d21521 Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents: 19
diff changeset
   712
efdde0d21521 Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents: 19
diff changeset
   713
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   714
typedef struct __PHYSFS_FILEHANDLE__
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   715
{
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   716
        /*
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   717
         * This is reserved for the driver to store information.
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   718
         */
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   719
    void *opaque;
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   720
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   721
        /*
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   722
         * This should be the DirHandle that created this FileHandle.
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   723
         */
15
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   724
    const struct __PHYSFS_DIRHANDLE__ *dirHandle;
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   725
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   726
        /*
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   727
         * Pointer to the file i/o functions for this filehandle.
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   728
         */
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   729
    const struct __PHYSFS_FILEFUNCTIONS__ *funcs;
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   730
} FileHandle;
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   731
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   732
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   733
typedef struct __PHYSFS_FILEFUNCTIONS__
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   734
{
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   735
        /*
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   736
         * Read more from the file.
15
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   737
         * Returns number of objects of (objSize) bytes read from file, -1
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   738
         *  if complete failure.
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   739
         * On failure, call __PHYSFS_setError().
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   740
         */
132
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
   741
    PHYSFS_sint64 (*read)(FileHandle *handle, void *buffer,
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
   742
                          PHYSFS_uint32 objSize, PHYSFS_uint32 objCount);
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   743
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   744
        /*
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   745
         * Write more to the file. Archives don't have to implement this.
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   746
         *  (Set it to NULL if not implemented).
15
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   747
         * Returns number of objects of (objSize) bytes written to file, -1
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   748
         *  if complete failure.
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   749
         * On failure, call __PHYSFS_setError().
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   750
         */
132
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
   751
    PHYSFS_sint64 (*write)(FileHandle *handle, const void *buffer,
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
   752
                 PHYSFS_uint32 objSize, PHYSFS_uint32 objCount);
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   753
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   754
        /*
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   755
         * Returns non-zero if at end of file.
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   756
         */
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   757
    int (*eof)(FileHandle *handle);
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   758
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   759
        /*
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   760
         * Returns byte offset from start of file.
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   761
         */
132
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
   762
    PHYSFS_sint64 (*tell)(FileHandle *handle);
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   763
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   764
        /*
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   765
         * Move read/write pointer to byte offset from start of file.
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   766
         *  Returns non-zero on success, zero on error.
15
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   767
         * On failure, call __PHYSFS_setError().
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   768
         */
132
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
   769
    int (*seek)(FileHandle *handle, PHYSFS_uint64 offset);
9
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
        /*
28
529214f57d1b Added PHYSFS_fileLength(). Bleh.
Ryan C. Gordon <icculus@icculus.org>
parents: 23
diff changeset
   772
         * Return number of bytes available in the file, or -1 if you
529214f57d1b Added PHYSFS_fileLength(). Bleh.
Ryan C. Gordon <icculus@icculus.org>
parents: 23
diff changeset
   773
         *  aren't able to determine.
529214f57d1b Added PHYSFS_fileLength(). Bleh.
Ryan C. Gordon <icculus@icculus.org>
parents: 23
diff changeset
   774
         * On failure, call __PHYSFS_setError().
529214f57d1b Added PHYSFS_fileLength(). Bleh.
Ryan C. Gordon <icculus@icculus.org>
parents: 23
diff changeset
   775
         */
132
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
   776
    PHYSFS_sint64 (*fileLength)(FileHandle *handle);
28
529214f57d1b Added PHYSFS_fileLength(). Bleh.
Ryan C. Gordon <icculus@icculus.org>
parents: 23
diff changeset
   777
529214f57d1b Added PHYSFS_fileLength(). Bleh.
Ryan C. Gordon <icculus@icculus.org>
parents: 23
diff changeset
   778
        /*
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   779
         * Close the file, and free the FileHandle structure (including "opaque").
15
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   780
         *  returns non-zero on success, zero if can't close file.
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   781
         * On failure, call __PHYSFS_setError().
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   782
         */
20
efdde0d21521 Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents: 19
diff changeset
   783
    int (*fileClose)(FileHandle *handle);
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   784
} FileFunctions;
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   785
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   786
15
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   787
typedef struct __PHYSFS_DIRHANDLE__
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   788
{
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   789
        /*
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   790
         * This is reserved for the driver to store information.
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
    void *opaque;
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   793
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   794
        /*
15
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   795
         * Pointer to the directory i/o functions for this handle.
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   796
         */
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   797
    const struct __PHYSFS_DIRFUNCTIONS__ *funcs;
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   798
} DirHandle;
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   799
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   800
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   801
/*
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   802
 * Symlinks should always be followed; PhysicsFS will use
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   803
 *  DirFunctions->isSymLink() and make a judgement on whether to
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   804
 *  continue to call other methods based on that.
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   805
 */
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   806
typedef struct __PHYSFS_DIRFUNCTIONS__
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   807
{
399
02dd53688315 Changed DirFunctions struct a little.
Ryan C. Gordon <icculus@icculus.org>
parents: 363
diff changeset
   808
    const PHYSFS_ArchiveInfo *info;
02dd53688315 Changed DirFunctions struct a little.
Ryan C. Gordon <icculus@icculus.org>
parents: 363
diff changeset
   809
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   810
        /*
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   811
         * 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
   812
         *  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
   813
         *  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
   814
         *  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
   815
         *  element of the search path.
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   816
         */
15
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   817
    int (*isArchive)(const char *filename, int forWriting);
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   818
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
         * Return a DirHandle for dir/archive (name).
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   821
         *  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
   822
         *  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
   823
         *  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
   824
         *  element of the search path.
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   825
         * Returns NULL on failure, and calls __PHYSFS_setError().
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   826
         */
15
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   827
    DirHandle *(*openArchive)(const char *name, int forWriting);
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   828
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   829
        /*
12
a4041c91d715 Redesign of enumerateFiles code. More efficient and clean, less memory
Ryan C. Gordon <icculus@icculus.org>
parents: 11
diff changeset
   830
         * Returns a list of all files in dirname. Each element of this list
a4041c91d715 Redesign of enumerateFiles code. More efficient and clean, less memory
Ryan C. Gordon <icculus@icculus.org>
parents: 11
diff changeset
   831
         *  (and its "str" field) will be deallocated with the system's free()
a4041c91d715 Redesign of enumerateFiles code. More efficient and clean, less memory
Ryan C. Gordon <icculus@icculus.org>
parents: 11
diff changeset
   832
         *  function by the caller, so be sure to explicitly malloc() each
41
ff60d39d0862 Architecture adjustment for enumerating files with regards to whether
Ryan C. Gordon <icculus@icculus.org>
parents: 39
diff changeset
   833
         *  chunk. Omit symlinks if (omitSymLinks) is non-zero.
12
a4041c91d715 Redesign of enumerateFiles code. More efficient and clean, less memory
Ryan C. Gordon <icculus@icculus.org>
parents: 11
diff changeset
   834
         * If you have a memory failure, return as much as you can.
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   835
         *  This dirname is in platform-independent notation.
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   836
         */
41
ff60d39d0862 Architecture adjustment for enumerating files with regards to whether
Ryan C. Gordon <icculus@icculus.org>
parents: 39
diff changeset
   837
    LinkedStringList *(*enumerateFiles)(DirHandle *r,
ff60d39d0862 Architecture adjustment for enumerating files with regards to whether
Ryan C. Gordon <icculus@icculus.org>
parents: 39
diff changeset
   838
                                        const char *dirname,
ff60d39d0862 Architecture adjustment for enumerating files with regards to whether
Ryan C. Gordon <icculus@icculus.org>
parents: 39
diff changeset
   839
                                        int omitSymLinks);
ff60d39d0862 Architecture adjustment for enumerating files with regards to whether
Ryan C. Gordon <icculus@icculus.org>
parents: 39
diff changeset
   840
15
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   841
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   842
        /*
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   843
         * 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
   844
         *  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
   845
         */
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   846
    int (*exists)(DirHandle *r, const char *name);
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   847
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   848
        /*
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   849
         * 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
   850
         *  This filename is in platform-independent notation.
363
79f155a51527 Added __PHYSFS_addToLinkedStringList().
Ryan C. Gordon <icculus@icculus.org>
parents: 344
diff changeset
   851
         *  Symlinks should be followed; if what the symlink points
79f155a51527 Added __PHYSFS_addToLinkedStringList().
Ryan C. Gordon <icculus@icculus.org>
parents: 344
diff changeset
   852
         *  to is missing, or isn't a directory, then the retval is zero.
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   853
         */
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   854
    int (*isDirectory)(DirHandle *r, const char *name);
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   855
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   856
        /*
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   857
         * 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
   858
         *  This filename is in platform-independent notation.
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   859
         */
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   860
    int (*isSymLink)(DirHandle *r, const char *name);
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   861
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   862
        /*
240
052041af9001 Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents: 172
diff changeset
   863
	     * Retrieve the last modification time (mtime) of a file.
052041af9001 Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents: 172
diff changeset
   864
    	 *  Returns -1 on failure, or the file's mtime in seconds since
052041af9001 Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents: 172
diff changeset
   865
    	 *  the epoch (Jan 1, 1970) on success.
052041af9001 Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents: 172
diff changeset
   866
         *  This filename is in platform-independent notation.
052041af9001 Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents: 172
diff changeset
   867
    	 */
052041af9001 Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents: 172
diff changeset
   868
    PHYSFS_sint64 (*getLastModTime)(DirHandle *r, const char *filename);
052041af9001 Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents: 172
diff changeset
   869
052041af9001 Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents: 172
diff changeset
   870
        /*
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   871
         * Open file for reading, and return a FileHandle.
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   872
         *  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
   873
         * 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
   874
         *  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
   875
         * 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
   876
         * Returns NULL on failure, and calls __PHYSFS_setError().
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   877
         */
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   878
    FileHandle *(*openRead)(DirHandle *r, const char *filename);
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   879
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   880
        /*
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   881
         * Open file for writing, and return a FileHandle.
20
efdde0d21521 Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents: 19
diff changeset
   882
         * 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
   883
         *  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
   884
         *  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
   885
         * This filename is in platform-independent notation.
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   886
         *  This method may be NULL.
15
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   887
         * 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
   888
         *  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
   889
         * Returns NULL on failure, and calls __PHYSFS_setError().
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   890
         */
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   891
    FileHandle *(*openWrite)(DirHandle *r, const char *filename);
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   892
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   893
        /*
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   894
         * Open file for appending, and return a FileHandle.
20
efdde0d21521 Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents: 19
diff changeset
   895
         * 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
   896
         *  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
   897
         * This filename is in platform-independent notation.
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   898
         *  This method may be NULL.
15
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   899
         * 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
   900
         *  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
   901
         * Returns NULL on failure, and calls __PHYSFS_setError().
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   902
         */
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   903
    FileHandle *(*openAppend)(DirHandle *r, const char *filename);
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   904
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   905
        /*
15
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   906
         * 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
   907
         *  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
   908
         *  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
   909
         *  This method may be NULL.
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   910
         * On failure, call __PHYSFS_setError().
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   911
         */
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   912
    int (*remove)(DirHandle *r, const char *filename);
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   913
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   914
        /*
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   915
         * 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
   916
         *  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
   917
         *  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
   918
         *  your driver.
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   919
         *  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
   920
         *  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
   921
         *  This method may be NULL.
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   922
         * On failure, call __PHYSFS_setError().
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   923
         */
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   924
    int (*mkdir)(DirHandle *r, const char *filename);
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   925
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   926
        /*
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   927
         * Close directories/archives, and free the handle, including
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   928
         *  the "opaque" entry. This should assume that it won't be called if
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   929
         *  there are still files open from this DirHandle.
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   930
         */
20
efdde0d21521 Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents: 19
diff changeset
   931
    void (*dirClose)(DirHandle *r);
11
677e01f5109e Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents: 9
diff changeset
   932
} DirFunctions;
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   933
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   934
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
 * 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
   937
 *  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
   938
 *  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
   939
 *
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   940
 * 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
   941
 */
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
   942
void __PHYSFS_setError(const char *err);
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
15
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   945
/*
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   946
 * 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
   947
 *  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
   948
 *
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   949
 *  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
   950
 *     __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
   951
 *  ...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
   952
 *
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   953
 * 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
   954
 *  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
   955
 *
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   956
 * 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
   957
 */
20
efdde0d21521 Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents: 19
diff changeset
   958
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
   959
                                  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
   960
                                  const char *append);
15
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   961
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   962
/*
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   963
 * Verify that (fname) (in platform-independent notation), in relation
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   964
 *  to (h) is secure. That means that each element of fname is checked
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   965
 *  for symlinks (if they aren't permitted). Also, elements such as
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   966
 *  ".", "..", or ":" are flagged.
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   967
 *
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   968
 * Returns non-zero if string is safe, zero if there's a security issue.
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   969
 *  PHYSFS_getLastError() will specify what was wrong.
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   970
 */
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   971
int __PHYSFS_verifySecurity(DirHandle *h, const char *fname);
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   972
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
   973
363
79f155a51527 Added __PHYSFS_addToLinkedStringList().
Ryan C. Gordon <icculus@icculus.org>
parents: 344
diff changeset
   974
/*
79f155a51527 Added __PHYSFS_addToLinkedStringList().
Ryan C. Gordon <icculus@icculus.org>
parents: 344
diff changeset
   975
 * Use this to build the list that your enumerate function should return.
79f155a51527 Added __PHYSFS_addToLinkedStringList().
Ryan C. Gordon <icculus@icculus.org>
parents: 344
diff changeset
   976
 *  See zip.c for an example of proper use.
79f155a51527 Added __PHYSFS_addToLinkedStringList().
Ryan C. Gordon <icculus@icculus.org>
parents: 344
diff changeset
   977
 */
79f155a51527 Added __PHYSFS_addToLinkedStringList().
Ryan C. Gordon <icculus@icculus.org>
parents: 344
diff changeset
   978
LinkedStringList *__PHYSFS_addToLinkedStringList(LinkedStringList *retval,
79f155a51527 Added __PHYSFS_addToLinkedStringList().
Ryan C. Gordon <icculus@icculus.org>
parents: 344
diff changeset
   979
                                                 LinkedStringList **prev,
79f155a51527 Added __PHYSFS_addToLinkedStringList().
Ryan C. Gordon <icculus@icculus.org>
parents: 344
diff changeset
   980
                                                 const char *str,
79f155a51527 Added __PHYSFS_addToLinkedStringList().
Ryan C. Gordon <icculus@icculus.org>
parents: 344
diff changeset
   981
                                                 PHYSFS_sint32 len);
79f155a51527 Added __PHYSFS_addToLinkedStringList().
Ryan C. Gordon <icculus@icculus.org>
parents: 344
diff changeset
   982
79f155a51527 Added __PHYSFS_addToLinkedStringList().
Ryan C. Gordon <icculus@icculus.org>
parents: 344
diff changeset
   983
464
21c8e0d1578c Generalized sorting routines, and removed individual implementations.
Ryan C. Gordon <icculus@icculus.org>
parents: 444
diff changeset
   984
/*
21c8e0d1578c Generalized sorting routines, and removed individual implementations.
Ryan C. Gordon <icculus@icculus.org>
parents: 444
diff changeset
   985
 * 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
   986
 *  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
   987
 *  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
   988
 *
21c8e0d1578c Generalized sorting routines, and removed individual implementations.
Ryan C. Gordon <icculus@icculus.org>
parents: 444
diff changeset
   989
 * 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
   990
 *  before #including "physfs_internal.h".
21c8e0d1578c Generalized sorting routines, and removed individual implementations.
Ryan C. Gordon <icculus@icculus.org>
parents: 444
diff changeset
   991
 */
21c8e0d1578c Generalized sorting routines, and removed individual implementations.
Ryan C. Gordon <icculus@icculus.org>
parents: 444
diff changeset
   992
#ifndef PHYSFS_QUICKSORT_THRESHOLD
21c8e0d1578c Generalized sorting routines, and removed individual implementations.
Ryan C. Gordon <icculus@icculus.org>
parents: 444
diff changeset
   993
#define PHYSFS_QUICKSORT_THRESHOLD 4
21c8e0d1578c Generalized sorting routines, and removed individual implementations.
Ryan C. Gordon <icculus@icculus.org>
parents: 444
diff changeset
   994
#endif
21c8e0d1578c Generalized sorting routines, and removed individual implementations.
Ryan C. Gordon <icculus@icculus.org>
parents: 444
diff changeset
   995
21c8e0d1578c Generalized sorting routines, and removed individual implementations.
Ryan C. Gordon <icculus@icculus.org>
parents: 444
diff changeset
   996
/*
21c8e0d1578c Generalized sorting routines, and removed individual implementations.
Ryan C. Gordon <icculus@icculus.org>
parents: 444
diff changeset
   997
 * 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
   998
 *  a QuickSort and BubbleSort internally.
21c8e0d1578c Generalized sorting routines, and removed individual implementations.
Ryan C. Gordon <icculus@icculus.org>
parents: 444
diff changeset
   999
 * (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
  1000
 *  swapping of elements in the list.
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
 *  See zip.c for an example.
21c8e0d1578c Generalized sorting routines, and removed individual implementations.
Ryan C. Gordon <icculus@icculus.org>
parents: 444
diff changeset
  1003
 */
21c8e0d1578c Generalized sorting routines, and removed individual implementations.
Ryan C. Gordon <icculus@icculus.org>
parents: 444
diff changeset
  1004
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
  1005
                   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
  1006
                   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
  1007
363
79f155a51527 Added __PHYSFS_addToLinkedStringList().
Ryan C. Gordon <icculus@icculus.org>
parents: 344
diff changeset
  1008
69
546a95cc5591 Updates, corrections and enhancements to get this ported to win32.
Ryan C. Gordon <icculus@icculus.org>
parents: 49
diff changeset
  1009
/* 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
  1010
#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
  1011
#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
  1012
#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
  1013
#define BAIL_IF_MACRO_MUTEX(c, e, m, r) if (c) { __PHYSFS_setError(e); __PHYSFS_platformReleaseMutex(m); return r; }
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
  1014
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
  1015
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
  1016
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
  1017
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
  1018
/*--------------------------------------------------------------------------*/
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
  1019
/*--------------------------------------------------------------------------*/
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
  1020
/*------------                                              ----------------*/
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
  1021
/*------------  You MUST implement the following functions  ----------------*/
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
  1022
/*------------        if porting to a new platform.         ----------------*/
30
c9cc9b79112e "I/O error" error string, and updated comment.
Ryan C. Gordon <icculus@icculus.org>
parents: 28
diff changeset
  1023
/*------------     (see platform/unix.c for an example)     ----------------*/
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
  1024
/*------------                                              ----------------*/
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
  1025
/*--------------------------------------------------------------------------*/
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
  1026
/*--------------------------------------------------------------------------*/
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
  1027
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
  1028
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
  1029
/*
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
  1030
 * The dir separator; "/" on unix, "\\" on win32, ":" on MacOS, etc...
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
  1031
 *  Obviously, this isn't a function, but it IS a null-terminated string.
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
  1032
 */
15
418eacc97ac8 Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents: 12
diff changeset
  1033
extern const char *__PHYSFS_platformDirSeparator;
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
  1034
130
2deec3eb7430 Added __PHYSFS_platformInit() and __PHYSFS_platformDeinit().
Ryan C. Gordon <icculus@icculus.org>
parents: 126
diff changeset
  1035
2deec3eb7430 Added __PHYSFS_platformInit() and __PHYSFS_platformDeinit().
Ryan C. Gordon <icculus@icculus.org>
parents: 126
diff changeset
  1036
/*
2deec3eb7430 Added __PHYSFS_platformInit() and __PHYSFS_platformDeinit().
Ryan C. Gordon <icculus@icculus.org>
parents: 126
diff changeset
  1037
 * Initialize the platform. This is called when PHYSFS_init() is called from
2deec3eb7430 Added __PHYSFS_platformInit() and __PHYSFS_platformDeinit().
Ryan C. Gordon <icculus@icculus.org>
parents: 126
diff changeset
  1038
 *  the application. You can use this to (for example) determine what version
2deec3eb7430 Added __PHYSFS_platformInit() and __PHYSFS_platformDeinit().
Ryan C. Gordon <icculus@icculus.org>
parents: 126
diff changeset
  1039
 *  of Windows you're running.
2deec3eb7430 Added __PHYSFS_platformInit() and __PHYSFS_platformDeinit().
Ryan C. Gordon <icculus@icculus.org>
parents: 126
diff changeset
  1040
 *
2deec3eb7430 Added __PHYSFS_platformInit() and __PHYSFS_platformDeinit().
Ryan C. Gordon <icculus@icculus.org>
parents: 126
diff changeset
  1041
 * Return zero if there was a catastrophic failure (which prevents you from
2deec3eb7430 Added __PHYSFS_platformInit() and __PHYSFS_platformDeinit().
Ryan C. Gordon <icculus@icculus.org>
parents: 126
diff changeset
  1042
 *  functioning at all), and non-zero otherwise.
2deec3eb7430 Added __PHYSFS_platformInit() and __PHYSFS_platformDeinit().
Ryan C. Gordon <icculus@icculus.org>
parents: 126
diff changeset
  1043
 */
2deec3eb7430 Added __PHYSFS_platformInit() and __PHYSFS_platformDeinit().
Ryan C. Gordon <icculus@icculus.org>
parents: 126
diff changeset
  1044
int __PHYSFS_platformInit(void);
2deec3eb7430 Added __PHYSFS_platformInit() and __PHYSFS_platformDeinit().
Ryan C. Gordon <icculus@icculus.org>
parents: 126
diff changeset
  1045
240
052041af9001 Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents: 172
diff changeset
  1046
130
2deec3eb7430 Added __PHYSFS_platformInit() and __PHYSFS_platformDeinit().
Ryan C. Gordon <icculus@icculus.org>
parents: 126
diff changeset
  1047
/*
2deec3eb7430 Added __PHYSFS_platformInit() and __PHYSFS_platformDeinit().
Ryan C. Gordon <icculus@icculus.org>
parents: 126
diff changeset
  1048
 * Deinitialize the platform. This is called when PHYSFS_deinit() is called
2deec3eb7430 Added __PHYSFS_platformInit() and __PHYSFS_platformDeinit().
Ryan C. Gordon <icculus@icculus.org>
parents: 126
diff changeset
  1049
 *  from the application. You can use this to clean up anything you've
2deec3eb7430 Added __PHYSFS_platformInit() and __PHYSFS_platformDeinit().
Ryan C. Gordon <icculus@icculus.org>
parents: 126
diff changeset
  1050
 *  allocated in your platform driver.
2deec3eb7430 Added __PHYSFS_platformInit() and __PHYSFS_platformDeinit().
Ryan C. Gordon <icculus@icculus.org>
parents: 126
diff changeset
  1051
 *
2deec3eb7430 Added __PHYSFS_platformInit() and __PHYSFS_platformDeinit().
Ryan C. Gordon <icculus@icculus.org>
parents: 126
diff changeset
  1052
 * Return zero if there was a catastrophic failure (which prevents you from
2deec3eb7430 Added __PHYSFS_platformInit() and __PHYSFS_platformDeinit().
Ryan C. Gordon <icculus@icculus.org>
parents: 126
diff changeset
  1053
 *  functioning at all), and non-zero otherwise.
2deec3eb7430 Added __PHYSFS_platformInit() and __PHYSFS_platformDeinit().
Ryan C. Gordon <icculus@icculus.org>
parents: 126
diff changeset
  1054
 */
2deec3eb7430 Added __PHYSFS_platformInit() and __PHYSFS_platformDeinit().
Ryan C. Gordon <icculus@icculus.org>
parents: 126
diff changeset
  1055
int __PHYSFS_platformDeinit(void);
2deec3eb7430 Added __PHYSFS_platformInit() and __PHYSFS_platformDeinit().
Ryan C. Gordon <icculus@icculus.org>
parents: 126
diff changeset
  1056
240
052041af9001 Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents: 172
diff changeset
  1057
9
1155788ccbe3 Initial add. Ways to go.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
  1058
/*
132
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1059
 * Open a file for reading. (filename) is in platform-dependent notation. The
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1060
 *  file pointer should be positioned on the first byte of the file.
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1061
 *
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1062
 * The return value will be some platform-specific datatype that is opaque to
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1063
 *  the caller; it could be a (FILE *) under Unix, or a (HANDLE *) under win32.
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1064
 *
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1065
 * The same file can be opened for read multiple times, and each should have
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1066
 *  a unique file handle; this is frequently employed to prevent race
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1067
 *  conditions in the archivers.
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1068
 *
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1069
 * Call __PHYSFS_setError() and return (NULL) if the file can't be opened.
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1070
 */
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1071
void *__PHYSFS_platformOpenRead(const char *filename);
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1072
240
052041af9001 Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents: 172
diff changeset
  1073
132
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1074
/*
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1075
 * Open a file for writing. (filename) is in platform-dependent notation. If
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1076
 *  the file exists, it should be truncated to zero bytes, and if it doesn't
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1077
 *  exist, it should be created as a zero-byte file. The file pointer should
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1078
 *  be positioned on the first byte of the file.
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1079
 *
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1080
 * The return value will be some platform-specific datatype that is opaque to
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1081
 *  the caller; it could be a (FILE *) under Unix, or a (HANDLE *) under win32,
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1082
 *  etc.
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1083
 *
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1084
 * Opening a file for write multiple times has undefined results.
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1085
 *
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1086
 * Call __PHYSFS_setError() and return (NULL) if the file can't be opened.
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1087
 */
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1088
void *__PHYSFS_platformOpenWrite(const char *filename);
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1089
240
052041af9001 Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents: 172
diff changeset
  1090
132
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1091
/*
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1092
 * Open a file for appending. (filename) is in platform-dependent notation. If
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1093
 *  the file exists, the file pointer should be place just past the end of the
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1094
 *  file, so that the first write will be one byte after the current end of
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1095
 *  the file. If the file doesn't exist, it should be created as a zero-byte
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1096
 *  file. The file pointer should be positioned on the first byte of the file.
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1097
 *
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1098
 * The return value will be some platform-specific datatype that is opaque to
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1099
 *  the caller; it could be a (FILE *) under Unix, or a (HANDLE *) under win32,
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1100
 *  etc.
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1101
 *
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1102
 * Opening a file for append multiple times has undefined results.
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1103
 *
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1104
 * Call __PHYSFS_setError() and return (NULL) if the file can't be opened.
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1105
 */
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1106
void *__PHYSFS_platformOpenAppend(const char *filename);
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1107
240
052041af9001 Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents: 172
diff changeset
  1108
132
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1109
/*
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1110
 * Read more data from a platform-specific file handle. (opaque) should be
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1111
 *  cast to whatever data type your platform uses. Read a maximum of (count)
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1112
 *  objects of (size) 8-bit bytes to the area pointed to by (buffer). If there
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1113
 *  isn't enough data available, return the number of full objects read, and
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1114
 *  position the file pointer at the start of the first incomplete object.
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1115
 *  On success, return (count) and position the file pointer one byte past
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1116
 *  the end of the last read object. Return (-1) if there is a catastrophic
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1117
 *  error, and call __PHYSFS_setError() to describe the problem; the file
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1118
 *  pointer should not move in such a case.
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1119
 */
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1120
PHYSFS_sint64 __PHYSFS_platformRead(void *opaque, void *buffer,
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1121
                                    PHYSFS_uint32 size, PHYSFS_uint32 count);
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1122
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1123
/*
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1124
 * Write more data to a platform-specific file handle. (opaque) should be
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1125
 *  cast to whatever data type your platform uses. Write a maximum of (count)
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1126
 *  objects of (size) 8-bit bytes from the area pointed to by (buffer). If
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1127
 *  there isn't enough data available, return the number of full objects
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1128
 *  written, and position the file pointer at the start of the first
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1129
 *  incomplete object. Return (-1) if there is a catastrophic error, and call
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1130
 *  __PHYSFS_setError() to describe the problem; the file pointer should not
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1131
 *  move in such a case.
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1132
 */
134
eb030f2e342a Fixed a const thing.
Ryan C. Gordon <icculus@icculus.org>
parents: 132
diff changeset
  1133
PHYSFS_sint64 __PHYSFS_platformWrite(void *opaque, const void *buffer,
132
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1134
                                     PHYSFS_uint32 size, PHYSFS_uint32 count);
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1135
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1136
/*
b53fa5093749 Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents: 130
diff changeset
  1137
 * Set the file pointer to a new position. (opaque) should be cast to