physfs_internal.h 86 KB

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