79 Commits

Author SHA1 Message Date
Arkshine
2d583aa83a Fix a ML parser crash on key with an associated empty value 2015-07-28 15:41:16 +02:00
Arkshine
9223989a01 Fix consistency 2015-07-16 08:11:19 +02:00
Arkshine
c775cfca73 More AMTL conversion - 🔥 CString and CVector 2015-07-13 23:37:20 +02:00
Arkshine
0eeb5942a1 VFS: Reflect changes in natives and documentation 2015-03-22 11:12:21 +01:00
HttrckCldHKS
530d0bf570 Replace CLang file hashing with .st_mtime
Replace CLang file hashing with .st_mtime for performance.
Also, fix a problem in CLangMngr::MergeDefinitionFile.
2015-02-19 21:28:45 +02:00
HttrckCldHKS
c071f53f2c Add new hashers and new natives
Replace the only hasher called MD5 with the ones listed below.

(+) CRC32, MD5, SHA1, SHA256, SHA3 224 BIT, SHA3 256 BIT, SHA3 384 BIT,
SHA3 512 BIT, Keccak 224 BIT, Keccak 256 BIT, Keccak 384 BIT and Keccak
512 BIT.

Add the natives listed below.

(+) hash_string(const string[], hashType:type, output[], const
outputSize)
(+) hash_file(const fileName, hashType:type, output[], const outputSize)
(+) is_arkshine_a_doctor() :  Hidden native, but a sign of recompense
for him being very active since 1.8.3 version of AMX Mod X
(+) get_system_endianness() :  Checks if the system is currently Big
Endian or Little Endian.

Add the following Enum.

(+) hashType {}
(+) sysEndianness {}

Deprecate the following natives.

(-) amx_md5()
(-) amx_md5_file()

It has been tested on Windows and Linux. The sanity checks seems to be
properly working, so no worries about them.

These are useful if people are using Sockets, cURLs or MySQLs in order
to compare hashes of different files On-line for further investigation.
You are not able to check if the files are older or newer, but you can
see if the content is different (Hash Checksum mismatch).

