26 Commits

Author SHA1 Message Date
yvt
701105f916
Change the return type of file opening functions to std::unique_ptr<_>
This also fixes a memory leak in `MainScreenHelper::SaveFavorites`.
2019-07-23 22:14:10 +09:00
yvt
6e262ea6ec
Add stmp::make_unique
This template function is a polyfill of `std::make_unique`, which is
unavailable in GCC 4.9 (should we even be supporting this old thing?).
2019-07-20 16:17:10 +09:00
yvt
60fd3191c5
Remove Handle::operator T*(), discouraging conversion to raw pointers
It was replaced by `Handle::GetPointerOrNull()`. Every use of
`GetPointerOrNull` should be reviewed. Some of them were already removed.
2019-07-20 15:47:42 +09:00
yvt
c910bd4846
Remove Mutex, replacing their uses with std::{mutex, recursive_mutex} 2019-05-25 15:00:32 +09:00
yvt
36fa59fe01 Refactor MainScreenHelper
- Rename methods to follow the general naming convention
- Use glorious lambdas in place of a 😱functor😱
- Make other minor modifications
- Use a smart pointer
- clang-format
- Remove an unused variable
- Remove redundant copies
- Use atomics in place of a heavy-weight mutex
2017-12-22 22:00:52 +09:00
yvt
49cc61c573 Use more smart pointers and modern language constructs 2017-12-15 23:05:08 +09:00
yvt
7272c067a7 Automatic update check
Fixes #526.
2017-01-30 01:02:40 +09:00
yvt
8c4b0738b2 Minor fixes 2017-01-08 02:06:48 +09:00
yvt
a7b9909b2e Refactoring 2017-01-05 03:03:39 +09:00
Marco Schlumpp
0f4f426176
Check whether a entry was found before trying to access it. 2016-12-03 20:20:22 +01:00
Marco Schlumpp
986e27436b
Implement simple favorite system. 2016-12-03 20:04:11 +01:00
Tomoaki Kawada
2eb9e35c65 Apply clang-format to all non-external source files 2016-12-03 18:23:47 +09:00
Tomoaki Kawada
6a7af96daf Refactor setting variables 2016-11-19 21:27:13 +09:00
Tomoaki Kawada
d2debd19fe Update AngelScript to 2.31.1
This (hopefully) fixes #416.
2016-11-10 22:21:19 +09:00
Tomoaki Kawada
89748d6bc6 Reduced compiler warnings 2016-07-15 19:40:05 +09:00
yvt
d856bcadaa Reduce compiler warnings 2014-04-06 22:42:17 +09:00
yvt
4cf2fd39e4 Removed server browser for FLTK-based main window 2014-02-24 19:10:15 +09:00
yvt
5101172f23 Removed FLTK-based main window 2014-02-24 18:50:59 +09:00
learn_more
d9cd0dc402 rest of the files from prev commit. 2013-12-17 01:28:56 +01:00
yvt
0bb4bc4a40 Merge branch 'newtitle' of https://github.com/yvt/openspades into newtitle
Conflicts:
	Sources/Gui/MainScreenHelper.cpp
2013-12-02 22:40:03 +09:00
yvt
920d95b251 Made the server list URL customizable 2013-12-02 22:04:56 +09:00
yvt
6106343f43 Credits in the new UI 2013-12-02 21:50:12 +09:00
Marco Schlumpp
a78839ec3a Fixed includes.
- std::sort is in "algorithm". libstdc++ seems to be more strict than
Visual C++ etc.
- "GameMap.h" is not in the include path of Gui.
2013-11-28 17:39:00 +01:00
yvt
9be4e6bd53 Main screen update 2013-11-24 02:27:08 +09:00
yvt
d02e669b99 Basic server list (main menu) 2013-11-24 00:24:46 +09:00
yvt
2e78b346a0 Main screen update 2013-11-23 22:13:04 +09:00