physfs_internal.h 66 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434
  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. #ifndef _INCLUDE_PHYSFS_INTERNAL_H_
  10. #define _INCLUDE_PHYSFS_INTERNAL_H_
  11. #ifndef __PHYSICSFS_INTERNAL__
  12. #error Do not include this header from your applications.
  13. #endif
  14. #include "physfs.h"
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. /* The LANG section. */
  19. /* please send questions/translations to Ryan: icculus@clutteredmind.org. */
  20. #if (!defined PHYSFS_LANG)
  21. # define PHYSFS_LANG PHYSFS_LANG_ENGLISH
  22. #endif
  23. #define PHYSFS_LANG_ENGLISH 1 /* English by Ryan C. Gordon */
  24. #define PHYSFS_LANG_RUSSIAN_KOI8_R 2 /* Russian by Ed Sinjiashvili */
  25. #define PHYSFS_LANG_RUSSIAN_CP1251 3 /* Russian by Ed Sinjiashvili */
  26. #define PHYSFS_LANG_RUSSIAN_CP866 4 /* Russian by Ed Sinjiashvili */
  27. #define PHYSFS_LANG_RUSSIAN_ISO_8859_5 5 /* Russian by Ed Sinjiashvili */
  28. #define PHYSFS_LANG_SPANISH 6 /* Spanish by Pedro J. Pérez */
  29. #define PHYSFS_LANG_FRENCH 7 /* French by Stéphane Peter */
  30. #if (PHYSFS_LANG == PHYSFS_LANG_ENGLISH)
  31. #define DIR_ARCHIVE_DESCRIPTION "Non-archive, direct filesystem I/O"
  32. #define GRP_ARCHIVE_DESCRIPTION "Build engine Groupfile format"
  33. #define ZIP_ARCHIVE_DESCRIPTION "PkZip/WinZip/Info-Zip compatible"
  34. #define ERR_IS_INITIALIZED "Already initialized"
  35. #define ERR_NOT_INITIALIZED "Not initialized"
  36. #define ERR_INVALID_ARGUMENT "Invalid argument"
  37. #define ERR_FILES_STILL_OPEN "Files still open"
  38. #define ERR_NO_DIR_CREATE "Failed to create directories"
  39. #define ERR_OUT_OF_MEMORY "Out of memory"
  40. #define ERR_NOT_IN_SEARCH_PATH "No such entry in search path"
  41. #define ERR_NOT_SUPPORTED "Operation not supported"
  42. #define ERR_UNSUPPORTED_ARCHIVE "Archive type unsupported"
  43. #define ERR_NOT_A_HANDLE "Not a file handle"
  44. #define ERR_INSECURE_FNAME "Insecure filename"
  45. #define ERR_SYMLINK_DISALLOWED "Symbolic links are disabled"
  46. #define ERR_NO_WRITE_DIR "Write directory is not set"
  47. #define ERR_NO_SUCH_FILE "File not found"
  48. #define ERR_NO_SUCH_PATH "Path not found"
  49. #define ERR_NO_SUCH_VOLUME "Volume not found"
  50. #define ERR_PAST_EOF "Past end of file"
  51. #define ERR_ARC_IS_READ_ONLY "Archive is read-only"
  52. #define ERR_IO_ERROR "I/O error"
  53. #define ERR_CANT_SET_WRITE_DIR "Can't set write directory"
  54. #define ERR_SYMLINK_LOOP "Infinite symbolic link loop"
  55. #define ERR_COMPRESSION "(De)compression error"
  56. #define ERR_NOT_IMPLEMENTED "Not implemented"
  57. #define ERR_OS_ERROR "Operating system reported error"
  58. #define ERR_FILE_EXISTS "File already exists"
  59. #define ERR_NOT_A_FILE "Not a file"
  60. #define ERR_NOT_A_DIR "Not a directory"
  61. #define ERR_NOT_AN_ARCHIVE "Not an archive"
  62. #define ERR_CORRUPTED "Corrupted archive"
  63. #define ERR_SEEK_OUT_OF_RANGE "Seek out of range"
  64. #define ERR_BAD_FILENAME "Bad filename"
  65. #define ERR_PHYSFS_BAD_OS_CALL "(BUG) PhysicsFS made a bad system call"
  66. #define ERR_ARGV0_IS_NULL "argv0 is NULL"
  67. #define ERR_ZLIB_NEED_DICT "zlib: need dictionary"
  68. #define ERR_ZLIB_DATA_ERROR "zlib: data error"
  69. #define ERR_ZLIB_MEMORY_ERROR "zlib: memory error"
  70. #define ERR_ZLIB_BUFFER_ERROR "zlib: buffer error"
  71. #define ERR_ZLIB_VERSION_ERROR "zlib: version error"
  72. #define ERR_ZLIB_UNKNOWN_ERROR "zlib: unknown error"
  73. #define ERR_SEARCHPATH_TRUNC "Search path was truncated"
  74. #define ERR_GETMODFN_TRUNC "GetModuleFileName() was truncated"
  75. #define ERR_GETMODFN_NO_DIR "GetModuleFileName() had no dir"
  76. #define ERR_DISK_FULL "Disk is full"
  77. #define ERR_DIRECTORY_FULL "Directory full"
  78. #define ERR_MACOS_GENERIC "MacOS reported error (%d)"
  79. #define ERR_OS2_GENERIC "OS/2 reported error (%d)"
  80. #define ERR_VOL_LOCKED_HW "Volume is locked through hardware"
  81. #define ERR_VOL_LOCKED_SW "Volume is locked through software"
  82. #define ERR_FILE_LOCKED "File is locked"
  83. #define ERR_FILE_OR_DIR_BUSY "File/directory is busy"
  84. #define ERR_FILE_ALREADY_OPEN_W "File already open for writing"
  85. #define ERR_FILE_ALREADY_OPEN_R "File already open for reading"
  86. #define ERR_INVALID_REFNUM "Invalid reference number"
  87. #define ERR_GETTING_FILE_POS "Error getting file position"
  88. #define ERR_VOLUME_OFFLINE "Volume is offline"
  89. #define ERR_PERMISSION_DENIED "Permission denied"
  90. #define ERR_VOL_ALREADY_ONLINE "Volume already online"
  91. #define ERR_NO_SUCH_DRIVE "No such drive"
  92. #define ERR_NOT_MAC_DISK "Not a Macintosh disk"
  93. #define ERR_VOL_EXTERNAL_FS "Volume belongs to an external filesystem"
  94. #define ERR_PROBLEM_RENAME "Problem during rename"
  95. #define ERR_BAD_MASTER_BLOCK "Bad master directory block"
  96. #define ERR_CANT_MOVE_FORBIDDEN "Attempt to move forbidden"
  97. #define ERR_WRONG_VOL_TYPE "Wrong volume type"
  98. #define ERR_SERVER_VOL_LOST "Server volume has been disconnected"
  99. #define ERR_FILE_ID_NOT_FOUND "File ID not found"
  100. #define ERR_FILE_ID_EXISTS "File ID already exists"
  101. #define ERR_SERVER_NO_RESPOND "Server not responding"
  102. #define ERR_USER_AUTH_FAILED "User authentication failed"
  103. #define ERR_PWORD_EXPIRED "Password has expired on server"
  104. #define ERR_ACCESS_DENIED "Access denied"
  105. #define ERR_NOT_A_DOS_DISK "Not a DOS disk"
  106. #define ERR_SHARING_VIOLATION "Sharing violation"
  107. #define ERR_CANNOT_MAKE "Cannot make"
  108. #define ERR_DEV_IN_USE "Device already in use"
  109. #define ERR_OPEN_FAILED "Open failed"
  110. #define ERR_PIPE_BUSY "Pipe is busy"
  111. #define ERR_SHARING_BUF_EXCEEDED "Sharing buffer exceeded"
  112. #define ERR_TOO_MANY_HANDLES "Too many open handles"
  113. #define ERR_SEEK_ERROR "Seek error"
  114. #define ERR_DEL_CWD "Trying to delete current working directory"
  115. #define ERR_WRITE_PROTECT_ERROR "Write protect error"
  116. #define ERR_WRITE_FAULT "Write fault"
  117. #define ERR_LOCK_VIOLATION "Lock violation"
  118. #define ERR_GEN_FAILURE "General failure"
  119. #define ERR_UNCERTAIN_MEDIA "Uncertain media"
  120. #define ERR_PROT_VIOLATION "Protection violation"
  121. #define ERR_BROKEN_PIPE "Broken pipe"
  122. #elif (PHYSFS_LANG == PHYSFS_LANG_RUSSIAN_KOI8_R)
  123. #define DIR_ARCHIVE_DESCRIPTION "îÅ ÁÒÈÉ×, ÎÅÐÏÓÒÅÄÓÔ×ÅÎÎÙÊ ××ÏÄ/×Ù×ÏÄ ÆÁÊÌÏ×ÏÊ ÓÉÓÔÅÍÙ"
  124. #define GRP_ARCHIVE_DESCRIPTION "æÏÒÍÁÔ ÇÒÕÐÐÏ×ÏÇÏ ÆÁÊÌÁ Build engine"
  125. #define ZIP_ARCHIVE_DESCRIPTION "PkZip/WinZip/Info-Zip ÓÏ×ÍÅÓÔÉÍÙÊ"
  126. #define ERR_IS_INITIALIZED "õÖÅ ÉÎÉÃÉÁÌÉÚÉÒÏ×ÁÎ"
  127. #define ERR_NOT_INITIALIZED "îÅ ÉÎÉÃÉÁÌÉÚÉÒÏ×ÁÎ"
  128. #define ERR_INVALID_ARGUMENT "îÅ×ÅÒÎÙÊ ÁÒÇÕÍÅÎÔ"
  129. #define ERR_FILES_STILL_OPEN "æÁÊÌÙ ÅÝÅ ÏÔËÒÙÔÙ"
  130. #define ERR_NO_DIR_CREATE "îÅ ÍÏÇÕ ÓÏÚÄÁÔØ ËÁÔÁÌÏÇÉ"
  131. #define ERR_OUT_OF_MEMORY "ëÏÎÞÉÌÁÓØ ÐÁÍÑÔØ"
  132. #define ERR_NOT_IN_SEARCH_PATH "îÅÔ ÔÁËÏÇÏ ÜÌÅÍÅÎÔÁ × ÐÕÔÉ ÐÏÉÓËÁ"
  133. #define ERR_NOT_SUPPORTED "ïÐÅÒÁÃÉÑ ÎÅ ÐÏÄÄÅÒÖÉ×ÁÅÔÓÑ"
  134. #define ERR_UNSUPPORTED_ARCHIVE "áÒÈÉ×Ù ÔÁËÏÇÏ ÔÉÐÁ ÎÅ ÐÏÄÄÅÒÖÉ×ÁÀÔÓÑ"
  135. #define ERR_NOT_A_HANDLE "îÅ ÆÁÊÌÏ×ÙÊ ÄÅÓËÒÉÐÔÏÒ"
  136. #define ERR_INSECURE_FNAME "îÅÂÅÚÏÐÁÓÎÏÅ ÉÍÑ ÆÁÊÌÁ"
  137. #define ERR_SYMLINK_DISALLOWED "óÉÍ×ÏÌØÎÙÅ ÓÓÙÌËÉ ÏÔËÌÀÞÅÎÙ"
  138. #define ERR_NO_WRITE_DIR "ëÁÔÁÌÏÇ ÄÌÑ ÚÁÐÉÓÉ ÎÅ ÕÓÔÁÎÏ×ÌÅÎ"
  139. #define ERR_NO_SUCH_FILE "æÁÊÌ ÎÅ ÎÁÊÄÅÎ"
  140. #define ERR_NO_SUCH_PATH "ðÕÔØ ÎÅ ÎÁÊÄÅÎ"
  141. #define ERR_NO_SUCH_VOLUME "ôÏÍ ÎÅ ÎÁÊÄÅÎ"
  142. #define ERR_PAST_EOF "úÁ ËÏÎÃÏÍ ÆÁÊÌÁ"
  143. #define ERR_ARC_IS_READ_ONLY "áÒÈÉ× ÔÏÌØËÏ ÄÌÑ ÞÔÅÎÉÑ"
  144. #define ERR_IO_ERROR "ïÛÉÂËÁ ××ÏÄÁ/×Ù×ÏÄÁ"
  145. #define ERR_CANT_SET_WRITE_DIR "îÅ ÍÏÇÕ ÕÓÔÁÎÏ×ÉÔØ ËÁÔÁÌÏÇ ÄÌÑ ÚÁÐÉÓÉ"
  146. #define ERR_SYMLINK_LOOP "âÅÓËÏÎÅÞÎÙÊ ÃÉËÌ ÓÉÍ×ÏÌØÎÏÊ ÓÓÙÌËÉ"
  147. #define ERR_COMPRESSION "ïÛÉÂËÁ (òÁÓ)ÐÁËÏ×ËÉ"
  148. #define ERR_NOT_IMPLEMENTED "îÅ ÒÅÁÌÉÚÏ×ÁÎÏ"
  149. #define ERR_OS_ERROR "ïÐÅÒÁÃÉÏÎÎÁÑ ÓÉÓÔÅÍÁ ÓÏÏÂÝÉÌÁ ÏÛÉÂËÕ"
  150. #define ERR_FILE_EXISTS "æÁÊÌ ÕÖÅ ÓÕÝÅÓÔ×ÕÅÔ"
  151. #define ERR_NOT_A_FILE "îÅ ÆÁÊÌ"
  152. #define ERR_NOT_A_DIR "îÅ ËÁÔÁÌÏÇ"
  153. #define ERR_NOT_AN_ARCHIVE "îÅ ÁÒÈÉ×"
  154. #define ERR_CORRUPTED "ðÏ×ÒÅÖÄÅÎÎÙÊ ÁÒÈÉ×"
  155. #define ERR_SEEK_OUT_OF_RANGE "ðÏÚÉÃÉÏÎÉÒÏ×ÁÎÉÅ ÚÁ ÐÒÅÄÅÌÙ"
  156. #define ERR_BAD_FILENAME "îÅ×ÅÒÎÏÅ ÉÍÑ ÆÁÊÌÁ"
  157. #define ERR_PHYSFS_BAD_OS_CALL "(BUG) PhysicsFS ×ÙÐÏÌÎÉÌÁ ÎÅ×ÅÒÎÙÊ ÓÉÓÔÅÍÎÙÊ ×ÙÚÏ×"
  158. #define ERR_ARGV0_IS_NULL "argv0 is NULL"
  159. #define ERR_ZLIB_NEED_DICT "zlib: ÎÕÖÅÎ ÓÌÏ×ÁÒØ"
  160. #define ERR_ZLIB_DATA_ERROR "zlib: ÏÛÉÂËÁ ÄÁÎÎÙÈ"
  161. #define ERR_ZLIB_MEMORY_ERROR "zlib: ÏÛÉÂËÁ ÐÁÍÑÔÉ"
  162. #define ERR_ZLIB_BUFFER_ERROR "zlib: ÏÛÉÂËÁ ÂÕÆÅÒÁ"
  163. #define ERR_ZLIB_VERSION_ERROR "zlib: ÏÛÉÂËÁ ×ÅÒÓÉÉ"
  164. #define ERR_ZLIB_UNKNOWN_ERROR "zlib: ÎÅÉÚ×ÅÓÔÎÁÑ ÏÛÉÂËÁ"
  165. #define ERR_SEARCHPATH_TRUNC "ðÕÔØ ÐÏÉÓËÁ ÏÂÒÅÚÁÎ"
  166. #define ERR_GETMODFN_TRUNC "GetModuleFileName() ÏÂÒÅÚÁÎ"
  167. #define ERR_GETMODFN_NO_DIR "GetModuleFileName() ÎÅ ÐÏÌÕÞÉÌ ËÁÔÁÌÏÇ"
  168. #define ERR_DISK_FULL "äÉÓË ÐÏÌÏÎ"
  169. #define ERR_DIRECTORY_FULL "ëÁÔÁÌÏÇ ÐÏÌÏÎ"
  170. #define ERR_MACOS_GENERIC "MacOS ÓÏÏÂÝÉÌÁ ÏÛÉÂËÕ (%d)"
  171. #define ERR_OS2_GENERIC "OS/2 ÓÏÏÂÝÉÌÁ ÏÛÉÂËÕ (%d)"
  172. #define ERR_VOL_LOCKED_HW "ôÏÍ ÂÌÏËÉÒÏ×ÁÎ ÁÐÐÁÒÁÔÎÏ"
  173. #define ERR_VOL_LOCKED_SW "ôÏÍ ÂÌÏËÉÒÏ×ÁÎ ÐÒÏÇÒÁÍÍÎÏ"
  174. #define ERR_FILE_LOCKED "æÁÊÌ ÚÁÂÌÏËÉÒÏ×ÁÎ"
  175. #define ERR_FILE_OR_DIR_BUSY "æÁÊÌ/ËÁÔÁÌÏÇ ÚÁÎÑÔ"
  176. #define ERR_FILE_ALREADY_OPEN_W "æÁÊÌ ÕÖÅ ÏÔËÒÙÔ ÎÁ ÚÁÐÉÓØ"
  177. #define ERR_FILE_ALREADY_OPEN_R "æÁÊÌ ÕÖÅ ÏÔËÒÙÔ ÎÁ ÞÔÅÎÉÅ"
  178. #define ERR_INVALID_REFNUM "îÅ×ÅÒÎÏÅ ËÏÌÉÞÅÓÔ×Ï ÓÓÙÌÏË"
  179. #define ERR_GETTING_FILE_POS "ïÛÉÂËÁ ÐÒÉ ÐÏÌÕÞÅÎÉÉ ÐÏÚÉÃÉÉ ÆÁÊÌÁ"
  180. #define ERR_VOLUME_OFFLINE "ôÏÍ ÏÔÓÏÅÄÉÎÅÎ"
  181. #define ERR_PERMISSION_DENIED "ïÔËÁÚÁÎÏ × ÒÁÚÒÅÛÅÎÉÉ"
  182. #define ERR_VOL_ALREADY_ONLINE "ôÏÍ ÕÖÅ ÐÏÄÓÏÅÄÉÎÅÎ"
  183. #define ERR_NO_SUCH_DRIVE "îÅÔ ÔÁËÏÇÏ ÄÉÓËÁ"
  184. #define ERR_NOT_MAC_DISK "îÅ ÄÉÓË Macintosh"
  185. #define ERR_VOL_EXTERNAL_FS "ôÏÍ ÐÒÉÎÁÄÌÅÖÉÔ ×ÎÅÛÎÅÊ ÆÁÊÌÏ×ÏÊ ÓÉÓÔÅÍÅ"
  186. #define ERR_PROBLEM_RENAME "ðÒÏÂÌÅÍÁ ÐÒÉ ÐÅÒÅÉÍÅÎÏ×ÁÎÉÉ"
  187. #define ERR_BAD_MASTER_BLOCK "ðÌÏÈÏÊ ÇÌÁ×ÎÙÊ ÂÌÏË ËÁÔÁÌÏÇÁ"
  188. #define ERR_CANT_MOVE_FORBIDDEN "ðÏÐÙÔËÁ ÐÅÒÅÍÅÓÔÉÔØ ÚÁÐÒÅÝÅÎÁ"
  189. #define ERR_WRONG_VOL_TYPE "îÅ×ÅÒÎÙÊ ÔÉÐ ÔÏÍÁ"
  190. #define ERR_SERVER_VOL_LOST "óÅÒ×ÅÒÎÙÊ ÔÏÍ ÂÙÌ ÏÔÓÏÅÄÉÎÅÎ"
  191. #define ERR_FILE_ID_NOT_FOUND "éÄÅÎÔÉÆÉËÁÔÏÒ ÆÁÊÌÁ ÎÅ ÎÁÊÄÅÎ"
  192. #define ERR_FILE_ID_EXISTS "éÄÅÎÔÉÆÉËÁÔÏÒ ÆÁÊÌÁ ÕÖÅ ÓÕÝÅÓÔ×ÕÅÔ"
  193. #define ERR_SERVER_NO_RESPOND "óÅÒ×ÅÒ ÎÅ ÏÔ×ÅÞÁÅÔ"
  194. #define ERR_USER_AUTH_FAILED "éÄÅÎÔÉÆÉËÁÃÉÑ ÐÏÌØÚÏ×ÁÔÅÌÑ ÎÅ ÕÄÁÌÁÓØ"
  195. #define ERR_PWORD_EXPIRED "ðÁÒÏÌØ ÎÁ ÓÅÒ×ÅÒÅ ÕÓÔÁÒÅÌ"
  196. #define ERR_ACCESS_DENIED "ïÔËÁÚÁÎÏ × ÄÏÓÔÕÐÅ"
  197. #define ERR_NOT_A_DOS_DISK "îÅ ÄÉÓË DOS"
  198. #define ERR_SHARING_VIOLATION "îÁÒÕÛÅÎÉÅ ÓÏ×ÍÅÓÔÎÏÇÏ ÄÏÓÔÕÐÁ"
  199. #define ERR_CANNOT_MAKE "îÅ ÍÏÇÕ ÓÏÂÒÁÔØ"
  200. #define ERR_DEV_IN_USE "õÓÔÒÏÊÓÔ×Ï ÕÖÅ ÉÓÐÏÌØÚÕÅÔÓÑ"
  201. #define ERR_OPEN_FAILED "ïÔËÒÙÔÉÅ ÎÅ ÕÄÁÌÏÓØ"
  202. #define ERR_PIPE_BUSY "ëÏÎ×ÅÊÅÒ ÚÁÎÑÔ"
  203. #define ERR_SHARING_BUF_EXCEEDED "òÁÚÄÅÌÑÅÍÙÊ ÂÕÆÅÒ ÐÅÒÅÐÏÌÎÅÎ"
  204. #define ERR_TOO_MANY_HANDLES "óÌÉÛËÏÍ ÍÎÏÇÏ ÏÔËÒÙÔÙÈ ÄÅÓËÒÉÐÔÏÒÏ×"
  205. #define ERR_SEEK_ERROR "ïÛÉÂËÁ ÐÏÚÉÃÉÏÎÉÒÏ×ÁÎÉÑ"
  206. #define ERR_DEL_CWD "ðÏÐÙÔËÁ ÕÄÁÌÉÔØ ÔÅËÕÝÉÊ ÒÁÂÏÞÉÊ ËÁÔÁÌÏÇ"
  207. #define ERR_WRITE_PROTECT_ERROR "ïÛÉÂËÁ ÚÁÝÉÔÙ ÚÁÐÉÓÉ"
  208. #define ERR_WRITE_FAULT "ïÛÉÂËÁ ÚÁÐÉÓÉ"
  209. #define ERR_LOCK_VIOLATION "îÁÒÕÛÅÎÉÅ ÂÌÏËÉÒÏ×ËÉ"
  210. #define ERR_GEN_FAILURE "ïÂÝÉÊ ÓÂÏÊ"
  211. #define ERR_UNCERTAIN_MEDIA "îÅÏÐÒÅÄÅÌÅÎÎÙÊ ÎÏÓÉÔÅÌØ"
  212. #define ERR_PROT_VIOLATION "îÁÒÕÛÅÎÉÅ ÚÁÝÉÔÙ"
  213. #define ERR_BROKEN_PIPE "óÌÏÍÁÎÎÙÊ ËÏÎ×ÅÊÅÒ"
  214. #elif (PHYSFS_LANG == PHYSFS_LANG_RUSSIAN_CP1251)
  215. #define DIR_ARCHIVE_DESCRIPTION "Íå àðõèâ, íåïîñðåäñòâåííûé ââîä/âûâîä ôàéëîâîé ñèñòåìû"
  216. #define GRP_ARCHIVE_DESCRIPTION "Ôîðìàò ãðóïïîâîãî ôàéëà Build engine"
  217. #define ZIP_ARCHIVE_DESCRIPTION "PkZip/WinZip/Info-Zip ñîâìåñòèìûé"
  218. #define ERR_IS_INITIALIZED "Óæå èíèöèàëèçèðîâàí"
  219. #define ERR_NOT_INITIALIZED "Íå èíèöèàëèçèðîâàí"
  220. #define ERR_INVALID_ARGUMENT "Íåâåðíûé àðãóìåíò"
  221. #define ERR_FILES_STILL_OPEN "Ôàéëû åùå îòêðûòû"
  222. #define ERR_NO_DIR_CREATE "Íå ìîãó ñîçäàòü êàòàëîãè"
  223. #define ERR_OUT_OF_MEMORY "Êîí÷èëàñü ïàìÿòü"
  224. #define ERR_NOT_IN_SEARCH_PATH "Íåò òàêîãî ýëåìåíòà â ïóòè ïîèñêà"
  225. #define ERR_NOT_SUPPORTED "Îïåðàöèÿ íå ïîääåðæèâàåòñÿ"
  226. #define ERR_UNSUPPORTED_ARCHIVE "Àðõèâû òàêîãî òèïà íå ïîääåðæèâàþòñÿ"
  227. #define ERR_NOT_A_HANDLE "Íå ôàéëîâûé äåñêðèïòîð"
  228. #define ERR_INSECURE_FNAME "Íåáåçîïàñíîå èìÿ ôàéëà"
  229. #define ERR_SYMLINK_DISALLOWED "Ñèìâîëüíûå ññûëêè îòêëþ÷åíû"
  230. #define ERR_NO_WRITE_DIR "Êàòàëîã äëÿ çàïèñè íå óñòàíîâëåí"
  231. #define ERR_NO_SUCH_FILE "Ôàéë íå íàéäåí"
  232. #define ERR_NO_SUCH_PATH "Ïóòü íå íàéäåí"
  233. #define ERR_NO_SUCH_VOLUME "Òîì íå íàéäåí"
  234. #define ERR_PAST_EOF "Çà êîíöîì ôàéëà"
  235. #define ERR_ARC_IS_READ_ONLY "Àðõèâ òîëüêî äëÿ ÷òåíèÿ"
  236. #define ERR_IO_ERROR "Îøèáêà ââîäà/âûâîäà"
  237. #define ERR_CANT_SET_WRITE_DIR "Íå ìîãó óñòàíîâèòü êàòàëîã äëÿ çàïèñè"
  238. #define ERR_SYMLINK_LOOP "Áåñêîíå÷íûé öèêë ñèìâîëüíîé ññûëêè"
  239. #define ERR_COMPRESSION "Îøèáêà (Ðàñ)ïàêîâêè"
  240. #define ERR_NOT_IMPLEMENTED "Íå ðåàëèçîâàíî"
  241. #define ERR_OS_ERROR "Îïåðàöèîííàÿ ñèñòåìà ñîîáùèëà îøèáêó"
  242. #define ERR_FILE_EXISTS "Ôàéë óæå ñóùåñòâóåò"
  243. #define ERR_NOT_A_FILE "Íå ôàéë"
  244. #define ERR_NOT_A_DIR "Íå êàòàëîã"
  245. #define ERR_NOT_AN_ARCHIVE "Íå àðõèâ"
  246. #define ERR_CORRUPTED "Ïîâðåæäåííûé àðõèâ"
  247. #define ERR_SEEK_OUT_OF_RANGE "Ïîçèöèîíèðîâàíèå çà ïðåäåëû"
  248. #define ERR_BAD_FILENAME "Íåâåðíîå èìÿ ôàéëà"
  249. #define ERR_PHYSFS_BAD_OS_CALL "(BUG) PhysicsFS âûïîëíèëà íåâåðíûé ñèñòåìíûé âûçîâ"
  250. #define ERR_ARGV0_IS_NULL "argv0 is NULL"
  251. #define ERR_ZLIB_NEED_DICT "zlib: íóæåí ñëîâàðü"
  252. #define ERR_ZLIB_DATA_ERROR "zlib: îøèáêà äàííûõ"
  253. #define ERR_ZLIB_MEMORY_ERROR "zlib: îøèáêà ïàìÿòè"
  254. #define ERR_ZLIB_BUFFER_ERROR "zlib: îøèáêà áóôåðà"
  255. #define ERR_ZLIB_VERSION_ERROR "zlib: îøèáêà âåðñèè"
  256. #define ERR_ZLIB_UNKNOWN_ERROR "zlib: íåèçâåñòíàÿ îøèáêà"
  257. #define ERR_SEARCHPATH_TRUNC "Ïóòü ïîèñêà îáðåçàí"
  258. #define ERR_GETMODFN_TRUNC "GetModuleFileName() îáðåçàí"
  259. #define ERR_GETMODFN_NO_DIR "GetModuleFileName() íå ïîëó÷èë êàòàëîã"
  260. #define ERR_DISK_FULL "Äèñê ïîëîí"
  261. #define ERR_DIRECTORY_FULL "Êàòàëîã ïîëîí"
  262. #define ERR_MACOS_GENERIC "MacOS ñîîáùèëà îøèáêó (%d)"
  263. #define ERR_OS2_GENERIC "OS/2 ñîîáùèëà îøèáêó (%d)"
  264. #define ERR_VOL_LOCKED_HW "Òîì áëîêèðîâàí àïïàðàòíî"
  265. #define ERR_VOL_LOCKED_SW "Òîì áëîêèðîâàí ïðîãðàììíî"
  266. #define ERR_FILE_LOCKED "Ôàéë çàáëîêèðîâàí"
  267. #define ERR_FILE_OR_DIR_BUSY "Ôàéë/êàòàëîã çàíÿò"
  268. #define ERR_FILE_ALREADY_OPEN_W "Ôàéë óæå îòêðûò íà çàïèñü"
  269. #define ERR_FILE_ALREADY_OPEN_R "Ôàéë óæå îòêðûò íà ÷òåíèå"
  270. #define ERR_INVALID_REFNUM "Íåâåðíîå êîëè÷åñòâî ññûëîê"
  271. #define ERR_GETTING_FILE_POS "Îøèáêà ïðè ïîëó÷åíèè ïîçèöèè ôàéëà"
  272. #define ERR_VOLUME_OFFLINE "Òîì îòñîåäèíåí"
  273. #define ERR_PERMISSION_DENIED "Îòêàçàíî â ðàçðåøåíèè"
  274. #define ERR_VOL_ALREADY_ONLINE "Òîì óæå ïîäñîåäèíåí"
  275. #define ERR_NO_SUCH_DRIVE "Íåò òàêîãî äèñêà"
  276. #define ERR_NOT_MAC_DISK "Íå äèñê Macintosh"
  277. #define ERR_VOL_EXTERNAL_FS "Òîì ïðèíàäëåæèò âíåøíåé ôàéëîâîé ñèñòåìå"
  278. #define ERR_PROBLEM_RENAME "Ïðîáëåìà ïðè ïåðåèìåíîâàíèè"
  279. #define ERR_BAD_MASTER_BLOCK "Ïëîõîé ãëàâíûé áëîê êàòàëîãà"
  280. #define ERR_CANT_MOVE_FORBIDDEN "Ïîïûòêà ïåðåìåñòèòü çàïðåùåíà"
  281. #define ERR_WRONG_VOL_TYPE "Íåâåðíûé òèï òîìà"
  282. #define ERR_SERVER_VOL_LOST "Ñåðâåðíûé òîì áûë îòñîåäèíåí"
  283. #define ERR_FILE_ID_NOT_FOUND "Èäåíòèôèêàòîð ôàéëà íå íàéäåí"
  284. #define ERR_FILE_ID_EXISTS "Èäåíòèôèêàòîð ôàéëà óæå ñóùåñòâóåò"
  285. #define ERR_SERVER_NO_RESPOND "Ñåðâåð íå îòâå÷àåò"
  286. #define ERR_USER_AUTH_FAILED "Èäåíòèôèêàöèÿ ïîëüçîâàòåëÿ íå óäàëàñü"
  287. #define ERR_PWORD_EXPIRED "Ïàðîëü íà ñåðâåðå óñòàðåë"
  288. #define ERR_ACCESS_DENIED "Îòêàçàíî â äîñòóïå"
  289. #define ERR_NOT_A_DOS_DISK "Íå äèñê DOS"
  290. #define ERR_SHARING_VIOLATION "Íàðóøåíèå ñîâìåñòíîãî äîñòóïà"
  291. #define ERR_CANNOT_MAKE "Íå ìîãó ñîáðàòü"
  292. #define ERR_DEV_IN_USE "Óñòðîéñòâî óæå èñïîëüçóåòñÿ"
  293. #define ERR_OPEN_FAILED "Îòêðûòèå íå óäàëîñü"
  294. #define ERR_PIPE_BUSY "Êîíâåéåð çàíÿò"
  295. #define ERR_SHARING_BUF_EXCEEDED "Ðàçäåëÿåìûé áóôåð ïåðåïîëíåí"
  296. #define ERR_TOO_MANY_HANDLES "Ñëèøêîì ìíîãî îòêðûòûõ äåñêðèïòîðîâ"
  297. #define ERR_SEEK_ERROR "Îøèáêà ïîçèöèîíèðîâàíèÿ"
  298. #define ERR_DEL_CWD "Ïîïûòêà óäàëèòü òåêóùèé ðàáî÷èé êàòàëîã"
  299. #define ERR_WRITE_PROTECT_ERROR "Îøèáêà çàùèòû çàïèñè"
  300. #define ERR_WRITE_FAULT "Îøèáêà çàïèñè"
  301. #define ERR_LOCK_VIOLATION "Íàðóøåíèå áëîêèðîâêè"
  302. #define ERR_GEN_FAILURE "Îáùèé ñáîé"
  303. #define ERR_UNCERTAIN_MEDIA "Íåîïðåäåëåííûé íîñèòåëü"
  304. #define ERR_PROT_VIOLATION "Íàðóøåíèå çàùèòû"
  305. #define ERR_BROKEN_PIPE "Ñëîìàííûé êîíâåéåð"
  306. #elif (PHYSFS_LANG == PHYSFS_LANG_RUSSIAN_CP866)
  307. #define DIR_ARCHIVE_DESCRIPTION "�¥  à娢, ­¥¯®á।á⢥­­ë© ¢¢®¤/¢ë¢®¤ ä ©«®¢®© á¨á⥬ë"
  308. #define GRP_ARCHIVE_DESCRIPTION "”®à¬ â £à㯯®¢®£® ä ©«  Build engine"
  309. #define ZIP_ARCHIVE_DESCRIPTION "PkZip/WinZip/Info-Zip ᮢ¬¥á⨬ë©"
  310. #define ERR_IS_INITIALIZED "“¦¥ ¨­¨æ¨ «¨§¨à®¢ ­"
  311. #define ERR_NOT_INITIALIZED "�¥ ¨­¨æ¨ «¨§¨à®¢ ­"
  312. #define ERR_INVALID_ARGUMENT "�¥¢¥à­ë©  à£ã¬¥­â"
  313. #define ERR_FILES_STILL_OPEN "” ©«ë ¥é¥ ®âªàëâë"
  314. #define ERR_NO_DIR_CREATE "�¥ ¬®£ã á®§¤ âì ª â «®£¨"
  315. #define ERR_OUT_OF_MEMORY "Š®­ç¨« áì ¯ ¬ïâì"
  316. #define ERR_NOT_IN_SEARCH_PATH "�¥â â ª®£® í«¥¬¥­â  ¢ ¯ã⨠¯®¨áª "
  317. #define ERR_NOT_SUPPORTED "ޝ¥à æ¨ï ­¥ ¯®¤¤¥à¦¨¢ ¥âáï"
  318. #define ERR_UNSUPPORTED_ARCHIVE "€à娢ë â ª®£® ⨯  ­¥ ¯®¤¤¥à¦¨¢ îâáï"
  319. #define ERR_NOT_A_HANDLE "�¥ ä ©«®¢ë© ¤¥áªà¨¯â®à"
  320. #define ERR_INSECURE_FNAME "�¥¡¥§®¯ á­®¥ ¨¬ï ä ©« "
  321. #define ERR_SYMLINK_DISALLOWED "‘¨¬¢®«ì­ë¥ áá뫪¨ ®âª«î祭ë"
  322. #define ERR_NO_WRITE_DIR "Š â «®£ ¤«ï § ¯¨á¨ ­¥ ãáâ ­®¢«¥­"
  323. #define ERR_NO_SUCH_FILE "” ©« ­¥ ­ ©¤¥­"
  324. #define ERR_NO_SUCH_PATH "�ãâì ­¥ ­ ©¤¥­"
  325. #define ERR_NO_SUCH_VOLUME "’®¬ ­¥ ­ ©¤¥­"
  326. #define ERR_PAST_EOF "‡  ª®­æ®¬ ä ©« "
  327. #define ERR_ARC_IS_READ_ONLY "€à娢 ⮫쪮 ¤«ï ç⥭¨ï"
  328. #define ERR_IO_ERROR "Žè¨¡ª  ¢¢®¤ /¢ë¢®¤ "
  329. #define ERR_CANT_SET_WRITE_DIR "�¥ ¬®£ã ãáâ ­®¢¨âì ª â «®£ ¤«ï § ¯¨á¨"
  330. #define ERR_SYMLINK_LOOP "�¥áª®­¥ç­ë© 横« ᨬ¢®«ì­®© áá뫪¨"
  331. #define ERR_COMPRESSION "Žè¨¡ª  (� á)¯ ª®¢ª¨"
  332. #define ERR_NOT_IMPLEMENTED "�¥ ॠ«¨§®¢ ­®"
  333. #define ERR_OS_ERROR "ޝ¥à æ¨®­­ ï á¨á⥬  á®®¡é¨«  ®è¨¡ªã"
  334. #define ERR_FILE_EXISTS "” ©« 㦥 áãé¥áâ¢ã¥â"
  335. #define ERR_NOT_A_FILE "�¥ ä ©«"
  336. #define ERR_NOT_A_DIR "�¥ ª â «®£"
  337. #define ERR_NOT_AN_ARCHIVE "�¥  à娢"
  338. #define ERR_CORRUPTED "�®¢à¥¦¤¥­­ë©  à娢"
  339. #define ERR_SEEK_OUT_OF_RANGE "�®§¨æ¨®­¨à®¢ ­¨¥ §  ¯à¥¤¥«ë"
  340. #define ERR_BAD_FILENAME "�¥¢¥à­®¥ ¨¬ï ä ©« "
  341. #define ERR_PHYSFS_BAD_OS_CALL "(BUG) PhysicsFS ¢ë¯®«­¨«  ­¥¢¥à­ë© á¨á⥬­ë© ¢ë§®¢"
  342. #define ERR_ARGV0_IS_NULL "argv0 is NULL"
  343. #define ERR_ZLIB_NEED_DICT "zlib: ­ã¦¥­ á«®¢ àì"
  344. #define ERR_ZLIB_DATA_ERROR "zlib: ®è¨¡ª  ¤ ­­ëå"
  345. #define ERR_ZLIB_MEMORY_ERROR "zlib: ®è¨¡ª  ¯ ¬ïâ¨"
  346. #define ERR_ZLIB_BUFFER_ERROR "zlib: ®è¨¡ª  ¡ãä¥à "
  347. #define ERR_ZLIB_VERSION_ERROR "zlib: ®è¨¡ª  ¢¥àᨨ"
  348. #define ERR_ZLIB_UNKNOWN_ERROR "zlib: ­¥¨§¢¥áâ­ ï ®è¨¡ª "
  349. #define ERR_SEARCHPATH_TRUNC "�ãâì ¯®¨áª  ®¡à¥§ ­"
  350. #define ERR_GETMODFN_TRUNC "GetModuleFileName() ®¡à¥§ ­"
  351. #define ERR_GETMODFN_NO_DIR "GetModuleFileName() ­¥ ¯®«ã稫 ª â «®£"
  352. #define ERR_DISK_FULL "„¨áª ¯®«®­"
  353. #define ERR_DIRECTORY_FULL "Š â «®£ ¯®«®­"
  354. #define ERR_MACOS_GENERIC "MacOS á®®¡é¨«  ®è¨¡ªã (%d)"
  355. #define ERR_OS2_GENERIC "OS/2 á®®¡é¨«  ®è¨¡ªã (%d)"
  356. #define ERR_VOL_LOCKED_HW "’®¬ ¡«®ª¨à®¢ ­  ¯¯ à â­®"
  357. #define ERR_VOL_LOCKED_SW "’®¬ ¡«®ª¨à®¢ ­ ¯à®£à ¬¬­®"
  358. #define ERR_FILE_LOCKED "” ©« § ¡«®ª¨à®¢ ­"
  359. #define ERR_FILE_OR_DIR_BUSY "” ©«/ª â «®£ § ­ïâ"
  360. #define ERR_FILE_ALREADY_OPEN_W "” ©« 㦥 ®âªàëâ ­  § ¯¨áì"
  361. #define ERR_FILE_ALREADY_OPEN_R "” ©« 㦥 ®âªàëâ ­  ç⥭¨¥"
  362. #define ERR_INVALID_REFNUM "�¥¢¥à­®¥ ª®«¨ç¥á⢮ ááë«®ª"
  363. #define ERR_GETTING_FILE_POS "Žè¨¡ª  ¯à¨ ¯®«ã祭¨¨ ¯®§¨æ¨¨ ä ©« "
  364. #define ERR_VOLUME_OFFLINE "’®¬ ®âᮥ¤¨­¥­"
  365. #define ERR_PERMISSION_DENIED "Žâª § ­® ¢ à §à¥è¥­¨¨"
  366. #define ERR_VOL_ALREADY_ONLINE "’®¬ 㦥 ¯®¤á®¥¤¨­¥­"
  367. #define ERR_NO_SUCH_DRIVE "�¥â â ª®£® ¤¨áª "
  368. #define ERR_NOT_MAC_DISK "�¥ ¤¨áª Macintosh"
  369. #define ERR_VOL_EXTERNAL_FS "’®¬ ¯à¨­ ¤«¥¦¨â ¢­¥è­¥© ä ©«®¢®© á¨á⥬¥"
  370. #define ERR_PROBLEM_RENAME "�஡«¥¬  ¯à¨ ¯¥à¥¨¬¥­®¢ ­¨¨"
  371. #define ERR_BAD_MASTER_BLOCK "�«®å®© £« ¢­ë© ¡«®ª ª â «®£ "
  372. #define ERR_CANT_MOVE_FORBIDDEN "�®¯ë⪠ ¯¥à¥¬¥áâ¨âì § ¯à¥é¥­ "
  373. #define ERR_WRONG_VOL_TYPE "�¥¢¥à­ë© ⨯ ⮬ "
  374. #define ERR_SERVER_VOL_LOST "‘¥à¢¥à­ë© ⮬ ¡ë« ®âᮥ¤¨­¥­"
  375. #define ERR_FILE_ID_NOT_FOUND "ˆ¤¥­â¨ä¨ª â®à ä ©«  ­¥ ­ ©¤¥­"
  376. #define ERR_FILE_ID_EXISTS "ˆ¤¥­â¨ä¨ª â®à ä ©«  㦥 áãé¥áâ¢ã¥â"
  377. #define ERR_SERVER_NO_RESPOND "‘¥à¢¥à ­¥ ®â¢¥ç ¥â"
  378. #define ERR_USER_AUTH_FAILED "ˆ¤¥­â¨ä¨ª æ¨ï ¯®«ì§®¢ â¥«ï ­¥ 㤠« áì"
  379. #define ERR_PWORD_EXPIRED "� à®«ì ­  á¥à¢¥à¥ ãáâ à¥«"
  380. #define ERR_ACCESS_DENIED "Žâª § ­® ¢ ¤®áâ㯥"
  381. #define ERR_NOT_A_DOS_DISK "�¥ ¤¨áª DOS"
  382. #define ERR_SHARING_VIOLATION "� àã襭¨¥ ᮢ¬¥áâ­®£® ¤®áâ㯠"
  383. #define ERR_CANNOT_MAKE "�¥ ¬®£ã ᮡà âì"
  384. #define ERR_DEV_IN_USE "“áâனá⢮ 㦥 ¨á¯®«ì§ã¥âáï"
  385. #define ERR_OPEN_FAILED "Žâªàë⨥ ­¥ 㤠«®áì"
  386. #define ERR_PIPE_BUSY "Š®­¢¥©¥à § ­ïâ"
  387. #define ERR_SHARING_BUF_EXCEEDED "� §¤¥«ï¥¬ë© ¡ãä¥à ¯¥à¥¯®«­¥­"
  388. #define ERR_TOO_MANY_HANDLES "‘«¨èª®¬ ¬­®£® ®âªàëâëå ¤¥áªà¨¯â®à®¢"
  389. #define ERR_SEEK_ERROR "Žè¨¡ª  ¯®§¨æ¨®­¨à®¢ ­¨ï"
  390. #define ERR_DEL_CWD "�®¯ë⪠ 㤠«¨âì ⥪ã騩 à ¡®ç¨© ª â «®£"
  391. #define ERR_WRITE_PROTECT_ERROR "Žè¨¡ª  § é¨âë § ¯¨á¨"
  392. #define ERR_WRITE_FAULT "Žè¨¡ª  § ¯¨á¨"
  393. #define ERR_LOCK_VIOLATION "� àã襭¨¥ ¡«®ª¨à®¢ª¨"
  394. #define ERR_GEN_FAILURE "ޡ鍩 á¡®©"
  395. #define ERR_UNCERTAIN_MEDIA "�¥®¯à¥¤¥«¥­­ë© ­®á¨â¥«ì"
  396. #define ERR_PROT_VIOLATION "� àã襭¨¥ § é¨âë"
  397. #define ERR_BROKEN_PIPE "‘«®¬ ­­ë© ª®­¢¥©¥à"
  398. #elif (PHYSFS_LANG == PHYSFS_LANG_RUSSIAN_ISO_8859_5)
  399. #define DIR_ARCHIVE_DESCRIPTION "½Õ ÐàåØÒ, ÝÕßÞáàÕÔáâÒÕÝÝëÙ ÒÒÞÔ/ÒëÒÞÔ äÐÙÛÞÒÞÙ áØáâÕÜë"
  400. #define GRP_ARCHIVE_DESCRIPTION "ÄÞàÜÐâ ÓàãßßÞÒÞÓÞ äÐÙÛÐ Build engine"
  401. #define ZIP_ARCHIVE_DESCRIPTION "PkZip/WinZip/Info-Zip áÞÒÜÕáâØÜëÙ"
  402. #define ERR_IS_INITIALIZED "ÃÖÕ ØÝØæØÐÛØ×ØàÞÒÐÝ"
  403. #define ERR_NOT_INITIALIZED "½Õ ØÝØæØÐÛØ×ØàÞÒÐÝ"
  404. #define ERR_INVALID_ARGUMENT "½ÕÒÕàÝëÙ ÐàÓãÜÕÝâ"
  405. #define ERR_FILES_STILL_OPEN "ÄÐÙÛë ÕéÕ ÞâÚàëâë"
  406. #define ERR_NO_DIR_CREATE "½Õ ÜÞÓã áÞ×ÔÐâì ÚÐâÐÛÞÓØ"
  407. #define ERR_OUT_OF_MEMORY "ºÞÝçØÛÐáì ßÐÜïâì"
  408. #define ERR_NOT_IN_SEARCH_PATH "½Õâ âÐÚÞÓÞ íÛÕÜÕÝâÐ Ò ßãâØ ßÞØáÚÐ"
  409. #define ERR_NOT_SUPPORTED "¾ßÕàÐæØï ÝÕ ßÞÔÔÕàÖØÒÐÕâáï"
  410. #define ERR_UNSUPPORTED_ARCHIVE "°àåØÒë âÐÚÞÓÞ âØßÐ ÝÕ ßÞÔÔÕàÖØÒÐîâáï"
  411. #define ERR_NOT_A_HANDLE "½Õ äÐÙÛÞÒëÙ ÔÕáÚàØßâÞà"
  412. #define ERR_INSECURE_FNAME "½ÕÑÕ×ÞßÐáÝÞÕ ØÜï äÐÙÛÐ"
  413. #define ERR_SYMLINK_DISALLOWED "ÁØÜÒÞÛìÝëÕ ááëÛÚØ ÞâÚÛîçÕÝë"
  414. #define ERR_NO_WRITE_DIR "ºÐâÐÛÞÓ ÔÛï ×ÐßØáØ ÝÕ ãáâÐÝÞÒÛÕÝ"
  415. #define ERR_NO_SUCH_FILE "ÄÐÙÛ ÝÕ ÝÐÙÔÕÝ"
  416. #define ERR_NO_SUCH_PATH "¿ãâì ÝÕ ÝÐÙÔÕÝ"
  417. #define ERR_NO_SUCH_VOLUME "ÂÞÜ ÝÕ ÝÐÙÔÕÝ"
  418. #define ERR_PAST_EOF "·Ð ÚÞÝæÞÜ äÐÙÛÐ"
  419. #define ERR_ARC_IS_READ_ONLY "°àåØÒ âÞÛìÚÞ ÔÛï çâÕÝØï"
  420. #define ERR_IO_ERROR "¾èØÑÚÐ ÒÒÞÔÐ/ÒëÒÞÔÐ"
  421. #define ERR_CANT_SET_WRITE_DIR "½Õ ÜÞÓã ãáâÐÝÞÒØâì ÚÐâÐÛÞÓ ÔÛï ×ÐߨáØ"
  422. #define ERR_SYMLINK_LOOP "±ÕáÚÞÝÕçÝëÙ æØÚÛ áØÜÒÞÛìÝÞÙ ááëÛÚØ"
  423. #define ERR_COMPRESSION "¾èØÑÚÐ (ÀÐá)ßÐÚÞÒÚØ"
  424. #define ERR_NOT_IMPLEMENTED "½Õ àÕÐÛØ×ÞÒÐÝÞ"
  425. #define ERR_OS_ERROR "¾ßÕàÐæØÞÝÝÐï áØáâÕÜÐ áÞÞÑéØÛÐ ÞèØÑÚã"
  426. #define ERR_FILE_EXISTS "ÄÐÙÛ ãÖÕ áãéÕáâÒãÕâ"
  427. #define ERR_NOT_A_FILE "½Õ äÐÙÛ"
  428. #define ERR_NOT_A_DIR "½Õ ÚÐâÐÛÞÓ"
  429. #define ERR_NOT_AN_ARCHIVE "½Õ ÐàåØÒ"
  430. #define ERR_CORRUPTED "¿ÞÒàÕÖÔÕÝÝëÙ ÐàåØÒ"
  431. #define ERR_SEEK_OUT_OF_RANGE "¿ÞרæØÞÝØàÞÒÐÝØÕ ×Ð ßàÕÔÕÛë"
  432. #define ERR_BAD_FILENAME "½ÕÒÕàÝÞÕ ØÜï äÐÙÛÐ"
  433. #define ERR_PHYSFS_BAD_OS_CALL "(BUG) PhysicsFS ÒëßÞÛÝØÛÐ ÝÕÒÕàÝëÙ áØáâÕÜÝëÙ Òë×ÞÒ"
  434. #define ERR_ARGV0_IS_NULL "argv0 is NULL"
  435. #define ERR_ZLIB_NEED_DICT "zlib: ÝãÖÕÝ áÛÞÒÐàì"
  436. #define ERR_ZLIB_DATA_ERROR "zlib: ÞèØÑÚÐ ÔÐÝÝëå"
  437. #define ERR_ZLIB_MEMORY_ERROR "zlib: ÞèØÑÚÐ ßÐÜïâØ"
  438. #define ERR_ZLIB_BUFFER_ERROR "zlib: ÞèØÑÚÐ ÑãäÕàÐ"
  439. #define ERR_ZLIB_VERSION_ERROR "zlib: ÞèØÑÚÐ ÒÕàáØØ"
  440. #define ERR_ZLIB_UNKNOWN_ERROR "zlib: ÝÕØ×ÒÕáâÝÐï ÞèØÑÚÐ"
  441. #define ERR_SEARCHPATH_TRUNC "¿ãâì ßÞØáÚÐ ÞÑàÕ×ÐÝ"
  442. #define ERR_GETMODFN_TRUNC "GetModuleFileName() ÞÑàÕ×ÐÝ"
  443. #define ERR_GETMODFN_NO_DIR "GetModuleFileName() ÝÕ ßÞÛãçØÛ ÚÐâÐÛÞÓ"
  444. #define ERR_DISK_FULL "´ØáÚ ßÞÛÞÝ"
  445. #define ERR_DIRECTORY_FULL "ºÐâÐÛÞÓ ßÞÛÞÝ"
  446. #define ERR_MACOS_GENERIC "MacOS áÞÞÑéØÛÐ ÞèØÑÚã (%d)"
  447. #define ERR_OS2_GENERIC "OS/2 áÞÞÑéØÛÐ ÞèØÑÚã (%d)"
  448. #define ERR_VOL_LOCKED_HW "ÂÞÜ ÑÛÞÚØàÞÒÐÝ ÐßßÐàÐâÝÞ"
  449. #define ERR_VOL_LOCKED_SW "ÂÞÜ ÑÛÞÚØàÞÒÐÝ ßàÞÓàÐÜÜÝÞ"
  450. #define ERR_FILE_LOCKED "ÄÐÙÛ ×ÐÑÛÞÚØàÞÒÐÝ"
  451. #define ERR_FILE_OR_DIR_BUSY "ÄÐÙÛ/ÚÐâÐÛÞÓ ×ÐÝïâ"
  452. #define ERR_FILE_ALREADY_OPEN_W "ÄÐÙÛ ãÖÕ ÞâÚàëâ ÝÐ ×Ðߨáì"
  453. #define ERR_FILE_ALREADY_OPEN_R "ÄÐÙÛ ãÖÕ ÞâÚàëâ ÝÐ çâÕÝØÕ"
  454. #define ERR_INVALID_REFNUM "½ÕÒÕàÝÞÕ ÚÞÛØçÕáâÒÞ ááëÛÞÚ"
  455. #define ERR_GETTING_FILE_POS "¾èØÑÚÐ ßàØ ßÞÛãçÕÝØØ ßÞ×ØæØØ äÐÙÛÐ"
  456. #define ERR_VOLUME_OFFLINE "ÂÞÜ ÞâáÞÕÔØÝÕÝ"
  457. #define ERR_PERMISSION_DENIED "¾âÚÐ×ÐÝÞ Ò àÐ×àÕèÕÝØØ"
  458. #define ERR_VOL_ALREADY_ONLINE "ÂÞÜ ãÖÕ ßÞÔáÞÕÔØÝÕÝ"
  459. #define ERR_NO_SUCH_DRIVE "½Õâ âÐÚÞÓÞ ÔØáÚÐ"
  460. #define ERR_NOT_MAC_DISK "½Õ ÔØáÚ Macintosh"
  461. #define ERR_VOL_EXTERNAL_FS "ÂÞÜ ßàØÝÐÔÛÕÖØâ ÒÝÕèÝÕÙ äÐÙÛÞÒÞÙ áØáâÕÜÕ"
  462. #define ERR_PROBLEM_RENAME "¿àÞÑÛÕÜÐ ßàØ ßÕàÕØÜÕÝÞÒÐÝØØ"
  463. #define ERR_BAD_MASTER_BLOCK "¿ÛÞåÞÙ ÓÛÐÒÝëÙ ÑÛÞÚ ÚÐâÐÛÞÓÐ"
  464. #define ERR_CANT_MOVE_FORBIDDEN "¿ÞßëâÚÐ ßÕàÕÜÕáâØâì ×ÐßàÕéÕÝÐ"
  465. #define ERR_WRONG_VOL_TYPE "½ÕÒÕàÝëÙ âØß âÞÜÐ"
  466. #define ERR_SERVER_VOL_LOST "ÁÕàÒÕàÝëÙ âÞÜ ÑëÛ ÞâáÞÕÔØÝÕÝ"
  467. #define ERR_FILE_ID_NOT_FOUND "¸ÔÕÝâØäØÚÐâÞà äÐÙÛÐ ÝÕ ÝÐÙÔÕÝ"
  468. #define ERR_FILE_ID_EXISTS "¸ÔÕÝâØäØÚÐâÞà äÐÙÛÐ ãÖÕ áãéÕáâÒãÕâ"
  469. #define ERR_SERVER_NO_RESPOND "ÁÕàÒÕà ÝÕ ÞâÒÕçÐÕâ"
  470. #define ERR_USER_AUTH_FAILED "¸ÔÕÝâØäØÚÐæØï ßÞÛì×ÞÒÐâÕÛï ÝÕ ãÔÐÛÐáì"
  471. #define ERR_PWORD_EXPIRED "¿ÐàÞÛì ÝÐ áÕàÒÕàÕ ãáâÐàÕÛ"
  472. #define ERR_ACCESS_DENIED "¾âÚÐ×ÐÝÞ Ò ÔÞáâãßÕ"
  473. #define ERR_NOT_A_DOS_DISK "½Õ ÔØáÚ DOS"
  474. #define ERR_SHARING_VIOLATION "½ÐàãèÕÝØÕ áÞÒÜÕáâÝÞÓÞ ÔÞáâãßÐ"
  475. #define ERR_CANNOT_MAKE "½Õ ÜÞÓã áÞÑàÐâì"
  476. #define ERR_DEV_IN_USE "ÃáâàÞÙáâÒÞ ãÖÕ ØáßÞÛì×ãÕâáï"
  477. #define ERR_OPEN_FAILED "¾âÚàëâØÕ ÝÕ ãÔÐÛÞáì"
  478. #define ERR_PIPE_BUSY "ºÞÝÒÕÙÕà ×ÐÝïâ"
  479. #define ERR_SHARING_BUF_EXCEEDED "ÀÐ×ÔÕÛïÕÜëÙ ÑãäÕà ßÕàÕßÞÛÝÕÝ"
  480. #define ERR_TOO_MANY_HANDLES "ÁÛØèÚÞÜ ÜÝÞÓÞ ÞâÚàëâëå ÔÕáÚàØßâÞàÞÒ"
  481. #define ERR_SEEK_ERROR "¾èØÑÚÐ ßÞרæØÞÝØàÞÒÐÝØï"
  482. #define ERR_DEL_CWD "¿ÞßëâÚÐ ãÔÐÛØâì âÕÚãéØÙ àÐÑÞçØÙ ÚÐâÐÛÞÓ"
  483. #define ERR_WRITE_PROTECT_ERROR "¾èØÑÚÐ ×ÐéØâë ×ÐߨáØ"
  484. #define ERR_WRITE_FAULT "¾èØÑÚÐ ×ÐߨáØ"
  485. #define ERR_LOCK_VIOLATION "½ÐàãèÕÝØÕ ÑÛÞÚØàÞÒÚØ"
  486. #define ERR_GEN_FAILURE "¾ÑéØÙ áÑÞÙ"
  487. #define ERR_UNCERTAIN_MEDIA "½ÕÞßàÕÔÕÛÕÝÝëÙ ÝÞáØâÕÛì"
  488. #define ERR_PROT_VIOLATION "½ÐàãèÕÝØÕ ×ÐéØâë"
  489. #define ERR_BROKEN_PIPE "ÁÛÞÜÐÝÝëÙ ÚÞÝÒÕÙÕà"
  490. #elif (PHYSFS_LANG == PHYSFS_LANG_SPANISH)
  491. #define DIR_ARCHIVE_DESCRIPTION "No es un archivo, E/S directa al sistema de ficheros"
  492. #define GRP_ARCHIVE_DESCRIPTION "Formato Build engine Groupfile"
  493. #define ZIP_ARCHIVE_DESCRIPTION "Compatible con PkZip/WinZip/Info-Zip"
  494. #define ERR_IS_INITIALIZED "Ya estaba inicializado"
  495. #define ERR_NOT_INITIALIZED "No está inicializado"
  496. #define ERR_INVALID_ARGUMENT "Argumento inválido"
  497. #define ERR_FILES_STILL_OPEN "Archivos aún abiertos"
  498. #define ERR_NO_DIR_CREATE "Fallo al crear los directorios"
  499. #define ERR_OUT_OF_MEMORY "Memoria agotada"
  500. #define ERR_NOT_IN_SEARCH_PATH "No existe tal entrada en la ruta de búsqueda"
  501. #define ERR_NOT_SUPPORTED "Operación no soportada"
  502. #define ERR_UNSUPPORTED_ARCHIVE "Tipo de archivo no soportado"
  503. #define ERR_NOT_A_HANDLE "No es un manejador de ficheo (file handle)"
  504. #define ERR_INSECURE_FNAME "Nombre de archivo inseguro"
  505. #define ERR_SYMLINK_DISALLOWED "Los enlaces simbólicos están desactivados"
  506. #define ERR_NO_WRITE_DIR "No has configurado un directorio de escritura"
  507. #define ERR_NO_SUCH_FILE "Archivo no encontrado"
  508. #define ERR_NO_SUCH_PATH "Ruta no encontrada"
  509. #define ERR_NO_SUCH_VOLUME "Volumen no encontrado"
  510. #define ERR_PAST_EOF "Te pasaste del final del archivo"
  511. #define ERR_ARC_IS_READ_ONLY "El archivo es de sólo lectura"
  512. #define ERR_IO_ERROR "Error E/S"
  513. #define ERR_CANT_SET_WRITE_DIR "No puedo configurar el directorio de escritura"
  514. #define ERR_SYMLINK_LOOP "Bucle infnito de enlaces simbólicos"
  515. #define ERR_COMPRESSION "Error de (des)compresión"
  516. #define ERR_NOT_IMPLEMENTED "No implementado"
  517. #define ERR_OS_ERROR "El sistema operativo ha devuelto un error"
  518. #define ERR_FILE_EXISTS "El archivo ya existe"
  519. #define ERR_NOT_A_FILE "No es un archivo"
  520. #define ERR_NOT_A_DIR "No es un directorio"
  521. #define ERR_NOT_AN_ARCHIVE "No es un archivo"
  522. #define ERR_CORRUPTED "Archivo corrupto"
  523. #define ERR_SEEK_OUT_OF_RANGE "Búsqueda fuera de rango"
  524. #define ERR_BAD_FILENAME "Nombre de archivo incorrecto"
  525. #define ERR_PHYSFS_BAD_OS_CALL "(BUG) PhysicsFS ha hecho una llamada incorrecta al sistema"
  526. #define ERR_ARGV0_IS_NULL "argv0 es NULL"
  527. #define ERR_ZLIB_NEED_DICT "zlib: necesito diccionario"
  528. #define ERR_ZLIB_DATA_ERROR "zlib: error de datos"
  529. #define ERR_ZLIB_MEMORY_ERROR "zlib: error de memoria"
  530. #define ERR_ZLIB_BUFFER_ERROR "zlib: error de buffer"
  531. #define ERR_ZLIB_VERSION_ERROR "zlib: error de versión"
  532. #define ERR_ZLIB_UNKNOWN_ERROR "zlib: error desconocido"
  533. #define ERR_SEARCHPATH_TRUNC "La ruta de búsqueda ha sido truncada"
  534. #define ERR_GETMODFN_TRUNC "GetModuleFileName() ha sido truncado"
  535. #define ERR_GETMODFN_NO_DIR "GetModuleFileName() no tenia directorio"
  536. #define ERR_DISK_FULL "El disco está lleno"
  537. #define ERR_DIRECTORY_FULL "El directorio está lleno"
  538. #define ERR_MACOS_GENERIC "MacOS ha devuelto un error (%d)"
  539. #define ERR_OS2_GENERIC "OS/2 ha devuelto un error (%d)"
  540. #define ERR_VOL_LOCKED_HW "El volumen está bloqueado por el hardware"
  541. #define ERR_VOL_LOCKED_SW "El volumen está bloqueado por el software"
  542. #define ERR_FILE_LOCKED "El archivo está bloqueado"
  543. #define ERR_FILE_OR_DIR_BUSY "Fichero o directorio ocupados"
  544. #define ERR_FILE_ALREADY_OPEN_W "Fichero ya abierto para escritura"
  545. #define ERR_FILE_ALREADY_OPEN_R "Fichero ya abierto para lectura"
  546. #define ERR_INVALID_REFNUM "El número de referencia no es válido"
  547. #define ERR_GETTING_FILE_POS "Error al tomar la posición del fichero"
  548. #define ERR_VOLUME_OFFLINE "El volumen está desconectado"
  549. #define ERR_PERMISSION_DENIED "Permiso denegado"
  550. #define ERR_VOL_ALREADY_ONLINE "El volumen ya estaba conectado"
  551. #define ERR_NO_SUCH_DRIVE "No existe tal unidad"
  552. #define ERR_NOT_MAC_DISK "No es un disco Macintosh"
  553. #define ERR_VOL_EXTERNAL_FS "El volumen pertence a un sistema de ficheros externo"
  554. #define ERR_PROBLEM_RENAME "Problemas al renombrar"
  555. #define ERR_BAD_MASTER_BLOCK "Bloque maestro de directorios incorrecto"
  556. #define ERR_CANT_MOVE_FORBIDDEN "Intento de mover forbidden"
  557. #define ERR_WRONG_VOL_TYPE "Tipo de volumen incorrecto"
  558. #define ERR_SERVER_VOL_LOST "El servidor de volúmenes ha sido desconectado"
  559. #define ERR_FILE_ID_NOT_FOUND "Identificador de archivo no encontrado"
  560. #define ERR_FILE_ID_EXISTS "El identificador de archivo ya existe"
  561. #define ERR_SERVER_NO_RESPOND "El servidor no responde"
  562. #define ERR_USER_AUTH_FAILED "Fallo al autentificar el usuario"
  563. #define ERR_PWORD_EXPIRED "La Password en el servidor ha caducado"
  564. #define ERR_ACCESS_DENIED "Acceso denegado"
  565. #define ERR_NOT_A_DOS_DISK "No es un disco de DOS"
  566. #define ERR_SHARING_VIOLATION "Violación al compartir"
  567. #define ERR_CANNOT_MAKE "No puedo hacer make"
  568. #define ERR_DEV_IN_USE "El dispositivo ya estaba en uso"
  569. #define ERR_OPEN_FAILED "Fallo al abrir"
  570. #define ERR_PIPE_BUSY "Tubería ocupada"
  571. #define ERR_SHARING_BUF_EXCEEDED "Buffer de compartición sobrepasado"
  572. #define ERR_TOO_MANY_HANDLES "Demasiados manejadores (handles)"
  573. #define ERR_SEEK_ERROR "Error de búsqueda"
  574. #define ERR_DEL_CWD "Intentando borrar el directorio de trabajo actual"
  575. #define ERR_WRITE_PROTECT_ERROR "Error de protección contra escritura"
  576. #define ERR_WRITE_FAULT "Fallo al escribir"
  577. #define ERR_LOCK_VIOLATION "Violación del bloqueo"
  578. #define ERR_GEN_FAILURE "Fallo general"
  579. #define ERR_UNCERTAIN_MEDIA "Medio incierto"
  580. #define ERR_PROT_VIOLATION "Violación de la protección"
  581. #define ERR_BROKEN_PIPE "Tubería rota"
  582. #elif (PHYSFS_LANG == PHYSFS_LANG_FRENCH)
  583. #define DIR_ARCHIVE_DESCRIPTION "Pas d'archive, E/S directes sur système de fichiers"
  584. #define GRP_ARCHIVE_DESCRIPTION "Format Groupfile du moteur Build"
  585. #define ZIP_ARCHIVE_DESCRIPTION "Compatible PkZip/WinZip/Info-Zip"
  586. #define ERR_IS_INITIALIZED "Déjà initialisé"
  587. #define ERR_NOT_INITIALIZED "Non initialisé"
  588. #define ERR_INVALID_ARGUMENT "Argument invalide"
  589. #define ERR_FILES_STILL_OPEN "Fichiers encore ouverts"
  590. #define ERR_NO_DIR_CREATE "Echec de la création de répertoires"
  591. #define ERR_OUT_OF_MEMORY "A court de mémoire"
  592. #define ERR_NOT_IN_SEARCH_PATH "Aucune entrée dans le chemin de recherche"
  593. #define ERR_NOT_SUPPORTED "Opération non supportée"
  594. #define ERR_UNSUPPORTED_ARCHIVE "Type d'archive non supportée"
  595. #define ERR_NOT_A_HANDLE "Pas un descripteur de fichier"
  596. #define ERR_INSECURE_FNAME "Nom de fichier dangereux"
  597. #define ERR_SYMLINK_DISALLOWED "Les liens symboliques sont désactivés"
  598. #define ERR_NO_WRITE_DIR "Le répertoire d'écriture n'est pas spécifié"
  599. #define ERR_NO_SUCH_FILE "Fichier non trouvé"
  600. #define ERR_NO_SUCH_PATH "Chemin non trouvé"
  601. #define ERR_NO_SUCH_VOLUME "Volume non trouvé"
  602. #define ERR_PAST_EOF "Au-delà de la fin du fichier"
  603. #define ERR_ARC_IS_READ_ONLY "L'archive est en lecture seule"
  604. #define ERR_IO_ERROR "Erreur E/S"
  605. #define ERR_CANT_SET_WRITE_DIR "Ne peut utiliser le répertoire d'écriture"
  606. #define ERR_SYMLINK_LOOP "Boucle infinie dans les liens symboliques"
  607. #define ERR_COMPRESSION "Erreur de (dé)compression"
  608. #define ERR_NOT_IMPLEMENTED "Non implémenté"
  609. #define ERR_OS_ERROR "Erreur rapportée par le système d'exploitation"
  610. #define ERR_FILE_EXISTS "Le fichier existe déjà"
  611. #define ERR_NOT_A_FILE "Pas un fichier"
  612. #define ERR_NOT_A_DIR "Pas un répertoire"
  613. #define ERR_NOT_AN_ARCHIVE "Pas une archive"
  614. #define ERR_CORRUPTED "Archive corrompue"
  615. #define ERR_SEEK_OUT_OF_RANGE "Pointeur de fichier hors de portée"
  616. #define ERR_BAD_FILENAME "Mauvais nom de fichier"
  617. #define ERR_PHYSFS_BAD_OS_CALL "(BOGUE) PhysicsFS a fait un mauvais appel système, le salaud"
  618. #define ERR_ARGV0_IS_NULL "argv0 est NULL"
  619. #define ERR_ZLIB_NEED_DICT "zlib: a besoin du dico"
  620. #define ERR_ZLIB_DATA_ERROR "zlib: erreur de données"
  621. #define ERR_ZLIB_MEMORY_ERROR "zlib: erreur mémoire"
  622. #define ERR_ZLIB_BUFFER_ERROR "zlib: erreur tampon"
  623. #define ERR_ZLIB_VERSION_ERROR "zlib: erreur de version"
  624. #define ERR_ZLIB_UNKNOWN_ERROR "zlib: erreur inconnue"
  625. #define ERR_SEARCHPATH_TRUNC "Le chemin de recherche a été tronqué"
  626. #define ERR_GETMODFN_TRUNC "GetModuleFileName() a été tronqué"
  627. #define ERR_GETMODFN_NO_DIR "GetModuleFileName() n'a pas de répertoire"
  628. #define ERR_DISK_FULL "Disque plein"
  629. #define ERR_DIRECTORY_FULL "Répertoire plein"
  630. #define ERR_MACOS_GENERIC "Erreur rapportée par MacOS (%d)"
  631. #define ERR_OS2_GENERIC "Erreur rapportée par OS/2 (%d)"
  632. #define ERR_VOL_LOCKED_HW "Le volume est verrouillé matériellement"
  633. #define ERR_VOL_LOCKED_SW "Le volume est verrouillé par logiciel"
  634. #define ERR_FILE_LOCKED "Fichier verrouillé"
  635. #define ERR_FILE_OR_DIR_BUSY "Fichier/répertoire occupé"
  636. #define ERR_FILE_ALREADY_OPEN_W "Fichier déjà ouvert en écriture"
  637. #define ERR_FILE_ALREADY_OPEN_R "Fichier déjà ouvert en lecture"
  638. #define ERR_INVALID_REFNUM "Numéro de référence invalide"
  639. #define ERR_GETTING_FILE_POS "Erreur lors de l'obtention de la position du pointeur de fichier"
  640. #define ERR_VOLUME_OFFLINE "Le volume n'est pas en ligne"
  641. #define ERR_PERMISSION_DENIED "Permission refusée"
  642. #define ERR_VOL_ALREADY_ONLINE "Volumé déjà en ligne"
  643. #define ERR_NO_SUCH_DRIVE "Lecteur inexistant"
  644. #define ERR_NOT_MAC_DISK "Pas un disque Macintosh"
  645. #define ERR_VOL_EXTERNAL_FS "Le volume appartient à un système de fichiers externe"
  646. #define ERR_PROBLEM_RENAME "Problème lors du renommage"
  647. #define ERR_BAD_MASTER_BLOCK "Mauvais block maitre de répertoire"
  648. #define ERR_CANT_MOVE_FORBIDDEN "Essai de déplacement interdit"
  649. #define ERR_WRONG_VOL_TYPE "Mauvais type de volume"
  650. #define ERR_SERVER_VOL_LOST "Le volume serveur a été déconnecté"
  651. #define ERR_FILE_ID_NOT_FOUND "Identificateur de fichier non trouvé"
  652. #define ERR_FILE_ID_EXISTS "Identificateur de fichier existe déjà"
  653. #define ERR_SERVER_NO_RESPOND "Le serveur ne répond pas"
  654. #define ERR_USER_AUTH_FAILED "Authentification de l'utilisateur échouée"
  655. #define ERR_PWORD_EXPIRED "Le mot de passe a expiré sur le serveur"
  656. #define ERR_ACCESS_DENIED "Accès refusé"
  657. #define ERR_NOT_A_DOS_DISK "Pas un disque DOS"
  658. #define ERR_SHARING_VIOLATION "Violation de partage"
  659. #define ERR_CANNOT_MAKE "Ne peut faire"
  660. #define ERR_DEV_IN_USE "Périphérique déjà en utilisation"
  661. #define ERR_OPEN_FAILED "Ouverture échouée"
  662. #define ERR_PIPE_BUSY "Le tube est occupé"
  663. #define ERR_SHARING_BUF_EXCEEDED "Tampon de partage dépassé"
  664. #define ERR_TOO_MANY_HANDLES "Trop de descripteurs ouverts"
  665. #define ERR_SEEK_ERROR "Erreur de positionement"
  666. #define ERR_DEL_CWD "Essai de supprimer le répertoire courant"
  667. #define ERR_WRITE_PROTECT_ERROR "Erreur de protection en écriture"
  668. #define ERR_WRITE_FAULT "Erreur d'écriture"
  669. #define ERR_LOCK_VIOLATION "Violation de verrou"
  670. #define ERR_GEN_FAILURE "Echec général"
  671. #define ERR_UNCERTAIN_MEDIA "Média incertain"
  672. #define ERR_PROT_VIOLATION "Violation de protection"
  673. #define ERR_BROKEN_PIPE "Tube cassé"
  674. #else
  675. #error Please define PHYSFS_LANG.
  676. #endif
  677. /* end LANG section. */
  678. struct __PHYSFS_DIRHANDLE__;
  679. struct __PHYSFS_FILEFUNCTIONS__;
  680. typedef struct __PHYSFS_LINKEDSTRINGLIST__
  681. {
  682. char *str;
  683. struct __PHYSFS_LINKEDSTRINGLIST__ *next;
  684. } LinkedStringList;
  685. typedef struct __PHYSFS_FILEHANDLE__
  686. {
  687. /*
  688. * This is reserved for the driver to store information.
  689. */
  690. void *opaque;
  691. /*
  692. * This should be the DirHandle that created this FileHandle.
  693. */
  694. const struct __PHYSFS_DIRHANDLE__ *dirHandle;
  695. /*
  696. * Pointer to the file i/o functions for this filehandle.
  697. */
  698. const struct __PHYSFS_FILEFUNCTIONS__ *funcs;
  699. } FileHandle;
  700. typedef struct __PHYSFS_FILEFUNCTIONS__
  701. {
  702. /*
  703. * Read more from the file.
  704. * Returns number of objects of (objSize) bytes read from file, -1
  705. * if complete failure.
  706. * On failure, call __PHYSFS_setError().
  707. */
  708. PHYSFS_sint64 (*read)(FileHandle *handle, void *buffer,
  709. PHYSFS_uint32 objSize, PHYSFS_uint32 objCount);
  710. /*
  711. * Write more to the file. Archives don't have to implement this.
  712. * (Set it to NULL if not implemented).
  713. * Returns number of objects of (objSize) bytes written to file, -1
  714. * if complete failure.
  715. * On failure, call __PHYSFS_setError().
  716. */
  717. PHYSFS_sint64 (*write)(FileHandle *handle, const void *buffer,
  718. PHYSFS_uint32 objSize, PHYSFS_uint32 objCount);
  719. /*
  720. * Returns non-zero if at end of file.
  721. */
  722. int (*eof)(FileHandle *handle);
  723. /*
  724. * Returns byte offset from start of file.
  725. */
  726. PHYSFS_sint64 (*tell)(FileHandle *handle);
  727. /*
  728. * Move read/write pointer to byte offset from start of file.
  729. * Returns non-zero on success, zero on error.
  730. * On failure, call __PHYSFS_setError().
  731. */
  732. int (*seek)(FileHandle *handle, PHYSFS_uint64 offset);
  733. /*
  734. * Return number of bytes available in the file, or -1 if you
  735. * aren't able to determine.
  736. * On failure, call __PHYSFS_setError().
  737. */
  738. PHYSFS_sint64 (*fileLength)(FileHandle *handle);
  739. /*
  740. * Close the file, and free the FileHandle structure (including "opaque").
  741. * returns non-zero on success, zero if can't close file.
  742. * On failure, call __PHYSFS_setError().
  743. */
  744. int (*fileClose)(FileHandle *handle);
  745. } FileFunctions;
  746. typedef struct __PHYSFS_DIRHANDLE__
  747. {
  748. /*
  749. * This is reserved for the driver to store information.
  750. */
  751. void *opaque;
  752. /*
  753. * Pointer to the directory i/o functions for this handle.
  754. */
  755. const struct __PHYSFS_DIRFUNCTIONS__ *funcs;
  756. } DirHandle;
  757. /*
  758. * Symlinks should always be followed; PhysicsFS will use
  759. * DirFunctions->isSymLink() and make a judgement on whether to
  760. * continue to call other methods based on that.
  761. */
  762. typedef struct __PHYSFS_DIRFUNCTIONS__
  763. {
  764. const PHYSFS_ArchiveInfo *info;
  765. /*
  766. * Returns non-zero if (filename) is a valid archive that this
  767. * driver can handle. This filename is in platform-dependent
  768. * notation. forWriting is non-zero if this is to be used for
  769. * the write directory, and zero if this is to be used for an
  770. * element of the search path.
  771. */
  772. int (*isArchive)(const char *filename, int forWriting);
  773. /*
  774. * Return a DirHandle for dir/archive (name).
  775. * This filename is in platform-dependent notation.
  776. * forWriting is non-zero if this is to be used for
  777. * the write directory, and zero if this is to be used for an
  778. * element of the search path.
  779. * Returns NULL on failure, and calls __PHYSFS_setError().
  780. */
  781. DirHandle *(*openArchive)(const char *name, int forWriting);
  782. /*
  783. * Returns a list of all files in dirname. Each element of this list
  784. * (and its "str" field) will be deallocated with the system's free()
  785. * function by the caller, so be sure to explicitly malloc() each
  786. * chunk. Omit symlinks if (omitSymLinks) is non-zero.
  787. * If you have a memory failure, return as much as you can.
  788. * This dirname is in platform-independent notation.
  789. */
  790. LinkedStringList *(*enumerateFiles)(DirHandle *r,
  791. const char *dirname,
  792. int omitSymLinks);
  793. /*
  794. * Returns non-zero if filename can be opened for reading.
  795. * This filename is in platform-independent notation.
  796. * You should not follow symlinks.
  797. */
  798. int (*exists)(DirHandle *r, const char *name);
  799. /*
  800. * Returns non-zero if filename is really a directory.
  801. * This filename is in platform-independent notation.
  802. * Symlinks should be followed; if what the symlink points
  803. * to is missing, or isn't a directory, then the retval is zero.
  804. *
  805. * Regardless of success or failure, please set *fileExists to
  806. * non-zero if the file existed (even if it's a broken symlink!),
  807. * zero if it did not.
  808. */
  809. int (*isDirectory)(DirHandle *r, const char *name, int *fileExists);
  810. /*
  811. * Returns non-zero if filename is really a symlink.
  812. * This filename is in platform-independent notation.
  813. *
  814. * Regardless of success or failure, please set *fileExists to
  815. * non-zero if the file existed (even if it's a broken symlink!),
  816. * zero if it did not.
  817. */
  818. int (*isSymLink)(DirHandle *r, const char *name, int *fileExists);
  819. /*
  820. * Retrieve the last modification time (mtime) of a file.
  821. * Returns -1 on failure, or the file's mtime in seconds since
  822. * the epoch (Jan 1, 1970) on success.
  823. * This filename is in platform-independent notation.
  824. *
  825. * Regardless of success or failure, please set *exists to
  826. * non-zero if the file existed (even if it's a broken symlink!),
  827. * zero if it did not.
  828. */
  829. PHYSFS_sint64 (*getLastModTime)(DirHandle *r, const char *fnm, int *exist);
  830. /*
  831. * Open file for reading, and return a FileHandle.
  832. * This filename is in platform-independent notation.
  833. * If you can't handle multiple opens of the same file,
  834. * you can opt to fail for the second call.
  835. * Fail if the file does not exist.
  836. * Returns NULL on failure, and calls __PHYSFS_setError().
  837. *
  838. * Regardless of success or failure, please set *fileExists to
  839. * non-zero if the file existed (even if it's a broken symlink!),
  840. * zero if it did not.
  841. */
  842. FileHandle *(*openRead)(DirHandle *r, const char *fname, int *fileExists);
  843. /*
  844. * Open file for writing, and return a FileHandle.
  845. * If the file does not exist, it should be created. If it exists,
  846. * it should be truncated to zero bytes. The writing
  847. * offset should be the start of the file.
  848. * This filename is in platform-independent notation.
  849. * This method may be NULL.
  850. * If you can't handle multiple opens of the same file,
  851. * you can opt to fail for the second call.
  852. * Returns NULL on failure, and calls __PHYSFS_setError().
  853. */
  854. FileHandle *(*openWrite)(DirHandle *r, const char *filename);
  855. /*
  856. * Open file for appending, and return a FileHandle.
  857. * If the file does not exist, it should be created. The writing
  858. * offset should be the end of the file.
  859. * This filename is in platform-independent notation.
  860. * This method may be NULL.
  861. * If you can't handle multiple opens of the same file,
  862. * you can opt to fail for the second call.
  863. * Returns NULL on failure, and calls __PHYSFS_setError().
  864. */
  865. FileHandle *(*openAppend)(DirHandle *r, const char *filename);
  866. /*
  867. * Delete a file in the archive/directory.
  868. * Return non-zero on success, zero on failure.
  869. * This filename is in platform-independent notation.
  870. * This method may be NULL.
  871. * On failure, call __PHYSFS_setError().
  872. */
  873. int (*remove)(DirHandle *r, const char *filename);
  874. /*
  875. * Create a directory in the archive/directory.
  876. * If the application is trying to make multiple dirs, PhysicsFS
  877. * will split them up into multiple calls before passing them to
  878. * your driver.
  879. * Return non-zero on success, zero on failure.
  880. * This filename is in platform-independent notation.
  881. * This method may be NULL.
  882. * On failure, call __PHYSFS_setError().
  883. */
  884. int (*mkdir)(DirHandle *r, const char *filename);
  885. /*
  886. * Close directories/archives, and free the handle, including
  887. * the "opaque" entry. This should assume that it won't be called if
  888. * there are still files open from this DirHandle.
  889. */
  890. void (*dirClose)(DirHandle *r);
  891. } DirFunctions;
  892. /*
  893. * Call this to set the message returned by PHYSFS_getLastError().
  894. * Please only use the ERR_* constants above, or add new constants to the
  895. * above group, but I want these all in one place.
  896. *
  897. * Calling this with a NULL argument is a safe no-op.
  898. */
  899. void __PHYSFS_setError(const char *err);
  900. /*
  901. * Convert (dirName) to platform-dependent notation, then prepend (prepend)
  902. * and append (append) to the converted string.
  903. *
  904. * So, on Win32, calling:
  905. * __PHYSFS_convertToDependent("C:\", "my/files", NULL);
  906. * ...will return the string "C:\my\files".
  907. *
  908. * This is a convenience function; you might want to hack something out that
  909. * is less generic (and therefore more efficient).
  910. *
  911. * Be sure to free() the return value when done with it.
  912. */
  913. char *__PHYSFS_convertToDependent(const char *prepend,
  914. const char *dirName,
  915. const char *append);
  916. /*
  917. * Verify that (fname) (in platform-independent notation), in relation
  918. * to (h) is secure. That means that each element of fname is checked
  919. * for symlinks (if they aren't permitted). Also, elements such as
  920. * ".", "..", or ":" are flagged.
  921. *
  922. * Returns non-zero if string is safe, zero if there's a security issue.
  923. * PHYSFS_getLastError() will specify what was wrong.
  924. */
  925. int __PHYSFS_verifySecurity(DirHandle *h, const char *fname);
  926. /*
  927. * Use this to build the list that your enumerate function should return.
  928. * See zip.c for an example of proper use.
  929. */
  930. LinkedStringList *__PHYSFS_addToLinkedStringList(LinkedStringList *retval,
  931. LinkedStringList **prev,
  932. const char *str,
  933. PHYSFS_sint32 len);
  934. /*
  935. * When sorting the entries in an archive, we use a modified QuickSort.
  936. * When there are less then PHYSFS_QUICKSORT_THRESHOLD entries left to sort,
  937. * we switch over to a BubbleSort for the remainder. Tweak to taste.
  938. *
  939. * You can override this setting by defining PHYSFS_QUICKSORT_THRESHOLD
  940. * before #including "physfs_internal.h".
  941. */
  942. #ifndef PHYSFS_QUICKSORT_THRESHOLD
  943. #define PHYSFS_QUICKSORT_THRESHOLD 4
  944. #endif
  945. /*
  946. * Sort an array (or whatever) of (max) elements. This uses a mixture of
  947. * a QuickSort and BubbleSort internally.
  948. * (cmpfn) is used to determine ordering, and (swapfn) does the actual
  949. * swapping of elements in the list.
  950. *
  951. * See zip.c for an example.
  952. */
  953. void __PHYSFS_sort(void *entries, PHYSFS_uint32 max,
  954. int (*cmpfn)(void *, PHYSFS_uint32, PHYSFS_uint32),
  955. void (*swapfn)(void *, PHYSFS_uint32, PHYSFS_uint32));
  956. /* These get used all over for lessening code clutter. */
  957. #define BAIL_MACRO(e, r) { __PHYSFS_setError(e); return r; }
  958. #define BAIL_IF_MACRO(c, e, r) if (c) { __PHYSFS_setError(e); return r; }
  959. #define BAIL_MACRO_MUTEX(e, m, r) { __PHYSFS_setError(e); __PHYSFS_platformReleaseMutex(m); return r; }
  960. #define BAIL_IF_MACRO_MUTEX(c, e, m, r) if (c) { __PHYSFS_setError(e); __PHYSFS_platformReleaseMutex(m); return r; }
  961. /*--------------------------------------------------------------------------*/
  962. /*--------------------------------------------------------------------------*/
  963. /*------------ ----------------*/
  964. /*------------ You MUST implement the following functions ----------------*/
  965. /*------------ if porting to a new platform. ----------------*/
  966. /*------------ (see platform/unix.c for an example) ----------------*/
  967. /*------------ ----------------*/
  968. /*--------------------------------------------------------------------------*/
  969. /*--------------------------------------------------------------------------*/
  970. /*
  971. * The dir separator; "/" on unix, "\\" on win32, ":" on MacOS, etc...
  972. * Obviously, this isn't a function, but it IS a null-terminated string.
  973. */
  974. extern const char *__PHYSFS_platformDirSeparator;
  975. /*
  976. * Initialize the platform. This is called when PHYSFS_init() is called from
  977. * the application. You can use this to (for example) determine what version
  978. * of Windows you're running.
  979. *
  980. * Return zero if there was a catastrophic failure (which prevents you from
  981. * functioning at all), and non-zero otherwise.
  982. */
  983. int __PHYSFS_platformInit(void);
  984. /*
  985. * Deinitialize the platform. This is called when PHYSFS_deinit() is called
  986. * from the application. You can use this to clean up anything you've
  987. * allocated in your platform driver.
  988. *
  989. * Return zero if there was a catastrophic failure (which prevents you from
  990. * functioning at all), and non-zero otherwise.
  991. */
  992. int __PHYSFS_platformDeinit(void);
  993. /*
  994. * Open a file for reading. (filename) is in platform-dependent notation. The
  995. * file pointer should be positioned on the first byte of the file.
  996. *
  997. * The return value will be some platform-specific datatype that is opaque to
  998. * the caller; it could be a (FILE *) under Unix, or a (HANDLE *) under win32.
  999. *
  1000. * The same file can be opened for read multiple times, and each should have
  1001. * a unique file handle; this is frequently employed to prevent race
  1002. * conditions in the archivers.
  1003. *
  1004. * Call __PHYSFS_setError() and return (NULL) if the file can't be opened.
  1005. */
  1006. void *__PHYSFS_platformOpenRead(const char *filename);
  1007. /*
  1008. * Open a file for writing. (filename) is in platform-dependent notation. If
  1009. * the file exists, it should be truncated to zero bytes, and if it doesn't
  1010. * exist, it should be created as a zero-byte file. The file pointer should
  1011. * be positioned on the first byte of the file.
  1012. *
  1013. * The return value will be some platform-specific datatype that is opaque to
  1014. * the caller; it could be a (FILE *) under Unix, or a (HANDLE *) under win32,
  1015. * etc.
  1016. *
  1017. * Opening a file for write multiple times has undefined results.
  1018. *
  1019. * Call __PHYSFS_setError() and return (NULL) if the file can't be opened.
  1020. */
  1021. void *__PHYSFS_platformOpenWrite(const char *filename);
  1022. /*
  1023. * Open a file for appending. (filename) is in platform-dependent notation. If
  1024. * the file exists, the file pointer should be place just past the end of the
  1025. * file, so that the first write will be one byte after the current end of
  1026. * the file. If the file doesn't exist, it should be created as a zero-byte
  1027. * file. The file pointer should be positioned on the first byte of the file.
  1028. *
  1029. * The return value will be some platform-specific datatype that is opaque to
  1030. * the caller; it could be a (FILE *) under Unix, or a (HANDLE *) under win32,
  1031. * etc.
  1032. *
  1033. * Opening a file for append multiple times has undefined results.
  1034. *
  1035. * Call __PHYSFS_setError() and return (NULL) if the file can't be opened.
  1036. */
  1037. void *__PHYSFS_platformOpenAppend(const char *filename);
  1038. /*
  1039. * Read more data from a platform-specific file handle. (opaque) should be
  1040. * cast to whatever data type your platform uses. Read a maximum of (count)
  1041. * objects of (size) 8-bit bytes to the area pointed to by (buffer). If there
  1042. * isn't enough data available, return the number of full objects read, and
  1043. * position the file pointer at the start of the first incomplete object.
  1044. * On success, return (count) and position the file pointer one byte past
  1045. * the end of the last read object. Return (-1) if there is a catastrophic
  1046. * error, and call __PHYSFS_setError() to describe the problem; the file
  1047. * pointer should not move in such a case.
  1048. */
  1049. PHYSFS_sint64 __PHYSFS_platformRead(void *opaque, void *buffer,
  1050. PHYSFS_uint32 size, PHYSFS_uint32 count);
  1051. /*
  1052. * Write more data to a platform-specific file handle. (opaque) should be
  1053. * cast to whatever data type your platform uses. Write a maximum of (count)
  1054. * objects of (size) 8-bit bytes from the area pointed to by (buffer). If
  1055. * there isn't enough data available, return the number of full objects
  1056. * written, and position the file pointer at the start of the first
  1057. * incomplete object. Return (-1) if there is a catastrophic error, and call
  1058. * __PHYSFS_setError() to describe the problem; the file pointer should not
  1059. * move in such a case.
  1060. */
  1061. PHYSFS_sint64 __PHYSFS_platformWrite(void *opaque, const void *buffer,
  1062. PHYSFS_uint32 size, PHYSFS_uint32 count);
  1063. /*
  1064. * Set the file pointer to a new position. (opaque) should be cast to
  1065. * whatever data type your platform uses. (pos) specifies the number
  1066. * of 8-bit bytes to seek to from the start of the file. Seeking past the
  1067. * end of the file is an error condition, and you should check for it.
  1068. *
  1069. * Not all file types can seek; this is to be expected by the caller.
  1070. *
  1071. * On error, call __PHYSFS_setError() and return zero. On success, return
  1072. * a non-zero value.
  1073. */
  1074. int __PHYSFS_platformSeek(void *opaque, PHYSFS_uint64 pos);
  1075. /*
  1076. * Get the file pointer's position, in an 8-bit byte offset from the start of
  1077. * the file. (opaque) should be cast to whatever data type your platform
  1078. * uses.
  1079. *
  1080. * Not all file types can "tell"; this is to be expected by the caller.
  1081. *
  1082. * On error, call __PHYSFS_setError() and return zero. On success, return
  1083. * a non-zero value.
  1084. */
  1085. PHYSFS_sint64 __PHYSFS_platformTell(void *opaque);
  1086. /*
  1087. * Determine the current size of a file, in 8-bit bytes, from an open file.
  1088. *
  1089. * The caller expects that this information may not be available for all
  1090. * file types on all platforms.
  1091. *
  1092. * Return -1 if you can't do it, and call __PHYSFS_setError(). Otherwise,
  1093. * return the file length in 8-bit bytes.
  1094. */
  1095. PHYSFS_sint64 __PHYSFS_platformFileLength(void *handle);
  1096. /*
  1097. * Determine if a file is at EOF. (opaque) should be cast to whatever data
  1098. * type your platform uses.
  1099. *
  1100. * The caller expects that there was a short read before calling this.
  1101. *
  1102. * Return non-zero if EOF, zero if it is _not_ EOF.
  1103. */
  1104. int __PHYSFS_platformEOF(void *opaque);
  1105. /*
  1106. * Flush any pending writes to disk. (opaque) should be cast to whatever data
  1107. * type your platform uses. Be sure to check for errors; the caller expects
  1108. * that this function can fail if there was a flushing error, etc.
  1109. *
  1110. * Return zero on failure, non-zero on success.
  1111. */
  1112. int __PHYSFS_platformFlush(void *opaque);
  1113. /*
  1114. * Flush and close a file. (opaque) should be cast to whatever data type
  1115. * your platform uses. Be sure to check for errors when closing; the
  1116. * caller expects that this function can fail if there was a flushing
  1117. * error, etc.
  1118. *
  1119. * You should clean up all resources associated with (opaque).
  1120. *
  1121. * Return zero on failure, non-zero on success.
  1122. */
  1123. int __PHYSFS_platformClose(void *opaque);
  1124. /*
  1125. * Platform implementation of PHYSFS_getCdRomDirs()...
  1126. * See physfs.h. The retval should be freeable via PHYSFS_freeList().
  1127. */
  1128. char **__PHYSFS_platformDetectAvailableCDs(void);
  1129. /*
  1130. * Calculate the base dir, if your platform needs special consideration.
  1131. * Just return NULL if the standard routines will suffice. (see
  1132. * calculateBaseDir() in physfs.c ...)
  1133. * Caller will free() the retval if it's not NULL.
  1134. */
  1135. char *__PHYSFS_platformCalcBaseDir(const char *argv0);
  1136. /*
  1137. * Get the platform-specific user name.
  1138. * Caller will free() the retval if it's not NULL. If it's NULL, the username
  1139. * will default to "default".
  1140. */
  1141. char *__PHYSFS_platformGetUserName(void);
  1142. /*
  1143. * Get the platform-specific user dir.
  1144. * Caller will free() the retval if it's not NULL. If it's NULL, the userdir
  1145. * will default to basedir/username.
  1146. */
  1147. char *__PHYSFS_platformGetUserDir(void);
  1148. /*
  1149. * Return a number that uniquely identifies the current thread.
  1150. * On a platform without threading, (1) will suffice. These numbers are
  1151. * arbitrary; the only requirement is that no two threads have the same
  1152. * number.
  1153. */
  1154. PHYSFS_uint64 __PHYSFS_platformGetThreadID(void);
  1155. /*
  1156. * This is a pass-through to whatever stricmp() is called on your platform.
  1157. */
  1158. int __PHYSFS_platformStricmp(const char *str1, const char *str2);
  1159. /*
  1160. * Return non-zero if filename (in platform-dependent notation) exists.
  1161. * Symlinks should NOT be followed; at this stage, we do not care what the
  1162. * symlink points to. Please call __PHYSFS_SetError() with the details of
  1163. * why the file does not exist, if it doesn't; you are in a better position
  1164. * to know (path not found, bogus filename, file itself is missing, etc).
  1165. */
  1166. int __PHYSFS_platformExists(const char *fname);
  1167. /*
  1168. * Return the last modified time (in seconds since the epoch) of a file.
  1169. * Returns -1 on failure. (fname) is in platform-dependent notation.
  1170. * Symlinks should be followed; if what the symlink points to is missing,
  1171. * then the retval is -1.
  1172. */
  1173. PHYSFS_sint64 __PHYSFS_platformGetLastModTime(const char *fname);
  1174. /*
  1175. * Return non-zero if filename (in platform-dependent notation) is a symlink.
  1176. */
  1177. int __PHYSFS_platformIsSymLink(const char *fname);
  1178. /*
  1179. * Return non-zero if filename (in platform-dependent notation) is a symlink.
  1180. * Symlinks should be followed; if what the symlink points to is missing,
  1181. * or isn't a directory, then the retval is false.
  1182. */
  1183. int __PHYSFS_platformIsDirectory(const char *fname);
  1184. /*
  1185. * Convert (dirName) to platform-dependent notation, then prepend (prepend)
  1186. * and append (append) to the converted string.
  1187. *
  1188. * So, on Win32, calling:
  1189. * __PHYSFS_platformCvtToDependent("C:\", "my/files", NULL);
  1190. * ...will return the string "C:\my\files".
  1191. *
  1192. * This can be implemented in a platform-specific manner, so you can get
  1193. * get a speed boost that the default implementation can't, since
  1194. * you can make assumptions about the size of strings, etc..
  1195. *
  1196. * Platforms that choose not to implement this may just call
  1197. * __PHYSFS_convertToDependent() as a passthrough, which may fit the bill
  1198. * already.
  1199. *
  1200. * Be sure to free() the return value when done with it.
  1201. */
  1202. char *__PHYSFS_platformCvtToDependent(const char *prepend,
  1203. const char *dirName,
  1204. const char *append);
  1205. /*
  1206. * Make the current thread give up a timeslice. This is called in a loop
  1207. * while waiting for various external forces to get back to us.
  1208. */
  1209. void __PHYSFS_platformTimeslice(void);
  1210. /*
  1211. * Enumerate a directory of files. This follows the rules for the
  1212. * DirFunctions->enumerateFiles() method (see above), except that the
  1213. * (dirName) that is passed to this function is converted to
  1214. * platform-DEPENDENT notation by the caller. The DirFunctions version
  1215. * uses platform-independent notation. Note that ".", "..", and other
  1216. * metaentries should always be ignored.
  1217. */
  1218. LinkedStringList *__PHYSFS_platformEnumerateFiles(const char *dirname,
  1219. int omitSymLinks);
  1220. /*
  1221. * Get the current working directory. The return value should be an
  1222. * absolute path in platform-dependent notation. The caller will deallocate
  1223. * the return value with the standard C runtime free() function when it
  1224. * is done with it.
  1225. * On error, return NULL and set the error message.
  1226. */
  1227. char *__PHYSFS_platformCurrentDir(void);
  1228. /*
  1229. * Get the real physical path to a file. (path) is specified in
  1230. * platform-dependent notation, as should your return value be.
  1231. * All relative paths should be removed, leaving you with an absolute
  1232. * path. Symlinks should be resolved, too, so that the returned value is
  1233. * the most direct path to a file.
  1234. * The return value will be deallocated with the standard C runtime free()
  1235. * function when the caller is done with it.
  1236. * On error, return NULL and set the error message.
  1237. */
  1238. char *__PHYSFS_platformRealPath(const char *path);
  1239. /*
  1240. * Make a directory in the actual filesystem. (path) is specified in
  1241. * platform-dependent notation. On error, return zero and set the error
  1242. * message. Return non-zero on success.
  1243. */
  1244. int __PHYSFS_platformMkDir(const char *path);
  1245. /*
  1246. * Remove a file or directory entry in the actual filesystem. (path) is
  1247. * specified in platform-dependent notation. Note that this deletes files
  1248. * _and_ directories, so you might need to do some determination.
  1249. * Non-empty directories should report an error and not delete themselves
  1250. * or their contents.
  1251. *
  1252. * Deleting a symlink should remove the link, not what it points to.
  1253. *
  1254. * On error, return zero and set the error message. Return non-zero on success.
  1255. */
  1256. int __PHYSFS_platformDelete(const char *path);
  1257. /*
  1258. * Create a platform-specific mutex. This can be whatever datatype your
  1259. * platform uses for mutexes, but it is cast to a (void *) for abstractness.
  1260. *
  1261. * Return (NULL) if you couldn't create one. Systems without threads can
  1262. * return any arbitrary non-NULL value.
  1263. */
  1264. void *__PHYSFS_platformCreateMutex(void);
  1265. /*
  1266. * Destroy a platform-specific mutex, and clean up any resources associated
  1267. * with it. (mutex) is a value previously returned by
  1268. * __PHYSFS_platformCreateMutex(). This can be a no-op on single-threaded
  1269. * platforms.
  1270. */
  1271. void __PHYSFS_platformDestroyMutex(void *mutex);
  1272. /*
  1273. * Grab possession of a platform-specific mutex. Mutexes should be recursive;
  1274. * that is, the same thread should be able to call this function multiple
  1275. * times in a row without causing a deadlock. This function should block
  1276. * until a thread can gain possession of the mutex.
  1277. *
  1278. * Return non-zero if the mutex was grabbed, zero if there was an
  1279. * unrecoverable problem grabbing it (this should not be a matter of
  1280. * timing out! We're talking major system errors; block until the mutex
  1281. * is available otherwise.)
  1282. *
  1283. * _DO NOT_ call __PHYSFS_setError() in here! Since setError calls this
  1284. * function, you'll cause an infinite recursion. This means you can't
  1285. * use the BAIL_*MACRO* macros, either.
  1286. */
  1287. int __PHYSFS_platformGrabMutex(void *mutex);
  1288. /*
  1289. * Relinquish possession of the mutex when this method has been called
  1290. * once for each time that platformGrabMutex was called. Once possession has
  1291. * been released, the next thread in line to grab the mutex (if any) may
  1292. * proceed.
  1293. *
  1294. * _DO NOT_ call __PHYSFS_setError() in here! Since setError calls this
  1295. * function, you'll cause an infinite recursion. This means you can't
  1296. * use the BAIL_*MACRO* macros, either.
  1297. */
  1298. void __PHYSFS_platformReleaseMutex(void *mutex);
  1299. #ifdef __cplusplus
  1300. }
  1301. #endif
  1302. #endif
  1303. /* end of physfs_internal.h ... */