I'm glad I did this. Thanks to
2015-02-16 14:39:45 +02:00
Arkshine
b47aa6871d Replace more snprintf by UTIL_Format. 2014-08-08 12:47:15 +02:00
Scott Ehlert
1bb54f839e Update license headers for AMXX core. 2014-08-04 13:18:19 -05:00
xPaw
2696f0af0e 🔥 Remove compatibility stuff from the core 2014-06-05 23:00:47 +03:00
Lev
75822ec227 Reset the status variable on success (bug 5994, r=arkshine) 2014-04-30 15:42:03 +02:00
Vincent Herbet
af0a1200ab Add client_print_color native (CS only) (bug 5823, r=Nextra)
Former-commit-id: 9e37c60bc543676cbd659621a129bd953fc71473
2013-08-24 01:03:13 +02:00
Vincent Herbet
6139d52a39 Fix dictionary text files parser failing on BOM marking (bug 5858, r=Nextra)
Former-commit-id: 096464e3d5852cde0d91fe407598c970c5495dce
2013-08-16 18:50:56 +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
621c120b71 finished merging in the glorious bcompat changes 2006-09-08 14:11:29 +00:00
Scott Ehlert
557958b408 Removed some amxmod compat stuff for now so this can actually compile and link properly again 2006-09-03 02:39:13 +00:00
David Anderson
78956f3d89 merged bcompat changed into trunk
removed amxmod compat files for now
2006-09-01 03:29:27 +00:00
David Anderson
388711e969 Synced bcompat tree additions and fixes found so far 2006-08-28 11:08:18 +00:00
David Anderson
db175082ad Fixed some bugs/warnings that GCC caught 2006-08-17 16:41:41 +00:00
David Anderson
ccaa4434ad committed new language code 2006-03-19 19:26:29 +00:00
David Anderson
555ac1c7f3 fixed corrupt file loads smashing the stack
added compile of support code
2006-03-18 22:10:05 +00:00
David Anderson
01b58a4635 Fixed dictionary parsing not obeying the carat backtick
Fixed failed translations crashing
Added formatex()
Fixed buffer copyback problems in old usages
2006-02-23 00:02:33 +00:00
David Anderson
2ba0b079ab initial import of new format zomg 2006-02-22 00:33:19 +00:00
David Anderson
1923d42c5f fixed old fmt bug 2006-02-14 20:28:52 +00:00
David Anderson
bf0c1990dd committed new format() code 2006-02-14 12:01:22 +00:00
David Anderson
2c8808aaff fixed formatter bug on bad control code 2006-02-11 22:48:29 +00:00
David Anderson
53c029471f removed usage of CVAR_GET_STRING 2006-02-06 13:10:23 +00:00
Borja Ferrer
cc32f33815 lang debugger uses now make_string for THash 2006-02-06 12:57:14 +00:00
David Anderson
e2c1b8c178 Fixed bug where invalid keys were saved as blank translations
Fixed bug where dictionary caches were invalidated before being used
Loads with MM 5:11 now
2006-02-06 11:13:27 +00:00
Borja Ferrer
7c7422a553 added language debug 2006-01-24 18:47:08 +00:00
David Anderson
0c745590ec Added functions for smashing the stack and memory :) 2006-01-06 14:22:12 +00:00
David Anderson
cbcc91cc09 BETA optimizations 2005-11-22 04:14:07 +00:00
David Anderson
c6fc34a64d Rewrote format() parser to be re-entrant and easier to read
Added various optimizations
Fixed memory leak in sh_tinyhash
2005-11-21 10:04:43 +00:00
David Anderson
f13599177f Rewrote language backend for integrity checking and optimization
Replaced CRC32 system with real hash-map
2005-11-21 01:35:37 +00:00
Borja Ferrer
4040410c97 first attempt on lang error logging 2005-11-20 03:47:47 +00:00
Borja Ferrer
ebd4974c75 final cleaned revision (I hope) 2005-09-16 23:48:51 +00:00
Borja Ferrer
f58c0f4508 added request for EKS at18961 2005-09-15 00:51:27 +00:00
Borja Ferrer
76760b221d more cleaned-up code 2005-09-10 20:09:14 +00:00
Borja Ferrer
52b1d67ca2 latest cleaned files for today (i cant read more :o ) 2005-09-10 03:39:23 +00:00
Pavol Marko
462916d00f Got rid of many annoying warnings MSVC7.1 was reporting 2005-08-27 09:55:32 +00:00
David Anderson
b312da8c63 Fixed bugs GCC caught 2005-07-15 16:28:41 +00:00
David Anderson
611ad2be94 Malformat bug fixes, RC version bump 2005-07-06 03:20:00 +00:00
Pavol Marko
cc4bbadfa2 Added special cases for %% and % at end of phrase for formatting of phrases defined in language definition files. 2004-10-29 13:11:12 +00:00
David Anderson
db4041114f Fixed a bug in amx_client_languages
Added lang_phrase
2004-10-08 19:26:26 +00:00
David Anderson
264dd7a10d Fixed error outputs for CLang 2004-10-05 19:29:35 +00:00
Pavol Marko
87ff81a499 Added important comment 2004-10-03 17:03:14 +00:00
David Anderson
26349730e5 Fixed locking issue with lang files 2004-09-17 01:59:27 +00:00
Pavol Marko
c7f8b3f965 Added the Format function for C style strings 2004-09-10 21:00:42 +00:00
Pavol Marko
8df987cf95 minor changes 2004-09-04 18:31:59 +00:00
Pavol Marko
de30d647d4 added the %c formatting sequence (untested) 2004-09-04 17:50:03 +00:00
David Anderson
5c6b34b1d8 Fixed some bugs in CLang 2004-09-02 00:22:56 +00:00