88 Commits

Author SHA1 Message Date
yvt
18f8b77c4a feat(gui): indicate the usage of a pre-release version in the startup window 2021-05-03 00:38:12 +09:00
yvt
b1022213f3 Merge branch 'master' into patch-modernize 2021-05-02 23:39:03 +09:00
David Carlier
191124ddb7 Haiku support. 2020-07-28 19:03:50 +00:00
dtomlinson-ga
fefce1b4e0 Fix use after free in Main.cpp (issue #846) (#871)
* Fix use after free in Main.cpp (issue #846)

Create c-string to store filepath before concatenating with output message.

* Fix use after free in Main.cpp

Changed variable type to std::string and moved c_str() call

* Fix use after free in Main.cpp

Removed reference to directory variable
2019-11-30 00:56:45 +09:00
yvt
da7e61b25c
Change std::regex static local variables to global
Removes the runtime cost caused by lazy initialization.
2019-07-23 22:25:12 +09:00
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
b9a5d80f7b
Use Handle::New to construct T <: RefCountedObject
Unless `T::T(Args...)` is inaccessible from `Handle::New`, in which case
`Handle::Handle{new T(args...), false}` should be used.
2019-07-20 17:01:04 +09:00
yvt
d6f5370581
Add the console window (WIP) 2019-07-14 01:38:28 +09:00
yvt
cfb972f944 Improve code quality
- Overriding methods are clearly indicated with `override` keywords
- Remove redundant `virtual` keywords from destructors of subclasses
- Introduce `SPUnsupported()`, replacing most uses of
  `SPNotImplemented()`, which now serves as a dynamic "TODO" marker
2018-10-13 14:43:49 +09:00
David Carlier
657f765542 Fixing few memory leaks + fixing pthread symbol missing 2017-03-04 11:18:12 +00:00
yvt
f5507b78f9 Fix to compile on Windows 2017-03-04 02:06:53 -08:00
yvt
28be55615a Add a “portable” configuration for the Windows version 2017-03-04 17:05:45 +09:00
yvt
146c5ead24 clang-format 2017-03-04 03:32:21 +09:00
yvt
aaa3bc2656 Fix #582 2017-03-04 03:32:14 +09:00
yvt
b4430338f0 Refactoring 2017-01-05 03:24:22 +09:00
yvt
a7b9909b2e Refactoring 2017-01-05 03:03:39 +09:00
yvt
d505bfae91 Expose “FontManager” to the scripting environment 2016-12-16 05:05:23 +09:00
YVT
5b887ddb96 Provide an option to browse the config directory (#481)
Fixes #268.
2016-12-08 04:40:33 +09:00
yvt
a7e64908ea Fix a comment 2016-12-08 00:52:04 +09:00
David Carlier
1d970ec34d make the build possible on OpenBSD.
modified version of the pk download script.
isnan belongs to std namespace in C++11 standard.
2016-12-04 20:01:37 +00:00
Tomoaki Kawada
624d291f79 Update #includes
- Reorder them so that system libraries come first
- Use C++-style headers (`<cmath>`) instead of C-style headers (`<math.h>`)
2016-12-03 19:04:58 +09: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
81e2deedce Fix #394 2016-11-11 22:25:41 +09:00
Tomoaki Kawada
6f590d021f Paks with the .zip filename extension are now accepted 2016-07-27 16:43:46 +09:00
Tomoaki Kawada
8cd8ef9c0b Fixed "loose file" log message 2016-07-27 16:33:17 +09:00
Tomoaki Kawada
3f7fcee586 Reorganise resource files 2016-07-16 00:14:59 +09:00
Tomoaki Kawada
89748d6bc6 Reduced compiler warnings 2016-07-15 19:40:05 +09:00
Nick Renieris
62aedbb8a3 Revert changes to resource loading 2016-03-01 16:35:36 +02:00
Nick Renieris
409edad2cb Fix errors in Visual Studio 2015 2016-02-17 21:47:55 +02:00
Way, No
5a943732f7 Update Main.cpp
More precise help message.
2014-09-14 00:11:19 +11:00
Tomoaki KAWADA
620a58798c Merge pull request #275 from noway421/some_more_tweaks
Resource directories defined on compile time
2014-05-27 01:01:01 +09:00
Way, No
cf2ebd92a5 Now getting resource directory from cmake instead of hardcode; also enabled RESDIR for Release builds 2014-05-09 02:59:35 +11:00
Dennis Barzakovsky
a9da58e55b implement yvt/openspades#249 2014-05-08 16:46:17 +03:00
Way, No
f0a0ff39db Edited icon loading method 2014-05-06 00:22:01 +11:00
yvt
dc7820a561 Show startup window by default 2014-05-03 17:33:51 +09:00
Way, No
43c533a2e7 added icon to splash screen 2014-04-24 12:11:05 +11:00
yvt
f14890168f Merge branch 'linux_install' of https://github.com/noway421/openspades into noway
Conflicts:
	Sources/Gui/Main.cpp
2014-04-08 09:55:52 +09:00
Way, No
b776bf6f3c Added autoresolving of compatibility problems 2014-04-07 19:58:10 +11:00
yvt
ad5701bcd9 Fix #230 2014-04-06 21:56:07 +09:00
Way, No
c9bc10d387 rough linux install support 2014-04-06 20:10:13 +11:00
yvt
a4a6f2aead Use Unicode APIs for Windows version 2014-04-04 16:46:01 +09:00
yvt
92cfbd0126 OS X application bundle support 2014-04-01 15:52:40 +09:00
yvt
7fa58ec1f2 Restore functionality to connect to server from command-line 2014-03-31 21:15:56 +09:00
yvt
8f04b4ddff Removed dependency for FLTK completely (fix #217).
Keystroke for accessing startup screen was replaced with splash window, because SDL cannot check keyboard’s state without a window.
2014-03-31 20:37:23 +09:00
yvt
d4518dd732 FLTK-less config file. Fix #217. **Not tested on all platforms but OS X** 2014-03-31 19:20:50 +09:00
yvt
a8c14861c2 FileManager refactored 2014-03-16 00:53:28 +09:00
yvt
18accaac55 Reduce use of FLTK 2014-03-15 21:57:31 +09:00
yvt
e33cd5644c Removed FLTK-based GUIs 2014-02-24 19:02:13 +09:00
yvt
cbfa6afb49 Complete merge 2014-02-14 16:24:10 +09:00