Commit graph

84 commits

Author SHA1 Message Date
Renato
8a17e720ec everything related to file read/write, started to use conventional string. 2022-06-20 18:46:32 -03:00
Eduardo Dantas
27a3133a27
Fix linux compilation, convert some std::string to std::string_view (#281) 2022-06-03 11:47:16 -03:00
Renato Machado
e9edab8f95
string to string_view
https://www.learncpp.com/cpp-tutorial/an-introduction-to-stdstring_view/
2022-06-02 23:19:29 -03:00
Renato
5b9c26f1de some post to pre inc/dec 2022-05-26 21:04:26 -03:00
Renato
99879f1c65 removed redundant codes/cast and add const 2022-05-19 01:26:29 -03:00
Renato
cf6cd6ab9e reverse loop with std::views::reverse
need update Visual Studio to 17.2.1
2022-05-19 00:01:36 -03:00
Renato
023d34fb99 update copyright 2022-05-18 21:05:59 -03:00
Renato Machado
ba3d562056
Cleanup (#254) 2022-04-07 10:27:01 -03:00
Renato Machado
401e28c0d1
Better format (#249) 2022-04-04 20:57:52 -03:00
Renato Machado
aebe931805
code cleanup/modernized 2021-12-03 13:59:39 -03:00
scopp
c0496eb9c9
fix warning comparison of diff expresions: ‘int’ and ‘const size_t’ 2021-11-27 15:25:31 +01:00
Renato Machado
cc66a95085
Replacement of some methods to use native lib 2021-11-25 21:34:36 -03:00
Mrpox
c51a108e64
Encryption System by @Mrpox (#169)
Co-authored-by: Renato <mehahx@gmail.com>
2021-11-24 23:12:20 -03:00
Renato
b1d060ea10 code c++ formatted 2021-07-19 19:21:06 -03:00
Leandro Matheus
f2575e63b0 Fix compilation error and warnings 2021-04-05 23:14:29 -03:00
Renato
7ca37bd0bd Merge branch 'pr/31' into cache-for-all 2020-08-31 21:24:22 -03:00
vfjpl
9c1f519f8a
resourcemanager:[bug fix] directoryExists method should resolvePath before checking (#1102) 2020-08-29 17:35:42 +02:00
Renato
5e85192031 goback framework code 2020-07-02 13:00:13 -03:00
Renato
f1eb744972 goback framework code 2020-07-02 12:48:32 -03:00
Renato
07b9353fb2 cleanup 2020-07-01 02:42:12 -03:00
Renato
021839cede consistency 2020-07-01 01:43:24 -03:00
Renato
afc35ca35d consistency 2020-07-01 01:01:28 -03:00
Renato
e40d8347a0 Update
- Removed Spiral Mode
- Removed DrawFlags
- Tile and Map Class reworked(Decreased Interactions), slight increase in FPS
- Code Cleanup
- Fixed most Warnings
2020-06-20 01:25:54 -03:00
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
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
04c4943fa8 Remove boost::filesystem dependency 2013-02-22 19:29:58 -03:00
Eduardo Bart
cf77df05ca Fix possible leaks in stdext::format 2013-02-05 20:00:28 -02: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
1674575dc0 Minor fix 2013-01-23 13:47:26 -02:00
Eduardo Bart
3f882d9e6c Disable path find debugging 2013-01-23 13:15:02 -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
Henrique Santiago
a306027cec Fixed skins path 2012-08-23 04:17:38 -03:00
niczkx
6feaeff8cc Fix NPC/Monster rendering for OTBM 2012-08-07 03:12:44 -06:00
Eduardo Bart
3bac3dcbb4 Rework stdext classes
Implement new classes:
* stdext::any => ligher replacement for boost::any
* stdext::packed_any => like any but optimized to use less memory
* stdext::shared_object => ligher replacement for std::shared_ptr
* stdext::shared_object_ptr => replacement for boost::intrusive_ptr
* stdext::fast_storage => for storing dynamic data
* stdext::packed_storage => same but with less memory
* stdext::packed_vector => std::vector with less memory

Compiling should be a little faster now because global boost including
is not needed anymore
2012-08-01 09:23:35 -03:00
Eduardo Bart
1c3e630237 Improve modules and sandbox system 2012-07-23 21:22:38 -03:00
niczkx
02f89dd8be fixes 2012-07-17 16:12:29 -03:00