Commit Graph
26 Commits
Author SHA1 Message Date
Karol Szuster d6e71c8f4f Little cleanup (#461)
* Remove FAKEMETA leftovers

* Move "require_module" native to where it belongs

* Remove broken AMX module support

* Remove useless natives

* Remove "alloc_amxmemory" and "free_amxmemory" functions

* Remove "strip_name" function

* Clean engine a bit

* Export "GiveFnptrsToDll" (Windows) (Core)

* memcpy -> ke::SafeStrcpy

* Export GiveFnptrsToDll in modules

* Update msvc project files
2017-12-07 18:45:16 +01:00
Karol Szuster 361a6cc9e0 Introduce a JSON module (#379)
* Add JSON module

* Merge upstream changes

Fix memory leaks

* Add json include to PackageScript

* Merge upstream changes

Fix memory leaks and increase max nesting

* Fix documentation

* Use AutoPtr in managing JSON handles

* Merge upstream changes

Order of items in an array is preserved after removing an item.

* Merge upstream

* Fix crash

* Add VS projects files and fix mixed tab/spaces

* Remove erroring on "json_free"

* Add comments to "json.inc" file

* Remove overloaded operators

* Use of "override" keyword where needed

* Fix parameter's name
2017-09-30 20:23:12 +02:00
Karol Szuster f96cb9a3b6 Use smart pointers in NativeHandle class (#457)
* Use AutoPtr in natives handles

* Use size_t type instead of int in natives handles

* Use pre decrement operator in destroy method
2017-09-25 16:52:12 +02:00
Karol Szuster 604ecbd31e Fix build clang 3.9+ (#458)
* clang 4.0: fix ordered comparison between pointer and zero

* clang 4.0: fix taking address of packed member

Maybe someday someone will properly fix it

* clang 3.9: passing an object that undergoes default argument promotion to 'va_start' has undefined behavior

Someday proper fix?
2017-09-25 15:22:53 +02:00
Karol Szuster 123246cc84 Port code to AMTL (#427)
* Remove CQueue

* Remove duplicated files

* Move sh_tinyhash to public/

* Remove sm_queue

Make NVault use of ke::Deque

* Remove sh_string (unused)

* Remove CList dependency from CTask

* Remove CList dependency from CEvent

* Remove CList dependency from modules' functions

* Remove CList dependency ForceObject

* Remove CList dependency Player Auth

* Remove left CList dependencies

* Fix msvc project files

* Update AMTL

* Use InlineList for CScript

* Use InlineList for CModule

* Use Vector for Player Auth
2017-04-14 19:36:59 +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
Karol Szuster b7773ba11f Fix sockets crash (#418) 2017-03-04 14:14:08 +01:00
Karol Szuster 79d9fc530d Update AMTL (#390) 2016-12-31 23:49:46 +01:00
Karol Szuster e3ae451c09 Add missing format param (#391) 2016-11-25 11:26:58 +01:00
Karol Szuster e95099817b Allow execute forwards without need to create variable for returned value (#382)
We don't need to create variable to store value returned by forward when we ignore it.
2016-09-01 10:37:14 +02:00
Karol Szuster ea43a61094 Update hashing library (#384) 2016-08-22 11:21:46 +02:00
Karol Szuster 446a1a5108 Fix compilation error for GCC 6.1
Fix compilation error due -Wmisleading-indentation
2016-05-04 15:01:29 +02:00
Karol Szuster 53f9144fc3 Values by reference in forwards 2016-04-05 18:51:18 +02:00
Karol Szuster aaa2934595 Extend "read_argv" native 2016-03-28 20:05:56 +02:00
Karol Szuster 5ad1efd698 Fix description of "set_user_info" native 2016-03-23 17:27:15 +01:00
Karol Szuster 5a3f4be04e message_stocks.inc: Cache messages id 2016-03-20 13:04:48 +01:00
Karol Szuster cb87fa12e1 Add extra parameters to cs_get_user_weapon native
Add clip & ammo as optional as get_user_weapon native has
2016-02-17 20:46:42 +01:00
Karol Szuster f3ebe71dd1 Fix gamedata 2016-02-08 13:24:51 +01:00
Karol Szuster 0e8d876c5d Move Cvar_DirectSet to gamedata 2016-01-21 23:50:07 +01:00
Karol Szuster 62a5c54a18 Add client_connectex & extend client_authorized forward 2015-12-22 16:36:51 +01:00
Ni3znajomy cc12f0a0a4 Fix mistake 2015-07-11 20:18:43 +02:00
Ni3znajomy 92c2c84617 Update copyright year 2015-03-29 20:01:25 +02:00
Ni3znajomy 4d3c49f93b Fix checking cvar's bounds 2015-03-26 21:31:16 +01:00
Karol Szuster e7e9994b73 Updated PL translations
Updated PL translations
2014-12-28 20:56:52 +01:00
Karol Szuster 47d6f849f2 Added missing dictionary's key to PL translation.
Added TRANSF_SILENT key to PL translation.
2014-12-28 20:55:54 +01:00
Karol Szuster 47413928c8 Fix a typo in documentation. 2014-08-29 16:48:30 +02:00