author | Ryan C. Gordon <icculus@icculus.org> |
Tue, 30 Jul 2002 01:42:29 +0000 | |
changeset 435 | c4daca3b09b9 |
parent 434 | 19a16ec64f82 |
child 439 | 7423fa8fd31b |
permissions | -rw-r--r-- |
9 | 1 |
/* |
2 |
* Internal function/structure declaration. Do NOT include in your |
|
3 |
* application. |
|
4 |
* |
|
5 |
* Please see the file LICENSE in the source's root directory. |
|
6 |
* |
|
7 |
* This file written by Ryan C. Gordon. |
|
8 |
*/ |
|
9 |
||
10 |
#ifndef _INCLUDE_PHYSFS_INTERNAL_H_ |
|
11 |
#define _INCLUDE_PHYSFS_INTERNAL_H_ |
|
12 |
||
13 |
#ifndef __PHYSICSFS_INTERNAL__ |
|
14 |
#error Do not include this header from your applications. |
|
15 |
#endif |
|
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 |
|
435
c4daca3b09b9
Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents:
434
diff
changeset
|
31 |
#define PHYSFS_LANG_ENGLISH 1 /* English text by Ryan C. Gordon */ |
434
19a16ec64f82
Changed russian to russian-koi8-r.
Ryan C. Gordon <icculus@icculus.org>
parents:
431
diff
changeset
|
32 |
#define PHYSFS_LANG_RUSSIAN_KOI8_R 2 /* Russian text by Ed Sinjiashvili */ |
435
c4daca3b09b9
Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents:
434
diff
changeset
|
33 |
#define PHYSFS_LANG_SPANISH 3 /* Spanish text by Pedro J. Pérez */ |
427
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
422
diff
changeset
|
34 |
|
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
422
diff
changeset
|
35 |
|
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
422
diff
changeset
|
36 |
#if (PHYSFS_LANG == PHYSFS_LANG_ENGLISH) |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
422
diff
changeset
|
37 |
#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
|
38 |
#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
|
39 |
#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
|
40 |
|
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
422
diff
changeset
|
41 |
#define ERR_IS_INITIALIZED "Already initialized" |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
422
diff
changeset
|
42 |
#define ERR_NOT_INITIALIZED "Not initialized" |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
422
diff
changeset
|
43 |
#define ERR_INVALID_ARGUMENT "Invalid argument" |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
422
diff
changeset
|
44 |
#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
|
45 |
#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
|
46 |
#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
|
47 |
#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
|
48 |
#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
|
49 |
#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
|
50 |
#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
|
51 |
#define ERR_INSECURE_FNAME "Insecure filename" |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
422
diff
changeset
|
52 |
#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
|
53 |
#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
|
54 |
#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
|
55 |
#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
|
56 |
#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
|
57 |
#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
|
58 |
#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
|
59 |
#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
|
60 |
#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
|
61 |
#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
|
62 |
#define ERR_COMPRESSION "(De)compression error" |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
422
diff
changeset
|
63 |
#define ERR_NOT_IMPLEMENTED "Not implemented" |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
422
diff
changeset
|
64 |
#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
|
65 |
#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
|
66 |
#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
|
67 |
#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
|
68 |
#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
|
69 |
#define ERR_CORRUPTED "Corrupted archive" |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
422
diff
changeset
|
70 |
#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
|
71 |
#define ERR_BAD_FILENAME "Bad filename" |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
422
diff
changeset
|
72 |
#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
|
73 |
#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
|
74 |
#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
|
75 |
#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
|
76 |
#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
|
77 |
#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
|
78 |
#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
|
79 |
#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
|
80 |
#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
|
81 |
#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
|
82 |
#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
|
83 |
#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
|
84 |
#define ERR_DIRECTORY_FULL "Directory full" |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
422
diff
changeset
|
85 |
#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
|
86 |
#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
|
87 |
#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
|
88 |
#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
|
89 |
#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
|
90 |
#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
|
91 |
#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
|
92 |
#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
|
93 |
#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
|
94 |
#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
|
95 |
#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
|
96 |
#define ERR_PERMISSION_DENIED "Permission denied" |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
422
diff
changeset
|
97 |
#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
|
98 |
#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
|
99 |
#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
|
100 |
#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
|
101 |
#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
|
102 |
#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
|
103 |
#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
|
104 |
#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
|
105 |
#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
|
106 |
#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
|
107 |
#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
|
108 |
#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
|
109 |
#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
|
110 |
#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
|
111 |
#define ERR_ACCESS_DENIED "Access denied" |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
422
diff
changeset
|
112 |
#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
|
113 |
#define ERR_SHARING_VIOLATION "Sharing violation" |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
422
diff
changeset
|
114 |
#define ERR_CANNOT_MAKE "Cannot make" |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
422
diff
changeset
|
115 |
#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
|
116 |
#define ERR_OPEN_FAILED "Open failed" |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
422
diff
changeset
|
117 |
#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
|
118 |
#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
|
119 |
#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
|
120 |
#define ERR_SEEK_ERROR "Seek error" |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
422
diff
changeset
|
121 |
#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
|
122 |
#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
|
123 |
#define ERR_WRITE_FAULT "Write fault" |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
422
diff
changeset
|
124 |
#define ERR_LOCK_VIOLATION "Lock violation" |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
422
diff
changeset
|
125 |
#define ERR_GEN_FAILURE "General failure" |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
422
diff
changeset
|
126 |
#define ERR_UNCERTAIN_MEDIA "Uncertain media" |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
422
diff
changeset
|
127 |
#define ERR_PROT_VIOLATION "Protection violation" |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
422
diff
changeset
|
128 |
#define ERR_BROKEN_PIPE "Broken pipe" |
431
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
129 |
|
434
19a16ec64f82
Changed russian to russian-koi8-r.
Ryan C. Gordon <icculus@icculus.org>
parents:
431
diff
changeset
|
130 |
#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
|
131 |
#define DIR_ARCHIVE_DESCRIPTION "îÅ ÁÒÈÉ×, ÎÅÐÏÓÒÅÄÓÔ×ÅÎÎÙÊ ××ÏÄ/×Ù×ÏÄ ÆÁÊÌÏ×ÏÊ ÓÉÓÔÅÍÙ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
132 |
#define GRP_ARCHIVE_DESCRIPTION "æÏÒÍÁÔ ÇÒÕÐÐÏ×ÏÇÏ ÆÁÊÌÁ Build engine" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
133 |
#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
|
134 |
|
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
135 |
#define ERR_IS_INITIALIZED "õÖÅ ÉÎÉÃÉÁÌÉÚÉÒÏ×ÁÎ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
136 |
#define ERR_NOT_INITIALIZED "îÅ ÉÎÉÃÉÁÌÉÚÉÒÏ×ÁÎ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
137 |
#define ERR_INVALID_ARGUMENT "îÅ×ÅÒÎÙÊ ÁÒÇÕÍÅÎÔ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
138 |
#define ERR_FILES_STILL_OPEN "æÁÊÌÙ ÅÝÅ ÏÔËÒÙÔÙ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
139 |
#define ERR_NO_DIR_CREATE "îÅ ÍÏÇÕ ÓÏÚÄÁÔØ ËÁÔÁÌÏÇÉ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
140 |
#define ERR_OUT_OF_MEMORY "ëÏÎÞÉÌÁÓØ ÐÁÍÑÔØ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
141 |
#define ERR_NOT_IN_SEARCH_PATH "îÅÔ ÔÁËÏÇÏ ÜÌÅÍÅÎÔÁ × ÐÕÔÉ ÐÏÉÓËÁ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
142 |
#define ERR_NOT_SUPPORTED "ïÐÅÒÁÃÉÑ ÎÅ ÐÏÄÄÅÒÖÉ×ÁÅÔÓÑ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
143 |
#define ERR_UNSUPPORTED_ARCHIVE "áÒÈÉ×Ù ÔÁËÏÇÏ ÔÉÐÁ ÎÅ ÐÏÄÄÅÒÖÉ×ÁÀÔÓÑ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
144 |
#define ERR_NOT_A_HANDLE "îÅ ÆÁÊÌÏ×ÙÊ ÄÅÓËÒÉÐÔÏÒ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
145 |
#define ERR_INSECURE_FNAME "îÅÂÅÚÏÐÁÓÎÏÅ ÉÍÑ ÆÁÊÌÁ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
146 |
#define ERR_SYMLINK_DISALLOWED "óÉÍ×ÏÌØÎÙÅ ÓÓÙÌËÉ ÏÔËÌÀÞÅÎÙ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
147 |
#define ERR_NO_WRITE_DIR "ëÁÔÁÌÏÇ ÄÌÑ ÚÁÐÉÓÉ ÎÅ ÕÓÔÁÎÏ×ÌÅÎ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
148 |
#define ERR_NO_SUCH_FILE "æÁÊÌ ÎÅ ÎÁÊÄÅÎ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
149 |
#define ERR_NO_SUCH_PATH "ðÕÔØ ÎÅ ÎÁÊÄÅÎ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
150 |
#define ERR_NO_SUCH_VOLUME "ôÏÍ ÎÅ ÎÁÊÄÅÎ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
151 |
#define ERR_PAST_EOF "úÁ ËÏÎÃÏÍ ÆÁÊÌÁ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
152 |
#define ERR_ARC_IS_READ_ONLY "áÒÈÉ× ÔÏÌØËÏ ÄÌÑ ÞÔÅÎÉÑ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
153 |
#define ERR_IO_ERROR "ïÛÉÂËÁ ××ÏÄÁ/×Ù×ÏÄÁ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
154 |
#define ERR_CANT_SET_WRITE_DIR "îÅ ÍÏÇÕ ÕÓÔÁÎÏ×ÉÔØ ËÁÔÁÌÏÇ ÄÌÑ ÚÁÐÉÓÉ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
155 |
#define ERR_SYMLINK_LOOP "âÅÓËÏÎÅÞÎÙÊ ÃÉËÌ ÓÉÍ×ÏÌØÎÏÊ ÓÓÙÌËÉ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
156 |
#define ERR_COMPRESSION "ïÛÉÂËÁ (òÁÓ)ÐÁËÏ×ËÉ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
157 |
#define ERR_NOT_IMPLEMENTED "îÅ ÒÅÁÌÉÚÏ×ÁÎÏ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
158 |
#define ERR_OS_ERROR "ïÐÅÒÁÃÉÏÎÎÁÑ ÓÉÓÔÅÍÁ ÓÏÏÂÝÉÌÁ ÏÛÉÂËÕ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
159 |
#define ERR_FILE_EXISTS "æÁÊÌ ÕÖÅ ÓÕÝÅÓÔ×ÕÅÔ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
160 |
#define ERR_NOT_A_FILE "îÅ ÆÁÊÌ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
161 |
#define ERR_NOT_A_DIR "îÅ ËÁÔÁÌÏÇ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
162 |
#define ERR_NOT_AN_ARCHIVE "îÅ ÁÒÈÉ×" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
163 |
#define ERR_CORRUPTED "ðÏ×ÒÅÖÄÅÎÎÙÊ ÁÒÈÉ×" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
164 |
#define ERR_SEEK_OUT_OF_RANGE "ðÏÚÉÃÉÏÎÉÒÏ×ÁÎÉÅ ÚÁ ÐÒÅÄÅÌÙ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
165 |
#define ERR_BAD_FILENAME "îÅ×ÅÒÎÏÅ ÉÍÑ ÆÁÊÌÁ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
166 |
#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
|
167 |
#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
|
168 |
#define ERR_ZLIB_NEED_DICT "zlib: ÎÕÖÅÎ ÓÌÏ×ÁÒØ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
169 |
#define ERR_ZLIB_DATA_ERROR "zlib: ÏÛÉÂËÁ ÄÁÎÎÙÈ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
170 |
#define ERR_ZLIB_MEMORY_ERROR "zlib: ÏÛÉÂËÁ ÐÁÍÑÔÉ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
171 |
#define ERR_ZLIB_BUFFER_ERROR "zlib: ÏÛÉÂËÁ ÂÕÆÅÒÁ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
172 |
#define ERR_ZLIB_VERSION_ERROR "zlib: ÏÛÉÂËÁ ×ÅÒÓÉÉ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
173 |
#define ERR_ZLIB_UNKNOWN_ERROR "zlib: ÎÅÉÚ×ÅÓÔÎÁÑ ÏÛÉÂËÁ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
174 |
#define ERR_SEARCHPATH_TRUNC "ðÕÔØ ÐÏÉÓËÁ ÏÂÒÅÚÁÎ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
175 |
#define ERR_GETMODFN_TRUNC "GetModuleFileName() ÏÂÒÅÚÁÎ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
176 |
#define ERR_GETMODFN_NO_DIR "GetModuleFileName() ÎÅ ÐÏÌÕÞÉÌ ËÁÔÁÌÏÇ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
177 |
#define ERR_DISK_FULL "äÉÓË ÐÏÌÏÎ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
178 |
#define ERR_DIRECTORY_FULL "ëÁÔÁÌÏÇ ÐÏÌÏÎ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
179 |
#define ERR_MACOS_GENERIC "MacOS ÓÏÏÂÝÉÌÁ ÏÛÉÂËÕ (%d)" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
180 |
#define ERR_OS2_GENERIC "OS/2 ÓÏÏÂÝÉÌÁ ÏÛÉÂËÕ (%d)" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
181 |
#define ERR_VOL_LOCKED_HW "ôÏÍ ÂÌÏËÉÒÏ×ÁÎ ÁÐÐÁÒÁÔÎÏ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
182 |
#define ERR_VOL_LOCKED_SW "ôÏÍ ÂÌÏËÉÒÏ×ÁÎ ÐÒÏÇÒÁÍÍÎÏ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
183 |
#define ERR_FILE_LOCKED "æÁÊÌ ÚÁÂÌÏËÉÒÏ×ÁÎ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
184 |
#define ERR_FILE_OR_DIR_BUSY "æÁÊÌ/ËÁÔÁÌÏÇ ÚÁÎÑÔ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
185 |
#define ERR_FILE_ALREADY_OPEN_W "æÁÊÌ ÕÖÅ ÏÔËÒÙÔ ÎÁ ÚÁÐÉÓØ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
186 |
#define ERR_FILE_ALREADY_OPEN_R "æÁÊÌ ÕÖÅ ÏÔËÒÙÔ ÎÁ ÞÔÅÎÉÅ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
187 |
#define ERR_INVALID_REFNUM "îÅ×ÅÒÎÏÅ ËÏÌÉÞÅÓÔ×Ï ÓÓÙÌÏË" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
188 |
#define ERR_GETTING_FILE_POS "ïÛÉÂËÁ ÐÒÉ ÐÏÌÕÞÅÎÉÉ ÐÏÚÉÃÉÉ ÆÁÊÌÁ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
189 |
#define ERR_VOLUME_OFFLINE "ôÏÍ ÏÔÓÏÅÄÉÎÅÎ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
190 |
#define ERR_PERMISSION_DENIED "ïÔËÁÚÁÎÏ × ÒÁÚÒÅÛÅÎÉÉ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
191 |
#define ERR_VOL_ALREADY_ONLINE "ôÏÍ ÕÖÅ ÐÏÄÓÏÅÄÉÎÅÎ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
192 |
#define ERR_NO_SUCH_DRIVE "îÅÔ ÔÁËÏÇÏ ÄÉÓËÁ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
193 |
#define ERR_NOT_MAC_DISK "îÅ ÄÉÓË Macintosh" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
194 |
#define ERR_VOL_EXTERNAL_FS "ôÏÍ ÐÒÉÎÁÄÌÅÖÉÔ ×ÎÅÛÎÅÊ ÆÁÊÌÏ×ÏÊ ÓÉÓÔÅÍÅ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
195 |
#define ERR_PROBLEM_RENAME "ðÒÏÂÌÅÍÁ ÐÒÉ ÐÅÒÅÉÍÅÎÏ×ÁÎÉÉ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
196 |
#define ERR_BAD_MASTER_BLOCK "ðÌÏÈÏÊ ÇÌÁ×ÎÙÊ ÂÌÏË ËÁÔÁÌÏÇÁ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
197 |
#define ERR_CANT_MOVE_FORBIDDEN "ðÏÐÙÔËÁ ÐÅÒÅÍÅÓÔÉÔØ ÚÁÐÒÅÝÅÎÁ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
198 |
#define ERR_WRONG_VOL_TYPE "îÅ×ÅÒÎÙÊ ÔÉÐ ÔÏÍÁ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
199 |
#define ERR_SERVER_VOL_LOST "óÅÒ×ÅÒÎÙÊ ÔÏÍ ÂÙÌ ÏÔÓÏÅÄÉÎÅÎ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
200 |
#define ERR_FILE_ID_NOT_FOUND "éÄÅÎÔÉÆÉËÁÔÏÒ ÆÁÊÌÁ ÎÅ ÎÁÊÄÅÎ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
201 |
#define ERR_FILE_ID_EXISTS "éÄÅÎÔÉÆÉËÁÔÏÒ ÆÁÊÌÁ ÕÖÅ ÓÕÝÅÓÔ×ÕÅÔ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
202 |
#define ERR_SERVER_NO_RESPOND "óÅÒ×ÅÒ ÎÅ ÏÔ×ÅÞÁÅÔ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
203 |
#define ERR_USER_AUTH_FAILED "éÄÅÎÔÉÆÉËÁÃÉÑ ÐÏÌØÚÏ×ÁÔÅÌÑ ÎÅ ÕÄÁÌÁÓØ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
204 |
#define ERR_PWORD_EXPIRED "ðÁÒÏÌØ ÎÁ ÓÅÒ×ÅÒÅ ÕÓÔÁÒÅÌ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
205 |
#define ERR_ACCESS_DENIED "ïÔËÁÚÁÎÏ × ÄÏÓÔÕÐÅ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
206 |
#define ERR_NOT_A_DOS_DISK "îÅ ÄÉÓË DOS" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
207 |
#define ERR_SHARING_VIOLATION "îÁÒÕÛÅÎÉÅ ÓÏ×ÍÅÓÔÎÏÇÏ ÄÏÓÔÕÐÁ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
208 |
#define ERR_CANNOT_MAKE "îÅ ÍÏÇÕ ÓÏÂÒÁÔØ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
209 |
#define ERR_DEV_IN_USE "õÓÔÒÏÊÓÔ×Ï ÕÖÅ ÉÓÐÏÌØÚÕÅÔÓÑ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
210 |
#define ERR_OPEN_FAILED "ïÔËÒÙÔÉÅ ÎÅ ÕÄÁÌÏÓØ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
211 |
#define ERR_PIPE_BUSY "ëÏÎ×ÅÊÅÒ ÚÁÎÑÔ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
212 |
#define ERR_SHARING_BUF_EXCEEDED "òÁÚÄÅÌÑÅÍÙÊ ÂÕÆÅÒ ÐÅÒÅÐÏÌÎÅÎ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
213 |
#define ERR_TOO_MANY_HANDLES "óÌÉÛËÏÍ ÍÎÏÇÏ ÏÔËÒÙÔÙÈ ÄÅÓËÒÉÐÔÏÒÏ×" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
214 |
#define ERR_SEEK_ERROR "ïÛÉÂËÁ ÐÏÚÉÃÉÏÎÉÒÏ×ÁÎÉÑ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
215 |
#define ERR_DEL_CWD "ðÏÐÙÔËÁ ÕÄÁÌÉÔØ ÔÅËÕÝÉÊ ÒÁÂÏÞÉÊ ËÁÔÁÌÏÇ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
216 |
#define ERR_WRITE_PROTECT_ERROR "ïÛÉÂËÁ ÚÁÝÉÔÙ ÚÁÐÉÓÉ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
217 |
#define ERR_WRITE_FAULT "ïÛÉÂËÁ ÚÁÐÉÓÉ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
218 |
#define ERR_LOCK_VIOLATION "îÁÒÕÛÅÎÉÅ ÂÌÏËÉÒÏ×ËÉ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
219 |
#define ERR_GEN_FAILURE "ïÂÝÉÊ ÓÂÏÊ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
220 |
#define ERR_UNCERTAIN_MEDIA "îÅÏÐÒÅÄÅÌÅÎÎÙÊ ÎÏÓÉÔÅÌØ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
221 |
#define ERR_PROT_VIOLATION "îÁÒÕÛÅÎÉÅ ÚÁÝÉÔÙ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
222 |
#define ERR_BROKEN_PIPE "óÌÏÍÁÎÎÙÊ ËÏÎ×ÅÊÅÒ" |
a1cb2bf24ce5
Added Russian translation by Ed Sinjiashvili.
Ryan C. Gordon <icculus@icculus.org>
parents:
427
diff
changeset
|
223 |
|
435
c4daca3b09b9
Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents:
434
diff
changeset
|
224 |
#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
|
225 |
#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
|
226 |
#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
|
227 |
#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
|
228 |
|
c4daca3b09b9
Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents:
434
diff
changeset
|
229 |
#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
|
230 |
#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
|
231 |
#define ERR_INVALID_ARGUMENT "Argumento inválido" |
c4daca3b09b9
Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents:
434
diff
changeset
|
232 |
#define ERR_FILES_STILL_OPEN "Archivos aún abiertos" |
c4daca3b09b9
Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents:
434
diff
changeset
|
233 |
#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
|
234 |
#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
|
235 |
#define ERR_NOT_IN_SEARCH_PATH "No existe tal entrada en la ruta de búsqueda" |
c4daca3b09b9
Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents:
434
diff
changeset
|
236 |
#define ERR_NOT_SUPPORTED "Operación no soportada" |
c4daca3b09b9
Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents:
434
diff
changeset
|
237 |
#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
|
238 |
#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
|
239 |
#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
|
240 |
#define ERR_SYMLINK_DISALLOWED "Los enlaces simbólicos están desactivados" |
c4daca3b09b9
Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents:
434
diff
changeset
|
241 |
#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
|
242 |
#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
|
243 |
#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
|
244 |
#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
|
245 |
#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
|
246 |
#define ERR_ARC_IS_READ_ONLY "El archivo es de sólo lectura" |
c4daca3b09b9
Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents:
434
diff
changeset
|
247 |
#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
|
248 |
#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
|
249 |
#define ERR_SYMLINK_LOOP "Bucle infnito de enlaces simbólicos" |
c4daca3b09b9
Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents:
434
diff
changeset
|
250 |
#define ERR_COMPRESSION "Error de (des)compresión" |
c4daca3b09b9
Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents:
434
diff
changeset
|
251 |
#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
|
252 |
#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
|
253 |
#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
|
254 |
#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
|
255 |
#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
|
256 |
#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
|
257 |
#define ERR_CORRUPTED "Archivo corrupto" |
c4daca3b09b9
Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents:
434
diff
changeset
|
258 |
#define ERR_SEEK_OUT_OF_RANGE "Búsqueda fuera de rango" |
c4daca3b09b9
Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents:
434
diff
changeset
|
259 |
#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
|
260 |
#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
|
261 |
#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
|
262 |
#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
|
263 |
#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
|
264 |
#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
|
265 |
#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
|
266 |
#define ERR_ZLIB_VERSION_ERROR "zlib: error de versión" |
c4daca3b09b9
Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents:
434
diff
changeset
|
267 |
#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
|
268 |
#define ERR_SEARCHPATH_TRUNC "La ruta de búsqueda ha sido truncada" |
c4daca3b09b9
Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents:
434
diff
changeset
|
269 |
#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
|
270 |
#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
|
271 |
#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
|
272 |
#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
|
273 |
#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
|
274 |
#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
|
275 |
#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
|
276 |
#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
|
277 |
#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
|
278 |
#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
|
279 |
#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
|
280 |
#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
|
281 |
#define ERR_INVALID_REFNUM "El número de referencia no es válido" |
c4daca3b09b9
Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents:
434
diff
changeset
|
282 |
#define ERR_GETTING_FILE_POS "Error al tomar la posición del fichero" |
c4daca3b09b9
Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents:
434
diff
changeset
|
283 |
#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
|
284 |
#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
|
285 |
#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
|
286 |
#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
|
287 |
#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
|
288 |
#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
|
289 |
#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
|
290 |
#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
|
291 |
#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
|
292 |
#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
|
293 |
#define ERR_SERVER_VOL_LOST "El servidor de volúmenes ha sido desconectado" |
c4daca3b09b9
Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents:
434
diff
changeset
|
294 |
#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
|
295 |
#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
|
296 |
#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
|
297 |
#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
|
298 |
#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
|
299 |
#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
|
300 |
#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
|
301 |
#define ERR_SHARING_VIOLATION "Violación al compartir" |
c4daca3b09b9
Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents:
434
diff
changeset
|
302 |
#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
|
303 |
#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
|
304 |
#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
|
305 |
#define ERR_PIPE_BUSY "Tubería ocupada" |
c4daca3b09b9
Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents:
434
diff
changeset
|
306 |
#define ERR_SHARING_BUF_EXCEEDED "Buffer de compartición sobrepasado" |
c4daca3b09b9
Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents:
434
diff
changeset
|
307 |
#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
|
308 |
#define ERR_SEEK_ERROR "Error de búsqueda" |
c4daca3b09b9
Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents:
434
diff
changeset
|
309 |
#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
|
310 |
#define ERR_WRITE_PROTECT_ERROR "Error de protección contra escritura" |
c4daca3b09b9
Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents:
434
diff
changeset
|
311 |
#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
|
312 |
#define ERR_LOCK_VIOLATION "Violación del bloqueo" |
c4daca3b09b9
Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents:
434
diff
changeset
|
313 |
#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
|
314 |
#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
|
315 |
#define ERR_PROT_VIOLATION "Violación de la protección" |
c4daca3b09b9
Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents:
434
diff
changeset
|
316 |
#define ERR_BROKEN_PIPE "Tubería rota" |
c4daca3b09b9
Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents:
434
diff
changeset
|
317 |
|
c4daca3b09b9
Spanish translation added by Pedro J. P�rez.
Ryan C. Gordon <icculus@icculus.org>
parents:
434
diff
changeset
|
318 |
|
427
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
422
diff
changeset
|
319 |
#else |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
422
diff
changeset
|
320 |
#error Please define PHYSFS_LANG. |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
422
diff
changeset
|
321 |
#endif |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
422
diff
changeset
|
322 |
|
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
422
diff
changeset
|
323 |
/* end LANG section. */ |
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
422
diff
changeset
|
324 |
|
c38ace41039f
Natural language #defines and build system support.
Ryan C. Gordon <icculus@icculus.org>
parents:
422
diff
changeset
|
325 |
|
15
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
326 |
struct __PHYSFS_DIRHANDLE__; |
11
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
327 |
struct __PHYSFS_FILEFUNCTIONS__; |
9 | 328 |
|
20
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
329 |
|
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
330 |
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
|
331 |
{ |
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
332 |
char *str; |
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
333 |
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
|
334 |
} LinkedStringList; |
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
335 |
|
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
336 |
|
9 | 337 |
typedef struct __PHYSFS_FILEHANDLE__ |
338 |
{ |
|
339 |
/* |
|
340 |
* This is reserved for the driver to store information. |
|
341 |
*/ |
|
342 |
void *opaque; |
|
343 |
||
344 |
/* |
|
11
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
345 |
* 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
|
346 |
*/ |
15
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
347 |
const struct __PHYSFS_DIRHANDLE__ *dirHandle; |
11
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
348 |
|
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
349 |
/* |
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
350 |
* Pointer to the file i/o functions for this filehandle. |
9 | 351 |
*/ |
11
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
352 |
const struct __PHYSFS_FILEFUNCTIONS__ *funcs; |
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
353 |
} FileHandle; |
9 | 354 |
|
11
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
355 |
|
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
356 |
typedef struct __PHYSFS_FILEFUNCTIONS__ |
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
357 |
{ |
9 | 358 |
/* |
359 |
* Read more from the file. |
|
15
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
360 |
* 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
|
361 |
* if complete failure. |
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
362 |
* On failure, call __PHYSFS_setError(). |
9 | 363 |
*/ |
132
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
364 |
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
|
365 |
PHYSFS_uint32 objSize, PHYSFS_uint32 objCount); |
9 | 366 |
|
367 |
/* |
|
368 |
* Write more to the file. Archives don't have to implement this. |
|
369 |
* (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
|
370 |
* 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
|
371 |
* if complete failure. |
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
372 |
* On failure, call __PHYSFS_setError(). |
9 | 373 |
*/ |
132
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
374 |
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
|
375 |
PHYSFS_uint32 objSize, PHYSFS_uint32 objCount); |
9 | 376 |
|
377 |
/* |
|
378 |
* Returns non-zero if at end of file. |
|
379 |
*/ |
|
11
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
380 |
int (*eof)(FileHandle *handle); |
9 | 381 |
|
382 |
/* |
|
383 |
* Returns byte offset from start of file. |
|
384 |
*/ |
|
132
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
385 |
PHYSFS_sint64 (*tell)(FileHandle *handle); |
9 | 386 |
|
387 |
/* |
|
388 |
* Move read/write pointer to byte offset from start of file. |
|
389 |
* 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
|
390 |
* On failure, call __PHYSFS_setError(). |
9 | 391 |
*/ |
132
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
392 |
int (*seek)(FileHandle *handle, PHYSFS_uint64 offset); |
9 | 393 |
|
394 |
/* |
|
28
529214f57d1b
Added PHYSFS_fileLength(). Bleh.
Ryan C. Gordon <icculus@icculus.org>
parents:
23
diff
changeset
|
395 |
* 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
|
396 |
* aren't able to determine. |
529214f57d1b
Added PHYSFS_fileLength(). Bleh.
Ryan C. Gordon <icculus@icculus.org>
parents:
23
diff
changeset
|
397 |
* On failure, call __PHYSFS_setError(). |
529214f57d1b
Added PHYSFS_fileLength(). Bleh.
Ryan C. Gordon <icculus@icculus.org>
parents:
23
diff
changeset
|
398 |
*/ |
132
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
399 |
PHYSFS_sint64 (*fileLength)(FileHandle *handle); |
28
529214f57d1b
Added PHYSFS_fileLength(). Bleh.
Ryan C. Gordon <icculus@icculus.org>
parents:
23
diff
changeset
|
400 |
|
529214f57d1b
Added PHYSFS_fileLength(). Bleh.
Ryan C. Gordon <icculus@icculus.org>
parents:
23
diff
changeset
|
401 |
/* |
11
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
402 |
* 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
|
403 |
* 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
|
404 |
* On failure, call __PHYSFS_setError(). |
9 | 405 |
*/ |
20
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
406 |
int (*fileClose)(FileHandle *handle); |
11
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
407 |
} FileFunctions; |
9 | 408 |
|
409 |
||
15
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
410 |
typedef struct __PHYSFS_DIRHANDLE__ |
9 | 411 |
{ |
412 |
/* |
|
413 |
* This is reserved for the driver to store information. |
|
414 |
*/ |
|
415 |
void *opaque; |
|
416 |
||
417 |
/* |
|
15
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
418 |
* 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
|
419 |
*/ |
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
420 |
const struct __PHYSFS_DIRFUNCTIONS__ *funcs; |
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
421 |
} DirHandle; |
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
422 |
|
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
423 |
|
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
424 |
/* |
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
425 |
* Symlinks should always be followed; PhysicsFS will use |
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
426 |
* 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
|
427 |
* continue to call other methods based on that. |
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
428 |
*/ |
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
429 |
typedef struct __PHYSFS_DIRFUNCTIONS__ |
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
430 |
{ |
399
02dd53688315
Changed DirFunctions struct a little.
Ryan C. Gordon <icculus@icculus.org>
parents:
363
diff
changeset
|
431 |
const PHYSFS_ArchiveInfo *info; |
02dd53688315
Changed DirFunctions struct a little.
Ryan C. Gordon <icculus@icculus.org>
parents:
363
diff
changeset
|
432 |
|
11
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
433 |
/* |
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
434 |
* 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
|
435 |
* 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
|
436 |
* 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
|
437 |
* 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
|
438 |
* element of the search path. |
11
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
439 |
*/ |
15
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
440 |
int (*isArchive)(const char *filename, int forWriting); |
11
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
441 |
|
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
442 |
/* |
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
443 |
* Return a DirHandle for dir/archive (name). |
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
444 |
* 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
|
445 |
* 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
|
446 |
* 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
|
447 |
* element of the search path. |
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
448 |
* 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
|
449 |
*/ |
15
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
450 |
DirHandle *(*openArchive)(const char *name, int forWriting); |
11
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
451 |
|
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
452 |
/* |
12
a4041c91d715
Redesign of enumerateFiles code. More efficient and clean, less memory
Ryan C. Gordon <icculus@icculus.org>
parents:
11
diff
changeset
|
453 |
* 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
|
454 |
* (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
|
455 |
* 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
|
456 |
* 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
|
457 |
* 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
|
458 |
* This dirname is in platform-independent notation. |
9 | 459 |
*/ |
41
ff60d39d0862
Architecture adjustment for enumerating files with regards to whether
Ryan C. Gordon <icculus@icculus.org>
parents:
39
diff
changeset
|
460 |
LinkedStringList *(*enumerateFiles)(DirHandle *r, |
ff60d39d0862
Architecture adjustment for enumerating files with regards to whether
Ryan C. Gordon <icculus@icculus.org>
parents:
39
diff
changeset
|
461 |
const char *dirname, |
ff60d39d0862
Architecture adjustment for enumerating files with regards to whether
Ryan C. Gordon <icculus@icculus.org>
parents:
39
diff
changeset
|
462 |
int omitSymLinks); |
ff60d39d0862
Architecture adjustment for enumerating files with regards to whether
Ryan C. Gordon <icculus@icculus.org>
parents:
39
diff
changeset
|
463 |
|
15
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
464 |
|
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
465 |
/* |
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
466 |
* 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
|
467 |
* 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
|
468 |
*/ |
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
469 |
int (*exists)(DirHandle *r, const char *name); |
9 | 470 |
|
471 |
/* |
|
472 |
* 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
|
473 |
* This filename is in platform-independent notation. |
363
79f155a51527
Added __PHYSFS_addToLinkedStringList().
Ryan C. Gordon <icculus@icculus.org>
parents:
344
diff
changeset
|
474 |
* Symlinks should be followed; if what the symlink points |
79f155a51527
Added __PHYSFS_addToLinkedStringList().
Ryan C. Gordon <icculus@icculus.org>
parents:
344
diff
changeset
|
475 |
* to is missing, or isn't a directory, then the retval is zero. |
9 | 476 |
*/ |
11
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
477 |
int (*isDirectory)(DirHandle *r, const char *name); |
9 | 478 |
|
479 |
/* |
|
480 |
* 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
|
481 |
* This filename is in platform-independent notation. |
9 | 482 |
*/ |
11
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
483 |
int (*isSymLink)(DirHandle *r, const char *name); |
9 | 484 |
|
485 |
/* |
|
240
052041af9001
Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents:
172
diff
changeset
|
486 |
* 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
|
487 |
* 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
|
488 |
* 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
|
489 |
* 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
|
490 |
*/ |
052041af9001
Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents:
172
diff
changeset
|
491 |
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
|
492 |
|
052041af9001
Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents:
172
diff
changeset
|
493 |
/* |
9 | 494 |
* 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
|
495 |
* 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
|
496 |
* 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
|
497 |
* 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
|
498 |
* 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
|
499 |
* Returns NULL on failure, and calls __PHYSFS_setError(). |
9 | 500 |
*/ |
11
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
501 |
FileHandle *(*openRead)(DirHandle *r, const char *filename); |
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
502 |
|
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
503 |
/* |
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
504 |
* 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
|
505 |
* 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
|
506 |
* 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
|
507 |
* 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
|
508 |
* This filename is in platform-independent notation. |
11
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
509 |
* This method may be NULL. |
15
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
510 |
* 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
|
511 |
* 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
|
512 |
* 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
|
513 |
*/ |
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
514 |
FileHandle *(*openWrite)(DirHandle *r, const char *filename); |
9 | 515 |
|
516 |
/* |
|
11
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
517 |
* 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
|
518 |
* 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
|
519 |
* 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
|
520 |
* This filename is in platform-independent notation. |
11
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
521 |
* This method may be NULL. |
15
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
522 |
* 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
|
523 |
* 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
|
524 |
* 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
|
525 |
*/ |
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
526 |
FileHandle *(*openAppend)(DirHandle *r, const char *filename); |
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
527 |
|
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
528 |
/* |
15
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
529 |
* 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
|
530 |
* 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
|
531 |
* 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
|
532 |
* This method may be NULL. |
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
533 |
* On failure, call __PHYSFS_setError(). |
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
534 |
*/ |
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
535 |
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
|
536 |
|
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
537 |
/* |
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
538 |
* 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
|
539 |
* 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
|
540 |
* 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
|
541 |
* your driver. |
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
542 |
* 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
|
543 |
* 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
|
544 |
* This method may be NULL. |
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
545 |
* On failure, call __PHYSFS_setError(). |
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
546 |
*/ |
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
547 |
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
|
548 |
|
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
549 |
/* |
11
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
550 |
* Close directories/archives, and free the handle, including |
9 | 551 |
* 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
|
552 |
* there are still files open from this DirHandle. |
9 | 553 |
*/ |
20
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
554 |
void (*dirClose)(DirHandle *r); |
11
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
555 |
} DirFunctions; |
9 | 556 |
|
557 |
||
558 |
/* |
|
559 |
* Call this to set the message returned by PHYSFS_getLastError(). |
|
560 |
* Please only use the ERR_* constants above, or add new constants to the |
|
561 |
* 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
|
562 |
* |
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
563 |
* Calling this with a NULL argument is a safe no-op. |
9 | 564 |
*/ |
565 |
void __PHYSFS_setError(const char *err); |
|
566 |
||
567 |
||
15
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
568 |
/* |
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
569 |
* 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
|
570 |
* 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
|
571 |
* |
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
572 |
* 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
|
573 |
* __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
|
574 |
* ...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
|
575 |
* |
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
576 |
* 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
|
577 |
* 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
|
578 |
* |
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
579 |
* 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
|
580 |
*/ |
20
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
581 |
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
|
582 |
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
|
583 |
const char *append); |
15
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
584 |
|
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
585 |
/* |
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
586 |
* 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
|
587 |
* 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
|
588 |
* 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
|
589 |
* ".", "..", or ":" are flagged. |
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
590 |
* |
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
591 |
* 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
|
592 |
* 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
|
593 |
*/ |
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
594 |
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
|
595 |
|
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
596 |
|
363
79f155a51527
Added __PHYSFS_addToLinkedStringList().
Ryan C. Gordon <icculus@icculus.org>
parents:
344
diff
changeset
|
597 |
/* |
79f155a51527
Added __PHYSFS_addToLinkedStringList().
Ryan C. Gordon <icculus@icculus.org>
parents:
344
diff
changeset
|
598 |
* 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
|
599 |
* See zip.c for an example of proper use. |
79f155a51527
Added __PHYSFS_addToLinkedStringList().
Ryan C. Gordon <icculus@icculus.org>
parents:
344
diff
changeset
|
600 |
*/ |
79f155a51527
Added __PHYSFS_addToLinkedStringList().
Ryan C. Gordon <icculus@icculus.org>
parents:
344
diff
changeset
|
601 |
LinkedStringList *__PHYSFS_addToLinkedStringList(LinkedStringList *retval, |
79f155a51527
Added __PHYSFS_addToLinkedStringList().
Ryan C. Gordon <icculus@icculus.org>
parents:
344
diff
changeset
|
602 |
LinkedStringList **prev, |
79f155a51527
Added __PHYSFS_addToLinkedStringList().
Ryan C. Gordon <icculus@icculus.org>
parents:
344
diff
changeset
|
603 |
const char *str, |
79f155a51527
Added __PHYSFS_addToLinkedStringList().
Ryan C. Gordon <icculus@icculus.org>
parents:
344
diff
changeset
|
604 |
PHYSFS_sint32 len); |
79f155a51527
Added __PHYSFS_addToLinkedStringList().
Ryan C. Gordon <icculus@icculus.org>
parents:
344
diff
changeset
|
605 |
|
79f155a51527
Added __PHYSFS_addToLinkedStringList().
Ryan C. Gordon <icculus@icculus.org>
parents:
344
diff
changeset
|
606 |
|
79f155a51527
Added __PHYSFS_addToLinkedStringList().
Ryan C. Gordon <icculus@icculus.org>
parents:
344
diff
changeset
|
607 |
|
69
546a95cc5591
Updates, corrections and enhancements to get this ported to win32.
Ryan C. Gordon <icculus@icculus.org>
parents:
49
diff
changeset
|
608 |
/* 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
|
609 |
#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
|
610 |
#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
|
611 |
#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
|
612 |
#define BAIL_IF_MACRO_MUTEX(c, e, m, r) if (c) { __PHYSFS_setError(e); __PHYSFS_platformReleaseMutex(m); return r; } |
9 | 613 |
|
614 |
||
615 |
||
616 |
||
617 |
/*--------------------------------------------------------------------------*/ |
|
618 |
/*--------------------------------------------------------------------------*/ |
|
619 |
/*------------ ----------------*/ |
|
620 |
/*------------ You MUST implement the following functions ----------------*/ |
|
621 |
/*------------ 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
|
622 |
/*------------ (see platform/unix.c for an example) ----------------*/ |
9 | 623 |
/*------------ ----------------*/ |
624 |
/*--------------------------------------------------------------------------*/ |
|
625 |
/*--------------------------------------------------------------------------*/ |
|
626 |
||
627 |
||
628 |
/* |
|
629 |
* The dir separator; "/" on unix, "\\" on win32, ":" on MacOS, etc... |
|
630 |
* Obviously, this isn't a function, but it IS a null-terminated string. |
|
631 |
*/ |
|
15
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
632 |
extern const char *__PHYSFS_platformDirSeparator; |
9 | 633 |
|
130
2deec3eb7430
Added __PHYSFS_platformInit() and __PHYSFS_platformDeinit().
Ryan C. Gordon <icculus@icculus.org>
parents:
126
diff
changeset
|
634 |
|
2deec3eb7430
Added __PHYSFS_platformInit() and __PHYSFS_platformDeinit().
Ryan C. Gordon <icculus@icculus.org>
parents:
126
diff
changeset
|
635 |
/* |
2deec3eb7430
Added __PHYSFS_platformInit() and __PHYSFS_platformDeinit().
Ryan C. Gordon <icculus@icculus.org>
parents:
126
diff
changeset
|
636 |
* 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
|
637 |
* 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
|
638 |
* of Windows you're running. |
2deec3eb7430
Added __PHYSFS_platformInit() and __PHYSFS_platformDeinit().
Ryan C. Gordon <icculus@icculus.org>
parents:
126
diff
changeset
|
639 |
* |
2deec3eb7430
Added __PHYSFS_platformInit() and __PHYSFS_platformDeinit().
Ryan C. Gordon <icculus@icculus.org>
parents:
126
diff
changeset
|
640 |
* 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
|
641 |
* functioning at all), and non-zero otherwise. |
2deec3eb7430
Added __PHYSFS_platformInit() and __PHYSFS_platformDeinit().
Ryan C. Gordon <icculus@icculus.org>
parents:
126
diff
changeset
|
642 |
*/ |
2deec3eb7430
Added __PHYSFS_platformInit() and __PHYSFS_platformDeinit().
Ryan C. Gordon <icculus@icculus.org>
parents:
126
diff
changeset
|
643 |
int __PHYSFS_platformInit(void); |
2deec3eb7430
Added __PHYSFS_platformInit() and __PHYSFS_platformDeinit().
Ryan C. Gordon <icculus@icculus.org>
parents:
126
diff
changeset
|
644 |
|
240
052041af9001
Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents:
172
diff
changeset
|
645 |
|
130
2deec3eb7430
Added __PHYSFS_platformInit() and __PHYSFS_platformDeinit().
Ryan C. Gordon <icculus@icculus.org>
parents:
126
diff
changeset
|
646 |
/* |
2deec3eb7430
Added __PHYSFS_platformInit() and __PHYSFS_platformDeinit().
Ryan C. Gordon <icculus@icculus.org>
parents:
126
diff
changeset
|
647 |
* 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
|
648 |
* 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
|
649 |
* allocated in your platform driver. |
2deec3eb7430
Added __PHYSFS_platformInit() and __PHYSFS_platformDeinit().
Ryan C. Gordon <icculus@icculus.org>
parents:
126
diff
changeset
|
650 |
* |
2deec3eb7430
Added __PHYSFS_platformInit() and __PHYSFS_platformDeinit().
Ryan C. Gordon <icculus@icculus.org>
parents:
126
diff
changeset
|
651 |
* 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
|
652 |
* functioning at all), and non-zero otherwise. |
2deec3eb7430
Added __PHYSFS_platformInit() and __PHYSFS_platformDeinit().
Ryan C. Gordon <icculus@icculus.org>
parents:
126
diff
changeset
|
653 |
*/ |
2deec3eb7430
Added __PHYSFS_platformInit() and __PHYSFS_platformDeinit().
Ryan C. Gordon <icculus@icculus.org>
parents:
126
diff
changeset
|
654 |
int __PHYSFS_platformDeinit(void); |
2deec3eb7430
Added __PHYSFS_platformInit() and __PHYSFS_platformDeinit().
Ryan C. Gordon <icculus@icculus.org>
parents:
126
diff
changeset
|
655 |
|
240
052041af9001
Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents:
172
diff
changeset
|
656 |
|
9 | 657 |
/* |
132
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
658 |
* 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
|
659 |
* 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
|
660 |
* |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
661 |
* 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
|
662 |
* 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
|
663 |
* |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
664 |
* 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
|
665 |
* 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
|
666 |
* conditions in the archivers. |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
667 |
* |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
668 |
* 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
|
669 |
*/ |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
670 |
void *__PHYSFS_platformOpenRead(const char *filename); |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
671 |
|
240
052041af9001
Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents:
172
diff
changeset
|
672 |
|
132
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
673 |
/* |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
674 |
* 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
|
675 |
* 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
|
676 |
* 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
|
677 |
* 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
|
678 |
* |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
679 |
* 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
|
680 |
* 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
|
681 |
* etc. |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
682 |
* |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
683 |
* 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
|
684 |
* |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
685 |
* 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
|
686 |
*/ |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
687 |
void *__PHYSFS_platformOpenWrite(const char *filename); |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
688 |
|
240
052041af9001
Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents:
172
diff
changeset
|
689 |
|
132
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
690 |
/* |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
691 |
* 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
|
692 |
* 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
|
693 |
* 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
|
694 |
* 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
|
695 |
* 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
|
696 |
* |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
697 |
* 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
|
698 |
* 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
|
699 |
* etc. |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
700 |
* |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
701 |
* 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
|
702 |
* |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
703 |
* 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
|
704 |
*/ |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
705 |
void *__PHYSFS_platformOpenAppend(const char *filename); |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
706 |
|
240
052041af9001
Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents:
172
diff
changeset
|
707 |
|
132
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
708 |
/* |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
709 |
* 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
|
710 |
* 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
|
711 |
* 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
|
712 |
* 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
|
713 |
* 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
|
714 |
* 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
|
715 |
* 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
|
716 |
* 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
|
717 |
* 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
|
718 |
*/ |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
719 |
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
|
720 |
PHYSFS_uint32 size, PHYSFS_uint32 count); |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
721 |
|
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
722 |
/* |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
723 |
* 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
|
724 |
* 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
|
725 |
* 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
|
726 |
* 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
|
727 |
* 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
|
728 |
* 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
|
729 |
* __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
|
730 |
* move in such a case. |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
731 |
*/ |
134 | 732 |
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
|
733 |
PHYSFS_uint32 size, PHYSFS_uint32 count); |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
734 |
|
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
735 |
/* |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
736 |
* Set the file pointer to a new position. (opaque) should be cast to |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
737 |
* whatever data type your platform uses. (pos) specifies the number |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
738 |
* of 8-bit bytes to seek to from the start of the file. Seeking past the |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
739 |
* end of the file is an error condition, and you should check for it. |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
740 |
* |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
741 |
* Not all file types can seek; this is to be expected by the caller. |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
742 |
* |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
743 |
* On error, call __PHYSFS_setError() and return zero. On success, return |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
744 |
* a non-zero value. |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
745 |
*/ |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
746 |
int __PHYSFS_platformSeek(void *opaque, PHYSFS_uint64 pos); |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
747 |
|
240
052041af9001
Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents:
172
diff
changeset
|
748 |
|
132
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
749 |
/* |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
750 |
* Get the file pointer's position, in an 8-bit byte offset from the start of |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
751 |
* the file. (opaque) should be cast to whatever data type your platform |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
752 |
* uses. |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
753 |
* |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
754 |
* Not all file types can "tell"; this is to be expected by the caller. |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
755 |
* |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
756 |
* On error, call __PHYSFS_setError() and return zero. On success, return |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
757 |
* a non-zero value. |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
758 |
*/ |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
759 |
PHYSFS_sint64 __PHYSFS_platformTell(void *opaque); |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
760 |
|
240
052041af9001
Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents:
172
diff
changeset
|
761 |
|
132
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
762 |
/* |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
763 |
* Determine the current size of a file, in 8-bit bytes, from an open file. |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
764 |
* |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
765 |
* The caller expects that this information may not be available for all |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
766 |
* file types on all platforms. |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
767 |
* |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
768 |
* Return -1 if you can't do it, and call __PHYSFS_setError(). Otherwise, |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
769 |
* return the file length in 8-bit bytes. |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
770 |
*/ |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
771 |
PHYSFS_sint64 __PHYSFS_platformFileLength(void *handle); |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
772 |
|
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
773 |
/* |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
774 |
* Determine if a file is at EOF. (opaque) should be cast to whatever data |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
775 |
* type your platform uses. |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
776 |
* |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
777 |
* The caller expects that there was a short read before calling this. |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
778 |
* |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
779 |
* Return non-zero if EOF, zero if it is _not_ EOF. |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
780 |
*/ |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
781 |
int __PHYSFS_platformEOF(void *opaque); |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
782 |
|
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
783 |
/* |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
784 |
* Flush any pending writes to disk. (opaque) should be cast to whatever data |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
785 |
* type your platform uses. Be sure to check for errors; the caller expects |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
786 |
* that this function can fail if there was a flushing error, etc. |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
787 |
* |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
788 |
* Return zero on failure, non-zero on success. |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
789 |
*/ |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
790 |
int __PHYSFS_platformFlush(void *opaque); |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
791 |
|
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
792 |
/* |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
793 |
* Flush and close a file. (opaque) should be cast to whatever data type |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
794 |
* your platform uses. Be sure to check for errors when closing; the |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
795 |
* caller expects that this function can fail if there was a flushing |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
796 |
* error, etc. |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
797 |
* |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
798 |
* You should clean up all resources associated with (opaque). |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
799 |
* |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
800 |
* Return zero on failure, non-zero on success. |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
801 |
*/ |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
802 |
int __PHYSFS_platformClose(void *opaque); |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
803 |
|
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
804 |
/* |
9 | 805 |
* Platform implementation of PHYSFS_getCdRomDirs()... |
806 |
* See physfs.h. The retval should be freeable via PHYSFS_freeList(). |
|
807 |
*/ |
|
808 |
char **__PHYSFS_platformDetectAvailableCDs(void); |
|
809 |
||
810 |
/* |
|
811 |
* Calculate the base dir, if your platform needs special consideration. |
|
812 |
* Just return NULL if the standard routines will suffice. (see |
|
813 |
* calculateBaseDir() in physfs.c ...) |
|
814 |
* Caller will free() the retval if it's not NULL. |
|
815 |
*/ |
|
23
bd6ba9c8717c
Initial debugging: dropped PhysicsFS routines into the Build engine,
Ryan C. Gordon <icculus@icculus.org>
parents:
22
diff
changeset
|
816 |
char *__PHYSFS_platformCalcBaseDir(const char *argv0); |
9 | 817 |
|
818 |
/* |
|
819 |
* Get the platform-specific user name. |
|
820 |
* Caller will free() the retval if it's not NULL. If it's NULL, the username |
|
821 |
* will default to "default". |
|
822 |
*/ |
|
823 |
char *__PHYSFS_platformGetUserName(void); |
|
824 |
||
825 |
/* |
|
826 |
* Get the platform-specific user dir. |
|
827 |
* Caller will free() the retval if it's not NULL. If it's NULL, the userdir |
|
828 |
* will default to basedir/username. |
|
829 |
*/ |
|
830 |
char *__PHYSFS_platformGetUserDir(void); |
|
831 |
||
832 |
/* |
|
833 |
* Return a number that uniquely identifies the current thread. |
|
834 |
* On a platform without threading, (1) will suffice. These numbers are |
|
835 |
* arbitrary; the only requirement is that no two threads have the same |
|
836 |
* number. |
|
837 |
*/ |
|
132
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
838 |
PHYSFS_uint64 __PHYSFS_platformGetThreadID(void); |
9 | 839 |
|
840 |
/* |
|
841 |
* This is a pass-through to whatever stricmp() is called on your platform. |
|
842 |
*/ |
|
843 |
int __PHYSFS_platformStricmp(const char *str1, const char *str2); |
|
844 |
||
11
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
845 |
/* |
20
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
846 |
* Return non-zero if filename (in platform-dependent notation) exists. |
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
847 |
* Symlinks should be followed; if what the symlink points to is missing, |
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
848 |
* then the retval is false. |
11
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
849 |
*/ |
20
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
850 |
int __PHYSFS_platformExists(const char *fname); |
11
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
9
diff
changeset
|
851 |
|
15
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
852 |
/* |
240
052041af9001
Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents:
172
diff
changeset
|
853 |
* Return the last modified time (in seconds since the epoch) of a file. |
052041af9001
Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents:
172
diff
changeset
|
854 |
* Returns -1 on failure. (fname) is in platform-dependent notation. |
052041af9001
Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents:
172
diff
changeset
|
855 |
* Symlinks should be followed; if what the symlink points to is missing, |
052041af9001
Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents:
172
diff
changeset
|
856 |
* then the retval is -1. |
052041af9001
Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents:
172
diff
changeset
|
857 |
*/ |
052041af9001
Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents:
172
diff
changeset
|
858 |
PHYSFS_sint64 __PHYSFS_platformGetLastModTime(const char *fname); |
052041af9001
Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents:
172
diff
changeset
|
859 |
|
052041af9001
Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents:
172
diff
changeset
|
860 |
|
052041af9001
Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents:
172
diff
changeset
|
861 |
/* |
15
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
862 |
* Return non-zero if filename (in platform-dependent notation) is a symlink. |
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
863 |
*/ |
20
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
864 |
int __PHYSFS_platformIsSymLink(const char *fname); |
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
865 |
|
240
052041af9001
Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents:
172
diff
changeset
|
866 |
|
20
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
867 |
/* |
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
868 |
* Return non-zero if filename (in platform-dependent notation) is a symlink. |
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
869 |
* Symlinks should be followed; if what the symlink points to is missing, |
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
870 |
* or isn't a directory, then the retval is false. |
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
871 |
*/ |
15
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
872 |
int __PHYSFS_platformIsDirectory(const char *fname); |
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
12
diff
changeset
|
873 |
|
240
052041af9001
Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents:
172
diff
changeset
|
874 |
|
20
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
875 |
/* |
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
876 |
* Convert (dirName) to platform-dependent notation, then prepend (prepend) |
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
877 |
* and append (append) to the converted string. |
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
878 |
* |
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
879 |
* So, on Win32, calling: |
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
880 |
* __PHYSFS_platformCvtToDependent("C:\", "my/files", NULL); |
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
881 |
* ...will return the string "C:\my\files". |
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
882 |
* |
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
883 |
* This can be implemented in a platform-specific manner, so you can get |
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
884 |
* get a speed boost that the default implementation can't, since |
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
885 |
* you can make assumptions about the size of strings, etc.. |
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
886 |
* |
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
887 |
* Platforms that choose not to implement this may just call |
132
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
888 |
* __PHYSFS_convertToDependent() as a passthrough, which may fit the bill |
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
889 |
* already. |
20
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
890 |
* |
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
891 |
* Be sure to free() the return value when done with it. |
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
892 |
*/ |
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
893 |
char *__PHYSFS_platformCvtToDependent(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
|
894 |
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
|
895 |
const char *append); |
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
896 |
|
240
052041af9001
Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents:
172
diff
changeset
|
897 |
|
20
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
898 |
/* |
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
899 |
* Make the current thread give up a timeslice. This is called in a loop |
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
900 |
* while waiting for various external forces to get back to us. |
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
901 |
*/ |
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
902 |
void __PHYSFS_platformTimeslice(void); |
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
903 |
|
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
904 |
|
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
905 |
/* |
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
906 |
* Enumerate a directory of files. This follows the rules for the |
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
907 |
* DirFunctions->enumerateFiles() method (see above), except that the |
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
908 |
* (dirName) that is passed to this function is converted to |
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
909 |
* platform-DEPENDENT notation by the caller. The DirFunctions version |
41
ff60d39d0862
Architecture adjustment for enumerating files with regards to whether
Ryan C. Gordon <icculus@icculus.org>
parents:
39
diff
changeset
|
910 |
* uses platform-independent notation. Note that ".", "..", and other |
ff60d39d0862
Architecture adjustment for enumerating files with regards to whether
Ryan C. Gordon <icculus@icculus.org>
parents:
39
diff
changeset
|
911 |
* metaentries should always be ignored. |
20
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
912 |
*/ |
41
ff60d39d0862
Architecture adjustment for enumerating files with regards to whether
Ryan C. Gordon <icculus@icculus.org>
parents:
39
diff
changeset
|
913 |
LinkedStringList *__PHYSFS_platformEnumerateFiles(const char *dirname, |
ff60d39d0862
Architecture adjustment for enumerating files with regards to whether
Ryan C. Gordon <icculus@icculus.org>
parents:
39
diff
changeset
|
914 |
int omitSymLinks); |
20
efdde0d21521
Implementation compiles and links with no actual archive support. No test
Ryan C. Gordon <icculus@icculus.org>
parents:
19
diff
changeset
|
915 |
|
9 | 916 |
|
28
529214f57d1b
Added PHYSFS_fileLength(). Bleh.
Ryan C. Gordon <icculus@icculus.org>
parents:
23
diff
changeset
|
917 |
/* |
39
bc29e1ee7ef6
Lots of bugfixes, enhancements, and corrections due to the work on
Ryan C. Gordon <icculus@icculus.org>
parents:
30
diff
changeset
|
918 |
* Get the current working directory. The return value should be an |
bc29e1ee7ef6
Lots of bugfixes, enhancements, and corrections due to the work on
Ryan C. Gordon <icculus@icculus.org>
parents:
30
diff
changeset
|
919 |
* absolute path in platform-dependent notation. The caller will deallocate |
bc29e1ee7ef6
Lots of bugfixes, enhancements, and corrections due to the work on
Ryan C. Gordon <icculus@icculus.org>
parents:
30
diff
changeset
|
920 |
* the return value with the standard C runtime free() function when it |
bc29e1ee7ef6
Lots of bugfixes, enhancements, and corrections due to the work on
Ryan C. Gordon <icculus@icculus.org>
parents:
30
diff
changeset
|
921 |
* is done with it. |
bc29e1ee7ef6
Lots of bugfixes, enhancements, and corrections due to the work on
Ryan C. Gordon <icculus@icculus.org>
parents:
30
diff
changeset
|
922 |
* On error, return NULL and set the error message. |
bc29e1ee7ef6
Lots of bugfixes, enhancements, and corrections due to the work on
Ryan C. Gordon <icculus@icculus.org>
parents:
30
diff
changeset
|
923 |
*/ |
bc29e1ee7ef6
Lots of bugfixes, enhancements, and corrections due to the work on
Ryan C. Gordon <icculus@icculus.org>
parents:
30
diff
changeset
|
924 |
char *__PHYSFS_platformCurrentDir(void); |
bc29e1ee7ef6
Lots of bugfixes, enhancements, and corrections due to the work on
Ryan C. Gordon <icculus@icculus.org>
parents:
30
diff
changeset
|
925 |
|
bc29e1ee7ef6
Lots of bugfixes, enhancements, and corrections due to the work on
Ryan C. Gordon <icculus@icculus.org>
parents:
30
diff
changeset
|
926 |
|
bc29e1ee7ef6
Lots of bugfixes, enhancements, and corrections due to the work on
Ryan C. Gordon <icculus@icculus.org>
parents:
30
diff
changeset
|
927 |
/* |
bc29e1ee7ef6
Lots of bugfixes, enhancements, and corrections due to the work on
Ryan C. Gordon <icculus@icculus.org>
parents:
30
diff
changeset
|
928 |
* Get the real physical path to a file. (path) is specified in |
bc29e1ee7ef6
Lots of bugfixes, enhancements, and corrections due to the work on
Ryan C. Gordon <icculus@icculus.org>
parents:
30
diff
changeset
|
929 |
* platform-dependent notation, as should your return value be. |
bc29e1ee7ef6
Lots of bugfixes, enhancements, and corrections due to the work on
Ryan C. Gordon <icculus@icculus.org>
parents:
30
diff
changeset
|
930 |
* All relative paths should be removed, leaving you with an absolute |
bc29e1ee7ef6
Lots of bugfixes, enhancements, and corrections due to the work on
Ryan C. Gordon <icculus@icculus.org>
parents:
30
diff
changeset
|
931 |
* path. Symlinks should be resolved, too, so that the returned value is |
bc29e1ee7ef6
Lots of bugfixes, enhancements, and corrections due to the work on
Ryan C. Gordon <icculus@icculus.org>
parents:
30
diff
changeset
|
932 |
* the most direct path to a file. |
bc29e1ee7ef6
Lots of bugfixes, enhancements, and corrections due to the work on
Ryan C. Gordon <icculus@icculus.org>
parents:
30
diff
changeset
|
933 |
* The return value will be deallocated with the standard C runtime free() |
bc29e1ee7ef6
Lots of bugfixes, enhancements, and corrections due to the work on
Ryan C. Gordon <icculus@icculus.org>
parents:
30
diff
changeset
|
934 |
* function when the caller is done with it. |
bc29e1ee7ef6
Lots of bugfixes, enhancements, and corrections due to the work on
Ryan C. Gordon <icculus@icculus.org>
parents:
30
diff
changeset
|
935 |
* On error, return NULL and set the error message. |
bc29e1ee7ef6
Lots of bugfixes, enhancements, and corrections due to the work on
Ryan C. Gordon <icculus@icculus.org>
parents:
30
diff
changeset
|
936 |
*/ |
bc29e1ee7ef6
Lots of bugfixes, enhancements, and corrections due to the work on
Ryan C. Gordon <icculus@icculus.org>
parents:
30
diff
changeset
|
937 |
char *__PHYSFS_platformRealPath(const char *path); |
bc29e1ee7ef6
Lots of bugfixes, enhancements, and corrections due to the work on
Ryan C. Gordon <icculus@icculus.org>
parents:
30
diff
changeset
|
938 |
|
bc29e1ee7ef6
Lots of bugfixes, enhancements, and corrections due to the work on
Ryan C. Gordon <icculus@icculus.org>
parents:
30
diff
changeset
|
939 |
|
69
546a95cc5591
Updates, corrections and enhancements to get this ported to win32.
Ryan C. Gordon <icculus@icculus.org>
parents:
49
diff
changeset
|
940 |
/* |
546a95cc5591
Updates, corrections and enhancements to get this ported to win32.
Ryan C. Gordon <icculus@icculus.org>
parents:
49
diff
changeset
|
941 |
* Make a directory in the actual filesystem. (path) is specified in |
546a95cc5591
Updates, corrections and enhancements to get this ported to win32.
Ryan C. Gordon <icculus@icculus.org>
parents:
49
diff
changeset
|
942 |
* platform-dependent notation. On error, return zero and set the error |
546a95cc5591
Updates, corrections and enhancements to get this ported to win32.
Ryan C. Gordon <icculus@icculus.org>
parents:
49
diff
changeset
|
943 |
* message. Return non-zero on success. |
546a95cc5591
Updates, corrections and enhancements to get this ported to win32.
Ryan C. Gordon <icculus@icculus.org>
parents:
49
diff
changeset
|
944 |
*/ |
546a95cc5591
Updates, corrections and enhancements to get this ported to win32.
Ryan C. Gordon <icculus@icculus.org>
parents:
49
diff
changeset
|
945 |
int __PHYSFS_platformMkDir(const char *path); |
546a95cc5591
Updates, corrections and enhancements to get this ported to win32.
Ryan C. Gordon <icculus@icculus.org>
parents:
49
diff
changeset
|
946 |
|
240
052041af9001
Added PHYSFS_getLastModTime() API. (Thanks, John Hall!)
Ryan C. Gordon <icculus@icculus.org>
parents:
172
diff
changeset
|
947 |
|
137
66bddb94b6e0
Abstracted file deletion, so we don't rely on C library for it anymore.
Ryan C. Gordon <icculus@icculus.org>
parents:
134
diff
changeset
|
948 |
/* |
66bddb94b6e0
Abstracted file deletion, so we don't rely on C library for it anymore.
Ryan C. Gordon <icculus@icculus.org>
parents:
134
diff
changeset
|
949 |
* Remove a file or directory entry in the actual filesystem. (path) is |
66bddb94b6e0
Abstracted file deletion, so we don't rely on C library for it anymore.
Ryan C. Gordon <icculus@icculus.org>
parents:
134
diff
changeset
|
950 |
* specified in platform-dependent notation. Note that this deletes files |
66bddb94b6e0
Abstracted file deletion, so we don't rely on C library for it anymore.
Ryan C. Gordon <icculus@icculus.org>
parents:
134
diff
changeset
|
951 |
* _and_ directories, so you might need to do some determination. |
66bddb94b6e0
Abstracted file deletion, so we don't rely on C library for it anymore.
Ryan C. Gordon <icculus@icculus.org>
parents:
134
diff
changeset
|
952 |
* Non-empty directories should report an error and not delete themselves |
66bddb94b6e0
Abstracted file deletion, so we don't rely on C library for it anymore.
Ryan C. Gordon <icculus@icculus.org>
parents:
134
diff
changeset
|
953 |
* or their contents. |
66bddb94b6e0
Abstracted file deletion, so we don't rely on C library for it anymore.
Ryan C. Gordon <icculus@icculus.org>
parents:
134
diff
changeset
|
954 |
* |
66bddb94b6e0
Abstracted file deletion, so we don't rely on C library for it anymore.
Ryan C. Gordon <icculus@icculus.org>
parents:
134
diff
changeset
|
955 |
* Deleting a symlink should remove the link, not what it points to. |
66bddb94b6e0
Abstracted file deletion, so we don't rely on C library for it anymore.
Ryan C. Gordon <icculus@icculus.org>
parents:
134
diff
changeset
|
956 |
* |
66bddb94b6e0
Abstracted file deletion, so we don't rely on C library for it anymore.
Ryan C. Gordon <icculus@icculus.org>
parents:
134
diff
changeset
|
957 |
* On error, return zero and set the error message. Return non-zero on success. |
66bddb94b6e0
Abstracted file deletion, so we don't rely on C library for it anymore.
Ryan C. Gordon <icculus@icculus.org>
parents:
134
diff
changeset
|
958 |
*/ |
66bddb94b6e0
Abstracted file deletion, so we don't rely on C library for it anymore.
Ryan C. Gordon <icculus@icculus.org>
parents:
134
diff
changeset
|
959 |
int __PHYSFS_platformDelete(const char *path); |
66bddb94b6e0
Abstracted file deletion, so we don't rely on C library for it anymore.
Ryan C. Gordon <icculus@icculus.org>
parents:
134
diff
changeset
|
960 |
|
66bddb94b6e0
Abstracted file deletion, so we don't rely on C library for it anymore.
Ryan C. Gordon <icculus@icculus.org>
parents:
134
diff
changeset
|
961 |
|
145
d6385584f6c4
First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents:
137
diff
changeset
|
962 |
/* |
d6385584f6c4
First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents:
137
diff
changeset
|
963 |
* Create a platform-specific mutex. This can be whatever datatype your |
d6385584f6c4
First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents:
137
diff
changeset
|
964 |
* platform uses for mutexes, but it is cast to a (void *) for abstractness. |
d6385584f6c4
First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents:
137
diff
changeset
|
965 |
* |
d6385584f6c4
First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents:
137
diff
changeset
|
966 |
* Return (NULL) if you couldn't create one. Systems without threads can |
d6385584f6c4
First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents:
137
diff
changeset
|
967 |
* return any arbitrary non-NULL value. |
d6385584f6c4
First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents:
137
diff
changeset
|
968 |
*/ |
d6385584f6c4
First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents:
137
diff
changeset
|
969 |
void *__PHYSFS_platformCreateMutex(void); |
d6385584f6c4
First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents:
137
diff
changeset
|
970 |
|
d6385584f6c4
First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents:
137
diff
changeset
|
971 |
/* |
d6385584f6c4
First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents:
137
diff
changeset
|
972 |
* Destroy a platform-specific mutex, and clean up any resources associated |
d6385584f6c4
First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents:
137
diff
changeset
|
973 |
* with it. (mutex) is a value previously returned by |
d6385584f6c4
First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents:
137
diff
changeset
|
974 |
* __PHYSFS_platformCreateMutex(). This can be a no-op on single-threaded |
d6385584f6c4
First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents:
137
diff
changeset
|
975 |
* platforms. |
d6385584f6c4
First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents:
137
diff
changeset
|
976 |
*/ |
d6385584f6c4
First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents:
137
diff
changeset
|
977 |
void __PHYSFS_platformDestroyMutex(void *mutex); |
d6385584f6c4
First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents:
137
diff
changeset
|
978 |
|
d6385584f6c4
First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents:
137
diff
changeset
|
979 |
/* |
d6385584f6c4
First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents:
137
diff
changeset
|
980 |
* Grab possession of a platform-specific mutex. Mutexes should be recursive; |
d6385584f6c4
First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents:
137
diff
changeset
|
981 |
* that is, the same thread should be able to call this function multiple |
d6385584f6c4
First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents:
137
diff
changeset
|
982 |
* times in a row without causing a deadlock. This function should block |
d6385584f6c4
First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents:
137
diff
changeset
|
983 |
* until a thread can gain possession of the mutex. |
d6385584f6c4
First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents:
137
diff
changeset
|
984 |
* |
d6385584f6c4
First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents:
137
diff
changeset
|
985 |
* Return non-zero if the mutex was grabbed, zero if there was an |
d6385584f6c4
First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents:
137
diff
changeset
|
986 |
* unrecoverable problem grabbing it (this should not be a matter of |
d6385584f6c4
First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents:
137
diff
changeset
|
987 |
* timing out! We're talking major system errors; block until the mutex |
d6385584f6c4
First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents:
137
diff
changeset
|
988 |
* is available otherwise.) |
156
f45e26b5f398
Added warning about potential infinite recursion between setError and grabMutex.
Ryan C. Gordon <icculus@icculus.org>
parents:
150
diff
changeset
|
989 |
* |
f45e26b5f398
Added warning about potential infinite recursion between setError and grabMutex.
Ryan C. Gordon <icculus@icculus.org>
parents:
150
diff
changeset
|
990 |
* _DO NOT_ call __PHYSFS_setError() in here! Since setError calls this |
f45e26b5f398
Added warning about potential infinite recursion between setError and grabMutex.
Ryan C. Gordon <icculus@icculus.org>
parents:
150
diff
changeset
|
991 |
* function, you'll cause an infinite recursion. This means you can't |
f45e26b5f398
Added warning about potential infinite recursion between setError and grabMutex.
Ryan C. Gordon <icculus@icculus.org>
parents:
150
diff
changeset
|
992 |
* use the BAIL_*MACRO* macros, either. |
145
d6385584f6c4
First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents:
137
diff
changeset
|
993 |
*/ |
d6385584f6c4
First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents:
137
diff
changeset
|
994 |
int __PHYSFS_platformGrabMutex(void *mutex); |
d6385584f6c4
First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents:
137
diff
changeset
|
995 |
|
d6385584f6c4
First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents:
137
diff
changeset
|
996 |
/* |
d6385584f6c4
First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents:
137
diff
changeset
|
997 |
* Relinquish possession of the mutex when this method has been called |
d6385584f6c4
First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents:
137
diff
changeset
|
998 |
* once for each time that platformGrabMutex was called. Once possession has |
d6385584f6c4
First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents:
137
diff
changeset
|
999 |
* been released, the next thread in line to grab the mutex (if any) may |
d6385584f6c4
First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents:
137
diff
changeset
|
1000 |
* proceed. |
156
f45e26b5f398
Added warning about potential infinite recursion between setError and grabMutex.
Ryan C. Gordon <icculus@icculus.org>
parents:
150
diff
changeset
|
1001 |
* |
f45e26b5f398
Added warning about potential infinite recursion between setError and grabMutex.
Ryan C. Gordon <icculus@icculus.org>
parents:
150
diff
changeset
|
1002 |
* _DO NOT_ call __PHYSFS_setError() in here! Since setError calls this |
f45e26b5f398
Added warning about potential infinite recursion between setError and grabMutex.
Ryan C. Gordon <icculus@icculus.org>
parents:
150
diff
changeset
|
1003 |
* function, you'll cause an infinite recursion. This means you can't |
f45e26b5f398
Added warning about potential infinite recursion between setError and grabMutex.
Ryan C. Gordon <icculus@icculus.org>
parents:
150
diff
changeset
|
1004 |
* use the BAIL_*MACRO* macros, either. |
145
d6385584f6c4
First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents:
137
diff
changeset
|
1005 |
*/ |
d6385584f6c4
First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents:
137
diff
changeset
|
1006 |
void __PHYSFS_platformReleaseMutex(void *mutex); |
d6385584f6c4
First shot at thread-safety.
Ryan C. Gordon <icculus@icculus.org>
parents:
137
diff
changeset
|
1007 |
|
9 | 1008 |
#ifdef __cplusplus |
132
b53fa5093749
Added typedefs and platform-specific i/o.
Ryan C. Gordon <icculus@icculus.org>
parents:
130
diff
changeset
|
1009 |
} |
9 | 1010 |
#endif |
1011 |
||
1012 |
#endif |
|
1013 |
||
1014 |
/* end of physfs_internal.h ... */ |
|
1015 |