physfs_internal.h 74 KB

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