Commit graph

1769 commits

Author SHA1 Message Date
newfrenchy83
3e46f3d4b4
update codeblock projectfiles (#5444)
* update codeblock project

* updat campaingd codeblock projectfiles

* update wesnothd codeblock scons
2021-01-17 03:04:18 +11:00
Charles Dang
2bc919e1f9 Updated VS projectfiles and readme for 3933eba 2020-12-31 03:26:56 +11:00
Sergey Popov
3933ebab5c
Use coroutines via boost::asio::spawn to improve overall code structure in servers (#5341)
* Convert server_base class to use coroutine instead of handlers

* Rework wesnothd's client login to use coroutine

* Merge 3 player handling functions into a single coroutine

* update cmakelists too

* Implement send_doc_queued in terms of coroutine

* Use brace initialization for making asio buffers

* Implement campaignd's request handling in coroutine

* Brace-initialize entire vector

* Remove old handler based send/receive helpers

* Document coroutine send/receive helpers

* Made coro_send_doc() helper take wml doc by reference

In most cases there is no need to rely on shared pointers to ensure
object lifetime if using coroutines since even when coroutine is
suspended args are still kept alive by its context.

* Document coro_send_file()

* Silence deprecation warning to fix build on earlier versions of boost

* Explicitly check for boost.context to allow linking against static boost libs

* Add boost.coroutine to flatpak manifest

* Port winapi TransmitFile codepath to coroutines

* Exception safety fix

* Add boost.scope_exit to vcpkg

* Fix build with pre-1.66 boost

* Move coro_* helpers into server_base class

Those helpers were in .ipp solely because they were templated on handler
types, this is no longer true after coroutine based rework.

* Make server_base::coro_send_file non-inline

* CleanUp Xcode project

Co-authored-by: Martin Hrubý (hrubymar10) <hrubymar10@gmail.com>
2020-12-30 19:08:34 +03:00
Steve Cotton
4205de91e5 Remove the editor's unused set_starting_position dialog
6424d79f48 changed to using an editor palette instead.
2020-12-30 15:01:47 +01:00
Martin Hrubý (hrubymar10)
1d5448fb0c
Add support for Apple Silicon to Xcode 2020-12-20 20:38:44 +01:00
Pentarctagon
36fc7538b8
Wesnoth 1.15.8. 2020-12-18 19:34:38 -06:00
newfrenchy83
b9dcc32e24
fix codeblocks projectfiles (#5356) 2020-12-14 10:35:42 +11:00
Martin Hrubý (hrubymar10)
8c31a4cb10
Update Xcode project 2020-12-13 20:40:36 +01:00
Charles Dang
ccd006cccd Refactored handling of advanced preferences
Instead of having the preferences dialog make a copy of all advanced preference config objects (and sorting them)
every time you invoke it, this adds a new advanced_manager class instantiated once in game_launcher (not sure if
that's the best place for it, though) that parses and handles the options. Allows me to greatly clean up the
preferences dialog code.
2020-12-14 05:56:52 +11:00
newfrenchy83
1d17f559a3
update codeblocks projectfiles 2020-12-10 16:21:29 +01:00
Martin Hrubý (hrubymar10)
8bf0742994
Fix Xcode project 2020-12-10 14:39:15 +01:00
Iris Morelle
8c3918197c gui/addon_manager: Add dedicated license prompt dialog
This allows using full markup for the license text and making it
independently scrollable without messing up the dialog. It also enables
URL parsing in it.
2020-12-10 00:15:17 -03:00
newfrenchy83
ba3d2ea989 update test.cpp in codeblock projectfiles 2020-12-05 14:12:41 -06:00
Martin Hrubý (hrubymar10)
2673db12e4
Fix Xcode project 2020-12-04 11:44:37 +01:00
Charles Dang
6e2f3e099e Removed utils/functional.hpp 2020-12-04 15:30:46 +11:00
Charles Dang
ba1dbe56e3 VS: removed 32 bit target from wesnothlib and wesnothd
Was already removed from wesnoth, campaignd, and liblua.
2020-12-04 13:14:33 +11:00
Charles Dang
23d1db043f
Removed patched boost::bind (#5339)
This seemed to be a patch for older compilers (GCC 4.8/4.9, see 3c56630b54)
which we no longer support.
2020-12-04 11:45:16 +11:00
Pentarctagon
c723dc14f0
Fixup vcpkg dependencies for playing audio. 2020-12-02 00:42:52 -06:00
Pentarctagon
11fac5ed2b
We don't use travis anymore. 2020-12-02 00:40:19 -06:00
Pentarctagon
fd29aa8503
Fixup vcpkg dependencies for locales. 2020-12-02 00:37:22 -06:00
newfrenchy83
da224661c4 update scons codeblock projectfiles 2020-12-01 16:53:09 -06:00
newfrenchy83
0687196b4f Update tests.cbp 2020-12-01 16:53:09 -06:00
newfrenchy83
ea7a643951 update codeblock projectfiles 2020-12-01 16:53:09 -06:00
Charles Dang
c9d1fda443 Updated VS projectfile 2020-12-02 08:18:49 +11:00
Martin Hrubý (hrubymar10)
65a377b7a1
Update Xcode project for #5287 2020-11-21 23:53:53 +01:00
Pentarctagon
b8c12b63ad
Wesnoth 1.15.7. [ci skip] 2020-11-20 22:53:13 -06:00
newfrenchy83
ede2cc0098 fix campaignd in codeblock project 2020-11-13 17:04:50 +01:00
newfrenchy83
7fedeb5790 Update campaignd.cbp 2020-11-10 13:57:48 -06:00
Martin Hrubý (hrubymar10)
8fcddfa6d6
Fix Xcode project 2020-11-10 19:50:41 +01:00
newfrenchy83
118dcc0f09
update code block projectfiles (#5271)
* Update campaignd.cbp

* add commandline_arg to codeblock projectfiles

* Update tests.cbp

* Update wesnoth.cbp
2020-11-10 09:04:56 -06:00
Charles Dang
2ffa21bf04 Made celmin happy
[ci skip]
2020-11-10 17:08:14 +11:00
Charles Dang
bbf22443c5 Updated VS projectfiles
[ci skip]
2020-11-10 12:43:40 +11:00
Charles Dang
db0a522d3d Updated VS projectfile
[ci skip]
2020-11-02 10:57:28 +11:00
Charles Dang
f2e77842fc VS: cleaned up campaignd and wesnothd projects
[ci skip]
2020-10-23 11:12:29 +11:00
newfrenchy83
8c5f6c2a4d Fix codeblock test 2020-10-21 17:12:34 -05:00
Martin Hrubý (hrubymar10)
eabaa42fe4
Fix Xcode project 2020-10-18 21:09:54 +02:00
Steve Cotton
934cae6093 Refactoring the orb-coloring code, adding new units/orb_status.hpp
Instead of creating lots of image::locators and calling a family of
similarly-named preferences functions, this refactor encapsulates that logic
and uses an enum.

The new orb_status files still need adding to the MacOS build.

An assert has been added to `unit_drawer`'s constructor. There are two callers
- the `display` class guards it with an explicit check before constructing
unit_drawer. The `game_display` class doesn't have an explicit check, but it's
clear that other code in that class assumes the teams are already valid (and
would crash if they weren't).
2020-10-17 14:11:10 +02:00
Pentarctagon
49a5899c4e
Wesnoth 1.15.6. 2020-10-16 23:40:02 -05:00
Charles Dang
5b96bee90d Minor projectfile update 2020-09-21 02:52:46 +11:00
Pentarctagon
f97d2f8250
Wesnoth 1.15.5. 2020-09-19 12:52:10 -05:00
newfrenchy83
51f7340067
fix codeblocks project for lua widget 2020-09-04 13:20:16 +02:00
Martin Hrubý (hrubymar10)
1b1c0a4e52
Fix Xcode project 2020-09-04 10:54:28 +02:00
Steve Cotton
a2b98687b7
Update the VC16 project files for Lua Widgets (#5125)
In source_lists/wesnoth, put the new files in alphabetical order.

This (as expected) fails to build on MacOS, just like the previous build.

It also fails to build with Clang on Linux, just like the previous build. That's
caused by src/scripting/push_check.hpp:89's unused parameter 'L', and is
also just like the previous build.
2020-09-04 05:44:15 +02:00
Martin Hrubý (hrubymar10)
c48e176a1a
Fix Xcode source tarball builds
Closes #5117
2020-09-03 10:48:30 +02:00
Martin Hrubý (hrubymar10)
8ba4e4fca9
Fix "refusing to merge unrelated histories" error 2020-08-28 10:10:47 +02:00
Martin Hrubý (hrubymar10)
576bd8a419
Drop support for old OS X and update README and Xcode project 2020-08-24 15:44:30 +02:00
Martin Hrubý (hrubymar10)
5e5df83db6
Update Xcode project's changelog 2020-08-23 10:52:56 +02:00
Pentarctagon
12066c4357 Wesnoth 1.15.4. 2020-08-21 23:22:12 -05:00
newfrenchy83
2be22c8030
fix codeblock projectfiles (#5078) 2020-08-12 11:11:28 +02:00
Steve Cotton
c9511d7ba0
Drop support for the l10n-track file (#4722)
The file only had a run-time effect if it listed any files as "fuzzy", which it
hasn't since the last change in 2015. However, that isn't a reason for removing
it.

The reason for removing it is that it doesn't make sense to automatically mark
images as fuzzy when an image changes, because fuzzy is often much better than
untranslated. This is different to the logic for strings, where a single word
can negate the meaning of a sentence. The decision has to be a manual process,
and at that point it might as well be done with the source-control tool's
delete-file function.

Even considering the previous times that l10n-track was used, I can't see a
scenario where it would be useful.

* Scenario: a screenshot needs to be replaced. In this case the new images are
  going to be screenshots too. If the old images are out of date, better to
  just delete them instead of needing the fuzzy mechanism; either option would
  have the same effect of showing the up-to-date-but-untranslated image.

* Scenario: a map is completely redrawn. This seems unlikely, as a completely redrawn
  image could be added as a new map rather than replacing the old one. Even if
  it does happen, it's probably best to just delete the old --overlay.png
  files.

* Scenario: a new landmark is added to a map. Using the existing overlay file
  is still going to be good, as it means the rest of the map is shown
  translated. There's surely new dialogue in the WML files commenting on this
  new landmark, which would be a good place to say
    # po: Lorem's Ipsum was added to the map on 24 Jan 2020, please add a label to your language's --overlay file.

* Scenario: an old feature is removed from the map. Using the existing overlay
  will have an out-of-date label, and the significance of that would depend on
  how it affects the storyline. This could be significant enough to make
  showing the English labels be a better option than showing the translated
  ones. However, the translated maps could be updated without knowledge of the
  language, so if it's such a significant change then the developer writing the
  new WML should probably do that.

* Scenario: a feature moves slightly on the map. This is an example where the
  l10n-track file has been used, it happened with the Bitter Swamp on the
  bottom-right corner of the title screen. I think it would have been better to
  show the slightly-out-of-date overlay instead of showing the English.

Note about cherry-picking: in the 1.14 branch, the change needs to be applied
to src/picture.cpp instead of src/filesystem.cpp.
2020-08-08 05:07:59 +02:00