physfs_internal.h 82 KB

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