physfs_internal.h 86 KB

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