y_files.inc 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /*----------------------------------------------------------------------------*-
  2. ========================
  3. y_files - Include File
  4. ========================
  5. Description:
  6. Provides native declarations for YSF functions.
  7. Legal:
  8. Version: MPL 1.1
  9. The contents of this file are subject to the Mozilla Public License Version
  10. 1.1 (the "License"); you may not use this file except in compliance with
  11. the License. You may obtain a copy of the License at
  12. http://www.mozilla.org/MPL/
  13. Software distributed under the License is distributed on an "AS IS" basis,
  14. WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  15. for the specific language governing rights and limitations under the
  16. License.
  17. The Original Code is the YSI 2.0 SA:MP plugin.
  18. The Initial Developer of the Original Code is Alex "Y_Less" Cole.
  19. Portions created by the Initial Developer are Copyright (C) 2008
  20. the Initial Developer. All Rights Reserved.
  21. Contributor(s):
  22. Peter Beverloo
  23. Marcus Bauer
  24. Special Thanks to:
  25. SA:MP Team past, present and future
  26. Version:
  27. 0.1
  28. Changelog:
  29. 15/09/10:
  30. First version split from the old YSF.
  31. Functions:
  32. Public:
  33. -
  34. Core:
  35. -
  36. Stock:
  37. -
  38. Static:
  39. -
  40. Inline:
  41. -
  42. API:
  43. -
  44. Callbacks:
  45. -
  46. Definitions:
  47. -
  48. Enums:
  49. -
  50. Macros:
  51. -
  52. Tags:
  53. -
  54. Variables:
  55. Global:
  56. -
  57. Static:
  58. -
  59. Commands:
  60. -
  61. Compile options:
  62. -
  63. Operators:
  64. -
  65. -*----------------------------------------------------------------------------*/
  66. /*----------------------------------------------------------------------------*-
  67. =================
  68. y_ini Libraries
  69. =================
  70. -*----------------------------------------------------------------------------*/
  71. // File functions
  72. native ffind(const pattern[], filename[], len, &idx);
  73. native frename(const oldname[], const newname[]);
  74. // Directory functions
  75. native dfind(const pattern[], filename[], len, &idx);
  76. native dcreate(const name[]);
  77. native drename(const oldname[], const newname[]);