physfs_internal.h 81 KB

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