Commit Graph

4271 Commits

Author SHA1 Message Date
Arkshine
29eb4e4647 Fix documentation. 2014-08-07 01:18:45 +02:00
Arkshine
6b5387f428 Fix documentation. 2014-08-07 01:16:44 +02:00
Arkshine
a0852adf18 Fix wrong log error message. 2014-08-07 00:53:15 +02:00
Valentin Grünbacher
c1ed795196 sockets: Convert file to UTF-8 2014-08-07 00:51:17 +02:00
Arkshine
6da2078067 Replace snprintf by UTIL_Format. 2014-08-07 00:51:01 +02:00
Valentin Grünbacher
9a0a52b7b2 amxmodx: Fix typos, touch up some descriptions, remove/merge lonely comments 2014-08-07 00:46:16 +02:00
Arkshine
8d2770f2f2 Put back original SM headers. 2014-08-07 00:43:29 +02:00
Valentin Grünbacher
37e22dc22f amxmodx: Fifth batch of documentation updates 2014-08-07 00:19:24 +02:00
Vincent Herbet
fb4d05fd60 Fix documentation. 2014-08-06 19:39:19 +02:00
Arkshine
3369f6d115 Update license in pawn includes and add them in project files. 2014-08-06 09:24:09 +02:00
Arkshine
4b652198f0 Fix compilation. 2014-08-06 09:17:54 +02:00
Arkshine
2d07189e38 Fix few issues. 2014-08-06 09:17:53 +02:00
Arkshine
b97093a778 Add more debug in plugin. 2014-08-06 09:17:51 +02:00
Arkshine
287cc1a0e8 Update MakeFile. 2014-08-06 09:17:50 +02:00
Arkshine
7317f1d233 Update PackageScript. 2014-08-06 09:17:48 +02:00
Arkshine
037af0aec2 Split INI/SMC API. 2014-08-06 09:17:47 +02:00
Arkshine
0cf5a2e12f Expose ParseFile_INI to API.
Some minor changes have been made in parser:

- Added ReadINI_ParseStart and ReadINI_ParseEnd call.
- Function returns SMCResult instead of bool. To avoid unecessary complexity and duplicating natives, this feels more appropriate to let these functions to share some SMCResult and SMCParse constants. Since properly documented, this should be ok.
- Made sure curtok is set to 0 when ptr_val is null, otherwise unexpected value would be passed into the forward.
2014-08-06 09:17:45 +02:00
Arkshine
9af7931a79 Introduce TextParser API. 2014-08-06 09:17:43 +02:00
Vincent Herbet
5fbc5c074d Merge pull request #99 from Arkshine/geoip-update-bis
Update Geoip module.
2014-08-05 23:26:27 +02:00
Arkshine
023c1e3baf Geoip: Fix missing continent id and fix indentation. 2014-08-05 23:00:00 +02:00
Valentin Grünbacher
3a232f1576 message_const: Add placeholder titles for TE_* messages missing a description 2014-08-05 20:18:16 +02:00
Arkshine
adde73123f Geoip: Update license headers.
Hope this won't break merging.
2014-08-05 20:14:22 +02:00
Arkshine
178608c5f8 Geoip: Make some natives UTF-8 safe. 2014-08-05 20:12:26 +02:00
Arkshine
6babcafbec Geoip: Add a fallback to default language (en) in case of unsuccessful lookup with user's language. 2014-08-05 20:12:24 +02:00
Arkshine
ec3ff1deb9 Geoip: Add command to get database metadata and to dump all data of an IP address for debugging purposes.
And for some reason some project files were not pushed.
2014-08-05 20:12:23 +02:00
Arkshine
67bfe6bb36 Geoip: Fix possible buffer overflow. 2014-08-05 20:12:21 +02:00
Arkshine
17e0ab99e6 Geoip: Update documentation. 2014-08-05 20:12:20 +02:00
Arkshine
674600bab2 Geoip: Reorganize and update project files. 2014-08-05 20:11:31 +02:00
Valentin Grünbacher
9885c926e9 message_const: Fix up all headings and move notes into the new headings 2014-08-05 20:09:57 +02:00
Arkshine
52543481dd Geoip: Increase buffer and fix potential overflow crash. 2014-08-05 20:09:18 +02:00
Arkshine
d2ed9e70cd Geoip: Add an optional parameter in some natves to get a result in player's language.
This is new with Geoip2 database where some entries, like country, city, etc, are translated in several languages.
So far: de, en, es, fr, ru, pt-BR, zh-CN.
2014-08-05 20:09:16 +02:00
Arkshine
210cba53b9 Geoip: Fix stripPort typo. 2014-08-05 20:08:31 +02:00
Arkshine
abaee9f4a3 Geoip: Add geoip_continent_name() native. 2014-08-05 20:08:30 +02:00
Arkshine
fc19f53ea9 Geoip: Add geoip_continent_code() native. 2014-08-05 20:08:28 +02:00
Arkshine
81d56dfdc0 Geoip: Add geoip_distance() native. 2014-08-05 20:08:27 +02:00
Arkshine
6941e406f4 Geoip: Add geoip_latitude() and geoip_longitude() natives. 2014-08-05 20:08:25 +02:00
Arkshine
b439753ac5 Geoip: Add geoip_timezone() native. 2014-08-05 20:08:24 +02:00
Arkshine
c11f721ad4 Geoip: Add geoip_region_name() native. 2014-08-05 20:08:22 +02:00
Arkshine
b61ed9fa3e Geoip: Add geoip_region_code() native. 2014-08-05 20:08:20 +02:00
Arkshine
95bc1703a6 Geoip: Add geoip_city() native. 2014-08-05 20:08:19 +02:00
Arkshine
0d59209e4c Geoip: Replace GeoIP.dat by GeoLite2-Country.mmdb. 2014-08-05 20:08:17 +02:00
Arkshine
7dd1ea3719 Geoip: Convert code to libmaxminddb API. 2014-08-05 20:08:16 +02:00
Arkshine
9d59de41a2 Geoip: Fix compilation #4. 2014-08-05 20:07:10 +02:00
Arkshine
6916eb8613 Geoip: Module should clear memory at mapchange. 2014-08-05 20:07:08 +02:00
Arkshine
94552e5503 Geoip: Fix compilation #3
Update project files.
2014-08-05 20:04:55 +02:00
Arkshine
936d4f4f6d Geoip: Fix compilation #2
A trick to bypass issue where variable creaton was required at the top of function.
2014-08-05 20:04:54 +02:00
Arkshine
526a70a6d7 Geoip: Fix compilation #1
MSVC doesn't fully implement C99, ssize_t, stdbool.h, etc have to be provided manually.
Most of fixes are casting type and unpacking structure.
2014-08-05 20:04:52 +02:00
Arkshine
58a64597e8 Geoip: Import libmaxminddb library which supports Geoip2 databases. 2014-08-05 20:04:50 +02:00
Arkshine
209f46a235 Geoip: Remove GeoIP library. 2014-08-05 20:04:49 +02:00
Valentin Grünbacher
2659e63483 amxconst: Add some more structure 2014-08-05 18:59:08 +02:00