y_natives.inc 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. /**--------------------------------------------------------------------------**\
  2. =================================
  3. y_natives - Obsolete.
  4. =================================
  5. Description:
  6. Obsolete, but still required by y_lock.
  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 utils include.
  18. The Initial Developer of the Original Code is Alex "Y_Less" Cole.
  19. Portions created by the Initial Developer are Copyright (C) 2011
  20. the Initial Developer. All Rights Reserved.
  21. Contributors:
  22. ZeeX, koolk, JoeBullet/Google63, g_aSlice/Slice
  23. Thanks:
  24. JoeBullet/Google63 - Handy arbitrary ASM jump code using SCTRL.
  25. ZeeX - Very productive conversations.
  26. koolk - IsPlayerinAreaEx code.
  27. TheAlpha - Danish translation.
  28. breadfish - German translation.
  29. Fireburn - Dutch translation.
  30. yom - French translation.
  31. 50p - Polish translation.
  32. Zamaroht - Spanish translation.
  33. Dracoblue, sintax, mabako, Xtreme, other coders - Producing other modes
  34. for me to strive to better.
  35. Pixels^ - Running XScripters where the idea was born.
  36. Matite - Pestering me to release it and using it.
  37. Very special thanks to:
  38. Thiadmer - PAWN, whose limits continue to amaze me!
  39. Kye/Kalcor - SA:MP.
  40. SA:MP Team past, present and future - SA:MP.
  41. Version:
  42. 0.1
  43. Changelog:
  44. 25/02/12:
  45. First version.
  46. Functions:
  47. Stock:
  48. -
  49. Inline:
  50. -
  51. Variables:
  52. Global:
  53. -
  54. </remarks>
  55. \**--------------------------------------------------------------------------**/
  56. #if defined _INC_y_natives
  57. #endinput
  58. #endif
  59. #define _INC_y_natives
  60. #include "y_globaltags"
  61. /*#if defined _YSI_MINI_MODE
  62. // Remove all of "file" now.
  63. #undef fopen
  64. #undef fclose
  65. #undef ftemp
  66. #undef fremove
  67. #undef fwrite
  68. #undef fread
  69. #undef fseek
  70. #undef fexist
  71. // Remove dynamic call functions.
  72. #undef CallRemoteFunction
  73. #undef CallLocalFunction
  74. #endif*/
  75. /*native File:fopen(const name[], filemode: mode = io_readwrite) = fopen;
  76. native bool:fclose(File: handle) = fclose;
  77. native File:ftemp() = ftemp;
  78. native bool:fremove(const name[]) = fremove;
  79. native fwrite(File: handle, const string[]) = fwrite;
  80. native fread(File: handle, string[], size = sizeof string, bool: pack = false) = fread;
  81. native fseek(File: handle, position = 0, seek_whence: whence = seek_start) = fseek;
  82. native fexist(const pattern[]) = fexist;
  83. native CallRemoteFunction(const function[], const format[], GLOBAL_TAG_TYPES:...) = CallRemoteFunction;
  84. native CallLocalFunction(const function[], const format[], GLOBAL_TAG_TYPES:...) = CallLocalFunction;*/
  85. /*#if defined _YSI_MINI_MODE
  86. // Remove all of "file" now.
  87. #define fopen _MMD(fopen)
  88. #define fclose _MMD(fclose)
  89. #define ftemp _MMD(ftemp)
  90. #define fremove _MMD(fremove)
  91. #define fwrite _MMD(fwrite)
  92. #define fread _MMD(fread)
  93. #define fseek _MMD(fseek)
  94. #define fexist _MMD(fexist)
  95. // Remove dynamic call functions.
  96. #define CallRemoteFunction _MMD(CallRemoteFunction)
  97. #define CallLocalFunction _MMD(CallLocalFunction)
  98. #endif*/
  99. #if defined YSI_LOCK_MODE
  100. new
  101. YSI_gLockData[21];
  102. #endif