physfs_internal.h 82 KB

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