physfs_internal.h 73 KB

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