physfs_internal.h 84 KB

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