34 Commits

Author SHA1 Message Date
Sposito
fbcf0a3eea Update copyright year for 2020 2019-12-31 10:07:29 +00:00
Kamil Chojnowski
869de6886f Tidy up the source code
* Replaced push_back calls with emplace_back where applicable.
* Replaced size() == 0 and size() != 0 with empty() and !empty().
* Replaced C style loops for range for loops where applicable.
* Fixed mismatching arg names between function declarations and definitions.
* Replaced NULL and 0 (in the context of pointers) with nullptr.
* Remove unnecessary calls to string::c_str() where applicable.
* Replaced deprecated C headers with proper C++ headers.
* Removed unnecessary null pointer checks when deleting pointers
(deleting a null pointer has no effect).
* Fixed a potential memory leak in apngloader.cpp file.
* Replaced unsafe strcpy with strncpy in the demangle_name function.
2019-10-10 00:59:24 +02:00
Bruno Minervino
882be286d9 Update copyright year for 2017 2017-01-13 08:47:07 -02:00
Ranieri Althoff
2f1f62a916
Update copyright year for 2016 2016-07-09 22:11:34 -03:00
Gabriel Pedro
04b516a1a0 Update copyright for 2015 2015-03-04 10:36:51 -04:00
BenDol
547b18db9a Update copyright for 2014 2014-04-01 18:36:42 +13:00
Ahmed Samy
6745bff132 Introduce g_resources.getDirectoryFiles
This can recursively find files in a directory that's not in physfs search
path, this is needed for mapeditor needs, esp the file browser.

We do not want to limit users to the application run directory
so we have to use this.

This function uses boost filesystem.
Prototype:
	g_resources.getDirectoryFiles(directory STRING, filenameOnly BOOL,
	recursive BOOL)

filenameOnly is there if we want to just get the filenames in the
directory.
recursive if we want to loop directories in the directory.
2013-12-25 21:32:49 +02:00
Eduardo Bart
8314b84f69 Add live_textures_reload command 2013-03-01 05:46:55 -03:00
Eduardo Bart
06e2b6eca2 Platform fixes and rework ping 2013-02-24 22:16:45 -03:00
Eduardo Bart
773837da98 Minor changes in file type handling 2013-01-27 23:23:53 -02:00
Eduardo Bart
07959ddc04 Fix a vulnerability in password encryption
* There was an error in the encryption used to save passwords,
  now it's really harder to decrypt the password from the config file
* Other minor changes
2013-01-26 14:38:48 -02:00
Eduardo Bart
0120b7554c Restore support for animated png files
* Rework resource manager
* Add missing files
* Improve some graphics classes
2013-01-08 19:31:41 -02:00
Eduardo Bart
5344a179a4 Many UI improvements and minor fixes 2013-01-08 18:01:47 -02:00
Eduardo Bart
122577a916 Just rename some files
* Fix a server ping issue
2013-01-08 16:32:05 -02:00
Eduardo Bart
8bb115d6d4 Fix issue #134 2012-10-24 18:03:15 -02:00
niczkx
4c369bc823 fix compiling on gcc 4.6 (too early to use 4.7.1...) 2012-07-30 18:52:30 -06:00
Eduardo Bart
73769c62e4 Just some refactoring 2012-07-29 07:32:54 -03:00
Eduardo Bart
bc81c9c8bf Packages system with .otpkg files
When otclient initializes it tries to find all .otpkg files inside the
current search paths (./ ./modules ./addons) and then add them
to the front of current search paths. This way .otpkg can contains
many modules/addons and modifications in a single file that otclient
can recognize.

otpkg files can be compressed files supported by PhysFS, which
are ZIP (.zip) and LZMA (.7z).
2012-07-16 16:35:14 -03:00
Eduardo Bart
aed779a2c8 doc and luabinder changes 2012-06-22 00:14:13 -03:00
Eduardo Bart
8761220deb Refactoring and flexibility changes
* Split game module into game and game_interface
* Move core_lib to corelib
* Move miniwindow to corelib
* Introduce init.lua script for initializing the client, giving much more flexibility
* OTClient is no longer Application derived and is much simpler
2012-06-19 21:16:52 -03:00
Henrique Santiago
4bdcae2f8b improvements to skins 2012-06-19 05:46:49 -03:00
Eduardo Bart
df0147cf64 remove usage of libpng with custom save_png 2012-04-28 21:16:22 -03:00
Eduardo Bart
9cf40d7f53 fix repeated texture allocation bug 2012-04-24 13:18:45 -03:00
Eduardo Bart
8450f1f896 add FileStream class
* minimize memory consumption by using FileStream for loading sprites
2012-04-02 12:51:03 -03:00
Eduardo Bart
7d8d214324 simpli map load/save 2012-01-30 01:11:05 -02:00
Eduardo Bart
30ce5e2ba9 reorganize some stuff 2012-01-04 23:28:29 -02:00
Eduardo Bart
9104305f37 update copyright notice 2012-01-02 14:59:24 -02:00
Eduardo Bart
8638c980ec fix some issues 2011-12-09 13:01:04 -02:00
Eduardo Bart
ffeb34e0e7 make framework more flexible, split cmake files 2011-12-05 04:44:40 -02:00
Eduardo Bart
f548825faf too many changes to list, many regressions were made, master will be UNSTABLE for a few days 2011-12-03 19:52:56 -02:00
Eduardo Bart
fc65f99ead improve window moving, minor changes to enable others apps use otclient framework 2011-11-11 18:26:10 -02:00
Eduardo Bart
f7eac377e7 restore copyright notice 2011-08-28 10:17:58 -03:00
Eduardo Bart
d8cc37afdb reorganize sources 2011-08-15 11:06:15 -03:00
Eduardo Bart
55862b07ad merge total remake 2011-08-13 23:10:27 -03:00