262 Commits

Author SHA1 Message Date
Sposito
fbcf0a3eea Update copyright year for 2020 2019-12-31 10:07:29 +00:00
Kamil Chojnowski
ba12f55fe4 Move isDirectory logic from an anonymous namespace to ResourceManager::directoryExists 2019-10-11 03:23:01 +02:00
Konrad Kuśnierz
dd0303feee
Merge pull request #1046 from diath/fix_deprecated_physfs_funcs
Fix use of deprecated PhysFS functions
2019-10-10 08:14:08 +02:00
Kamil Chojnowski
6f13914a92 Fix use of deprecated PhysFS functions 2019-10-10 06:30:31 +02: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
Kamil Chojnowski
501552dc23 Fix clearing a config key 2019-06-02 20:05:34 +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
kenfal
47272519b5 Fix missing loop counter 2015-07-10 21:41:53 -03:00
Gabriel Pedro
04b516a1a0 Update copyright for 2015 2015-03-04 10:36:51 -04:00
Dominique Verellen
682694cc07 Update graphicalapplication.cpp 2014-09-29 11:28:13 -05:00
BenDol
d7429c201c Started 1050 implementation and fix ups:
* Dat now loads (new animations aren't yet functional).
* Fixed the way we reference client versions.

TODO: Write new animation functionality & find out protocol changes.
2014-08-03 10:02:28 +12:00
Henrique Santiago
72b3403728 Fix filestream read 2014-05-09 18:56:15 -03:00
BenDol
1baad726ae Just use g_configs.unload(config) to unload config files.
Avoids concurrent modification errors.
2014-04-06 15:29:02 +12:00
BenDol
8b3f3b11f0 Can now unload a Config by config:unload() 2014-04-02 02:34:12 +13:00
BenDol
2d84fae2c8 Can now create new configs on the fly using: local config = g_configs.create(file) 2014-04-02 01:54:13 +13:00
BenDol
5204e3ac03 Proper termination and initialization of the ConfigManager. 2014-04-02 00:30:17 +13:00
BenDol
547b18db9a Update copyright for 2014 2014-04-01 18:36:42 +13:00
BenDol
37f9d3e200 Fix building issues. 2014-04-01 18:09:25 +13:00
BenDol
b295053662 Finished stable implementation (as far as tested), still requires more testing. 2014-04-01 16:27:33 +13:00
BenDol
61059e66ec Started implementing ability to load custom config files (currently unstable).
Feel free to help out with this if you like :)
2014-04-01 05:43:31 +13:00
Henrique Santiago
b7b8fdfd0c Fix BinaryTree skip, small otb changes 2014-02-13 00:42:06 -02: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
conde2
4dcb30110f Use of clamp 2013-12-01 00:48:36 -02:00
Ahmed Samy
25d3019d1a force use of template version of std::min/max 2013-11-14 00:02:47 +02:00
Ahmed Samy
1711d8bdaf Revert "replace all std::min/std::max with just min/max"
This reverts commit 28d967cccea6d3b9b639740f41478338b22cecdb.
2013-11-13 23:53:54 +02:00
Ahmed Samy
28d967ccce replace all std::min/std::max with just min/max
This errors out in MSVC since the inclusion of winsock2.h, CL uses the
macro not the template version.
2013-11-13 23:48:10 +02:00
Eduardo Bart
d32f71c2b9 Partial support for protocol 1020 and minimize lag
I am able to login in global Tibia however there are game protocol errors
* there is a new opcode 167, which I dont know what it is
* there are changes in opcode 147 which handles text messages that I don't know too

Connection writing was optimized, playing "lag" should improve by 10ms,
and improve much more in systems with low fps
2013-11-10 20:10:04 -02:00
Eduardo Bart
0891e2b30a Add C++ traceback to errors 2013-03-12 01:36:36 -03:00
Eduardo Bart
64fc4570c9 Try to fix compilation for gcc 4.6 [3] 2013-03-06 15:47:38 -03:00
Eduardo Bart
392acc0b43 Try to fix compilation for gcc 4.6 [2] 2013-03-06 15:40:47 -03:00
Eduardo Bart
44bf4dcb6e Fix ubuntu compile errors 2013-03-05 02:54:08 -03:00
Eduardo Bart
1dd558d57e Revert "Use boost::thread instead of std::thread"
This reverts commit 71b5c5f2e4450eda5352eccf01a3c7c3488dd5e8.
2013-03-05 01:47:23 -03:00
Eduardo Bart
71b5c5f2e4 Use boost::thread instead of std::thread 2013-03-04 23:06:00 -03:00
Eduardo Bart
0be7bd5360 Implement async dispatcher #221 2013-03-04 18:56:22 -03:00
BeniS
3980f859b7 Forgot to remove header includes 2013-03-03 19:17:48 +13:00
Eduardo Bart
c392bcca90 Fix win32 alt bug 2013-03-03 00:00:13 -03:00
BeniS
3ca85cbe87 Removed Position dependencies inside the framework 2013-03-02 18:33:14 +13: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
04c4943fa8 Remove boost::filesystem dependency 2013-02-22 19:29:58 -03:00
Eduardo Bart
09c937998f Dont use boost locale anymore 2013-02-22 18:49:36 -03:00
Henrique Santiago
dfb0150a7d Fix signalCall, healthinfo tooltips 2013-02-10 01:17:20 -02:00
Ricardo Ianelli
cbeab6f9b0 Moving start messages to lua
Moved start log messages to lua, to make easier to enable/disable those
messages.
2013-02-10 02:28:47 -02:00
Eduardo Bart
cf77df05ca Fix possible leaks in stdext::format 2013-02-05 20:00:28 -02:00
Eduardo Bart
86d06057ca Fixes to compile with libc++ 2013-02-05 18:30:16 -02:00
Eduardo Bart
8d6ccb8d83 Fixes to compile with clang 2013-01-29 14:35:20 -02:00
Eduardo Bart
773837da98 Minor changes in file type handling 2013-01-27 23:23:53 -02:00
Eduardo Bart
835adfb4ce Fix a compile error 2013-01-26 15:17:32 -02:00
Eduardo Bart
6594b2d090 Fix #7 2013-01-26 14:54:19 -02:00