Commit Graph

60 Commits

Author SHA1 Message Date
Vincent Herbet
a69a015189
Fix open_dir not working properly when called recursively (#467) 2017-11-27 12:08:51 +01:00
IgnacioFDM
2d049b7ff3 Fix signed/unsigned mismatch warning (#428)
* Fix signed/unsigned mismatch warning

* Fix GCC type warnings
2017-04-04 10:32:04 +02:00
Karol Szuster
9551c70c59 Rework build pathname functions (#422)
* Rework build_pathname* functions

* Replace old platform defines with the new ones

* Correct usage of build_pathname_r()

* Fix inconsistencies (white spaces)

* Remove useless defines
2017-03-11 19:26:25 +01:00
Arkshine
8633337bbd Fix set_amxstring_utf8 insconsistency 2015-06-29 12:42:57 +02:00
Arkshine
10c0204b16 Fix fgets native not setting the plugin buffer on null result 2015-04-12 20:20:21 +02:00
Arkshine
52c73126e1 VFS: Fix various things
- The "ALL" fake pathID is replaced by what does SM, having a public var NULL_STRING which will acts as NULL when needed.
  To make compiler accepting public array, this patch was needed: https://hg.alliedmods.net/sourcemod-central/rev/b12f329def09
- The offset thing in read_dir: considering that's something very specific to this native and that implementation in CDirectory doesn't make sense because of the offset compatibility for windows, all code is now in the native.
2015-03-25 13:50:07 +01:00
Arkshine
8f6b8588c1 VFS: Do not traumatize Nextra 2015-03-23 18:30:22 +01:00
Arkshine
71ab8d560e VFS: Add more sane FileRead/Write* natives to read/write a single value 2015-03-22 11:14:12 +01:00
Arkshine
a580c8c5e5 VFS: Add SetFilePermissions native 2015-03-22 11:13:36 +01:00
Arkshine
0eeb5942a1 VFS: Reflect changes in natives and documentation 2015-03-22 11:12:21 +01:00
Arkshine
48d6a3354a Normalize all the line endings 2015-03-10 16:51:45 +01:00
Arkshine
69c46aff80 Replace all snprintf with UTIL_Format. 2014-08-07 01:42:58 +02:00
Scott Ehlert
1bb54f839e Update license headers for AMXX core. 2014-08-04 13:18:19 -05:00
Arkshine
a86ca1491f Add new string natives/stocks, make some UTF-8 safe (bug 6110, r=ds) 2014-04-30 09:33:03 +02:00
Vincent Herbet
e3a380bbe4 Fix linux warnings (and build?)
Former-commit-id: 21906adfdf35e5deecb10eb286a5b09b706f20a4
2013-06-25 19:06:11 +02:00
Vincent HERBET
e5864c5abf Add GetFileTime returning a file timestamp as a unix timestamp (bug 4543, r=joropito)
Former-commit-id: cf7b8645fa6a14e5be71336df4543901b2c53e0b
2013-06-21 23:09:41 +02:00
Scott Ehlert
40c1fee55a Added support for Mac OS X and building with clang (bug 5601, r=dvander). 2013-02-13 01:14:37 -06:00
David Anderson
0f8c61c1e1 Re-added fflush function (bug 3355, r=sawce). 2009-02-07 23:43:07 +00:00
Christian Hammacher
60b3f30ab3 fixed fs1315 (fread_blocks broken due to typo) 2007-12-26 15:46:06 +00:00
David Anderson
468e6fb9dd added amb909 - LoadFileForMe() 2007-10-22 19:26:45 +00:00
Christian Hammacher
6f590c85f6 fixed bug where fwrite_blocks crashed the server 2007-06-29 21:46:24 +00:00
David Anderson
ea34c2c78a fixed a bug reported by peanut where amx_fwrite() had the wrong sizeof() type 2007-03-07 02:29:54 +00:00
David Anderson
8b8cc3dd6b Fixed bug am46630: rename_file did not have a relative location version 2006-10-31 20:18:44 +00:00
David Anderson
db175082ad Fixed some bugs/warnings that GCC caught 2006-08-17 16:41:41 +00:00
David Anderson
8da4987895 implemented request at28875 2006-04-27 17:31:38 +00:00
Borja Ferrer
a5df31570e added request at28068 (split log files)
fixed all native debug errors in core
2006-04-13 16:29:01 +00:00
Scott Ehlert
f2d21c410b MSVC8/VS2005 Compiling Fixes - 0 errors, 0 warnings. Hurray! 2006-04-06 12:56:45 +00:00
David Anderson
deccf7816c added rmdir() 2006-03-30 00:48:58 +00:00
David Anderson
94c449936d added getc,ungetc,putc 2006-03-29 22:56:18 +00:00
David Anderson
adc2a7d169 initial import of binary logger support code 2006-03-14 19:36:18 +00:00
David Anderson
7dae023a98 fixed bug at26580 2006-03-14 10:01:35 +00:00
David Anderson
2d6c06b82f fixed fclose bug (NiLuJe) 2006-03-01 20:59:08 +00:00
David Anderson
85f14422cb re-added file natives 2006-01-06 22:49:42 +00:00
Borja Ferrer
f7dbc25461 fixed a small typo 2005-09-23 13:01:33 +00:00
Borja Ferrer
ebd4974c75 final cleaned revision (I hope) 2005-09-16 23:48:51 +00:00
Borja Ferrer
76760b221d more cleaned-up code 2005-09-10 20:09:14 +00:00
David Anderson
4609cb409b Whoa! Merged in Pawn! (Small 3.0)
Removed debug handling (will add back in soon)
Ported all amx_Exec()s to forward systems
Deprecated AMX Mod module support (incompatible with Pawn anyway!)
Deprecated many file natives (unused)
Deprecated some functionality of pause/unpause
Fixed some memory deallocation bugs (thanks fysh)
Bumped module API version to 3 (no new M/SDK yet!)
Bumped AMX Mod X version to 1.5!
Merged in CVector changes
2005-07-25 06:03:43 +00:00
David Anderson
fe2d28f711 Ported the new dir commands to linux 2005-07-15 16:14:00 +00:00
David Anderson
116984afed New dir reading natives, new memory outputs 2005-07-13 23:31:02 +00:00
David Anderson
13b6c0764c Added request at15060 by twistedeuphoria 2005-07-07 19:53:02 +00:00
Johnny Bergström
51ff0a2c49 Added stock file_copy to file.inc.
Also fixed fopen to return 0 on files that can't be opened.
Fixed native fopen to take const filename.
2005-05-29 16:36:35 +00:00
Steve Dudenhoeffer
74a1db4417 Upped buffer in write_file (1024->2048) 2004-11-06 21:56:24 +00:00
Pavol Marko
981f41aee0 Fixed problem where file handles could possible stay open 2004-10-03 16:55:12 +00:00
David Anderson
cf137b54ad PM's fix: engclient_cmd is now client_cmd 2004-06-28 18:54:58 +00:00
David Anderson
37d144abe5 Changed from cell->pointer casts to reference handles.
Fixed a memory leak.
2004-06-24 07:02:29 +00:00
Pavol Marko
549e9d6b55 Fixed another memory leak... 2004-05-29 12:18:41 +00:00
Pavol Marko
86b1021f45 Fixed memory leaks in amx_fget* natives 2004-05-28 11:25:28 +00:00
Pavol Marko
58cf8a1416 changed include files order 2004-05-05 18:43:47 +00:00
David Anderson
e6d53c4666 Header fix 2004-05-03 13:34:00 +00:00
Pavol Marko
f8f553d485 nothing important 2004-04-21 19:14:16 +00:00