1
0

y_natives.inc 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. \*----------------------------------------------------------------------------*/
  55. #include "y_globaltags"
  56. /*#if defined _YSI_MINI_MODE
  57. // Remove all of "file" now.
  58. #undef fopen
  59. #undef fclose
  60. #undef ftemp
  61. #undef fremove
  62. #undef fwrite
  63. #undef fread
  64. #undef fseek
  65. #undef fexist
  66. // Remove dynamic call functions.
  67. #undef CallRemoteFunction
  68. #undef CallLocalFunction
  69. #endif*/
  70. /*native File:fopen(const name[], filemode: mode = io_readwrite) = fopen;
  71. native bool:fclose(File: handle) = fclose;
  72. native File:ftemp() = ftemp;
  73. native bool:fremove(const name[]) = fremove;
  74. native fwrite(File: handle, const string[]) = fwrite;
  75. native fread(File: handle, string[], size = sizeof string, bool: pack = false) = fread;
  76. native fseek(File: handle, position = 0, seek_whence: whence = seek_start) = fseek;
  77. native fexist(const pattern[]) = fexist;
  78. native CallRemoteFunction(const function[], const format[], GLOBAL_TAG_TYPES:...) = CallRemoteFunction;
  79. native CallLocalFunction(const function[], const format[], GLOBAL_TAG_TYPES:...) = CallLocalFunction;*/
  80. /*#if defined _YSI_MINI_MODE
  81. // Remove all of "file" now.
  82. #define fopen _MMD(fopen)
  83. #define fclose _MMD(fclose)
  84. #define ftemp _MMD(ftemp)
  85. #define fremove _MMD(fremove)
  86. #define fwrite _MMD(fwrite)
  87. #define fread _MMD(fread)
  88. #define fseek _MMD(fseek)
  89. #define fexist _MMD(fexist)
  90. // Remove dynamic call functions.
  91. #define CallRemoteFunction _MMD(CallRemoteFunction)
  92. #define CallLocalFunction _MMD(CallLocalFunction)
  93. #endif*/
  94. #if defined YSI_LOCK_MODE
  95. new
  96. YSI_gLockData[21];
  97. #endif