Commit Graph

25 Commits

Author SHA1 Message Date
Pentarctagon
d8abcff103
wesnothd: use lambdas instead of rs_base (#9747) 2025-01-15 21:14:00 -05:00
Pentarctagon
3f63908296 Further consolidate logging functionality between Windows and non-Windows platforms.
For non-Windows platforms this adds:
* a new check for whether the logs directory exists and is writable by attempting to write a single whitespace to a dummy.log file.
* a popup shown immediately after the GUI system is initialized letting the player know if there was an issue creating the log file.

For Windows, this changes:
* instead of writing to the OS temp directory and then attempting to move that file to the logs directory, this uses the same check that was described above for non-Windows platforms.
* the alert shown when writing the dummy log file fails is now a Wesnoth alert message rather than the Windows-specific MessageBox.
* a failure to create a log file does not immediately exit wesnoth anymore.

Additionally, this makes it so that for the default state (logging to file), all platforms follow the same code path by calling `lg::set_log_to_file()`. `log_windows` now contains only the Windows-specific logic needed for handling the creation/redirection of output to a console.
2023-02-17 10:03:05 -06:00
newfrenchy83
3e05480b5b fix codeblock projectfiles 2021-06-03 18:53:16 -05:00
newfrenchy83
b9cbc084c3 update codeblock projectfiles 2021-06-02 13:18:21 -05:00
newfrenchy83
6f85e689e6
Update codeblock for recent changes (#5455)
* update codeblock for recent changes

* update codeblock test for recent changes

* Update wesnothd.cbp

* Update wesnothd.cbp

* update scons codeblock
2021-01-17 21:45:31 +11:00
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
newfrenchy83
f33330de19
fix wesnothd and campaignd codeblock projectfiles after #5029 (#5035) 2020-08-07 11:18:05 +02:00
newfrenchy83
4becc858f1
update codeblock projectfiles 2020-07-03 17:16:26 -05:00
newfrenchy83
62a005f4cf fix for sample_user_handler removal. (#4273) 2019-08-24 14:26:32 +02:00
newfrenchy83
6d06cee014 Update Code::Blocks SCons project (#3762) 2018-12-06 09:29:00 +02:00
Martin Hrubý
96bbebb514 Fix building with Xcode 10 (#3460)
Resolves #3458.

(cherry-picked from commit 50301f84e3)
2018-10-07 03:24:17 +00:00
Kevin_Xi
09b0aad1f8 Add missed files to and remove obsolete file from CodeBlocks-SCons and CodeBlocks project file 2014-04-17 01:43:28 +08:00
Sergey Popov
ec557cdb39 Updated build commands in codeblocks-scons projectfiles...
...to work with codeblocks 10.05
2011-03-21 18:48:34 +00:00
Alexander van Gessel
5f91c3bd4a Get rid of binary WML 2010-11-18 22:21:00 +01:00
Timotei Dolean
27c645e252 Convert CRLF to LF 2010-08-06 21:44:10 +00:00
McShark
794f85c901 Update according to recent file changes 2010-04-05 17:41:16 +00:00
Alexander van Gessel
08d132dded Remove jwsmtp from projectfiles 2009-11-24 20:12:13 +01:00
McShark
0b2e2d9f61 Update according to recent file changes 2009-06-16 18:31:09 +00:00
McShark
bc8b4a7183 Added src/server/player_network and src/server/room
WIN-Format for SCons, too (for easier diffs)
2009-05-21 15:36:28 +00:00
McShark
27d1c81f79 Added src/server/server.hpp 2009-05-15 21:10:52 +00:00
McShark
148570c170 Changing slashes to win-version for easier diff 2009-05-07 20:10:58 +00:00
Sergey Popov
effac18045 Committed McShark's projectfiles update. 2009-02-06 23:22:25 +00:00
Sergey Popov
b2debc51b3 Committed McShark's projectfiles update. 2009-01-31 22:12:15 +00:00
Sergey Popov
77f8d3015a Removed some cruft from codeblocks-scons projectfile,
...made Build -> Compile current file command work.
2009-01-21 20:34:37 +00:00
Sergey Popov
903d1f93fb Added CodeBlocks projectfiles which use SCons to build. 2008-12-22 10:14:34 +00:00