Commit Graph

27 Commits

Author SHA1 Message Date
David Anderson
737a359990 - removed ancient bcompat shim for translations/core.cfg file
- fixed msvc8 whining about BfReadString

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401770
2007-12-04 15:58:07 +00:00
David Anderson
172f28d676 fixed a number of memory complaints from valgrind. most of these were minor, but there was a rather disturbing memory over-read error in the SMC text parser. correcting this brought about a rewrite of its API. this change is BACKWARDS INCOMPATIBLE for C++ extensions, but it was sorely needed, and the API is now both future-extensible and much easier to work with. plugins didn't need any changes, but they will probably get the better API changes in a future release. as a special bonus, the RawLine() hook is now much less expensive since the entire stream buffer won't be shoved through it like before!
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401662
2007-10-31 05:04:07 +00:00
David Anderson
53156446d4 - updated basecommands and basefuncommands to use ProcessTargetString() and ShowActivity2()
- moved a bunch of translation phrases around
- ShowActivity2() no longer prints to console
- fixed a memory corruption bug in the translation parser

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401630
2007-10-21 23:50:37 +00:00
David Anderson
02e8977ea0 - added ShowActivity2() which has a more convenient display algorithm
- added commandfilters.inc and ProcessTargetString(), an extensible API for processing a command target and getting back formatted replies + player lists.  This makes SearchForClients() look paltry, and base plugins will slowly be moved to support the new functionality
- removed IsPlayerAlive() from SDKTools, added it to Core
- fixed a small bug in re-entrant translations
- core.games.txt is now automatically added to all plugins

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401627
2007-10-21 20:06:30 +00:00
David Anderson
017da078ef header movement #1 - reduced usage of TextParsers.h
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401412
2007-09-11 15:10:18 +00:00
Borja Ferrer
4fe064d43e added amb709, translator obeys cl_language
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401358
2007-08-19 13:25:42 +00:00
Scott Ehlert
a1009aed38 Updated license headers on virtually all files with extremely minor changes in the name of some sort of strange consistency.
All plugin and include file headers also have been changed to say about GPL3 instead of GPL2.

(This day shall henceforth be known as the Eighty Column Massacre of '07)

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401336
2007-08-15 06:19:30 +00:00
David Anderson
38ddbb37b9 updated more header files (mostly internal now)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401237
2007-08-01 02:12:47 +00:00
David Anderson
59f47dfd17 fixed another translator cache issue
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401140
2007-07-19 03:22:10 +00:00
David Anderson
c4a913231a fixed various memory relocation corruption bugs in the translator
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401139
2007-07-19 02:08:42 +00:00
David Anderson
9c531423fb added request amb588 - language info embellishment
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401111
2007-07-14 01:04:15 +00:00
David Anderson
28d24a7f97 - renamed translation files from .cfg -> .txt
- renamed trans core file to core.phrases.txt
- renamed trans common file to common.phrases.txt
- added some backwards compat so this doesn't break everyone's plugins

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401019
2007-06-24 21:14:06 +00:00
David Anderson
c5b593a275 added a bcompat hack to deal with upcoming .cfg -> .txt changes in core
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401018
2007-06-24 21:04:20 +00:00
David Anderson
07d6a7d7ee fixed bug amb395
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40939
2007-06-15 01:58:13 +00:00
David Anderson
8303b79ef7 fixed a crash bug in translation file loading where big files would reset the string cache and not update pointers
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40893
2007-06-06 17:34:16 +00:00
David Anderson
dee3a2b3cf added some levelchange functions to SMGlobalClass to get rid of some messy crap
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40679
2007-04-07 03:58:20 +00:00
Scott Ehlert
385a4408da Oh. This variable was no longer used.
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40676
2007-04-05 10:59:26 +00:00
Scott Ehlert
e677d5d5de Various things:
- Fixed inline translations when using %T
- "Improved" caching of server language
- Renamed Translator::GetServerLanguageCode() to GetServerLanguage()
- Added some more comments to sm_globals.h
- Natives folder in project file mysteriously was moved inside Interfaces, so moved it back o_O
- DS hates empty if statements :o

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40675
2007-04-05 10:55:40 +00:00
David Anderson
eb006bb665 fixed various retarded errors
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40671
2007-04-05 05:45:35 +00:00
David Anderson
2cb7b5a06a whoops
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40670
2007-04-05 05:28:44 +00:00
David Anderson
f93711bd82 changed the API around a bit to be more flexible
removed some ghastly unneeded stuff from the Translator
added Logger::LogFatal, experimental

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40669
2007-04-05 05:25:11 +00:00
Scott Ehlert
ddfe6d84d6 Ugh, initial import of core config file stuff
Warning: This is positively terrible code.
It works, but needs A LOT of work still :\

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40667
2007-04-05 03:02:00 +00:00
Scott Ehlert
bb92fc06a6 More consistency of some sort...
Oh god, what has possessed me to do this?

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40659
2007-03-22 21:50:20 +00:00
Scott Ehlert
5b3a3cef27 Made this more consistent or something...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40658
2007-03-22 21:12:17 +00:00
David Anderson
2c70ec1a8c refactored singleton class names
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40622
2007-03-15 04:45:17 +00:00
David Anderson
5b1f1d19c1 part 2 of singleton renaming
--HG--
rename : core/CGameConfigs.cpp => core/GameConfigs.cpp
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40598
2007-03-10 21:26:04 +00:00
David Anderson
749ddc8c15 part 1 of singleton renaming
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40597
2007-03-10 21:18:07 +00:00