physfs_internal.h 84 KB

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