George King
5b5b2f158d
Change getDefaultUserDataPath to const
2025-04-07 18:51:12 +02:00
George King
f802c5f717
Simplified getPathFromConfigOrDefault
2025-04-07 17:50:46 +02:00
George King
fa1386748e
Moved dirs.json load to constructor
2025-04-07 17:32:45 +02:00
George King
a9b23ae028
Fix build
2025-04-07 16:51:25 +02:00
George King
d2e5fdce56
Various tweaks
2025-04-07 16:37:51 +02:00
George King
451f22a22f
Update lib/VCMIDirs.cpp
...
Co-authored-by: Ivan Savenko <saven.ivan@gmail.com>
2025-04-07 10:21:31 +02:00
George King
2df2d48b4a
Update lib/VCMIDirs.cpp
...
Co-authored-by: Andrey Filipenkov <kambaladecapitator@gmail.com>
2025-04-07 09:55:47 +02:00
George King
5c83e54a9e
Update lib/VCMIDirs.cpp
...
Co-authored-by: Andrey Filipenkov <kambaladecapitator@gmail.com>
2025-04-07 09:53:27 +02:00
George King
a08e923934
Allow changing default directories in Windows
2025-04-06 22:14:51 +02:00
George King
37ec51527c
Allow changing default directories in Windows
2025-04-06 22:13:04 +02:00
Ivan Savenko
c73116a010
Reduce boost includes further
2025-03-19 08:03:56 +00:00
MichalZr6
2973a769df
Remove setting up en_US.UTF-8 locale in VCMIDirsWIN32::init()
2025-03-11 23:22:04 +01:00
Laserlicht
70891b0304
portmaster support
2025-02-16 22:29:07 +01:00
Alexander Wilms
02e429e973
Fix typos using https://github.com/crate-ci/typos
...
Changes were reviewed manually
2024-06-24 03:47:19 +02:00
Ivan Savenko
64ff0e0486
Fix handling of 'developmentMode' for lobby-only builds
2024-03-30 10:24:54 +02:00
Ivan Savenko
0d263c5571
Implemented option to run server as a thread with shared VLC
2024-02-11 17:55:02 +02:00
Andrey Filipenkov
1da06e04cc
fix "development mode" condition when building in single process mode
2023-04-05 20:22:29 +03:00
Tomasz Zieliński
9d7d4b6a5f
Fixed editor shortcut on Windows
2023-03-25 11:40:44 +01:00
Konstantin
4c4498b22a
vcmi: modernize rest of lib
2023-03-16 17:55:20 +03:00
Andrey Filipenkov
2ced633ad8
refactor VCMIDirs for Android
...
removes inheritance from VCMIDirsXDG to get rid of defining M_*_DIR variables
2023-03-02 12:09:47 +03:00
Andrey Filipenkov
59948a41a6
use std::call_once instead of bool flag
2023-02-22 14:00:50 +03:00
Ivan Savenko
192e856797
merge with vcmi/develop
2023-01-11 16:47:53 +02:00
Ivan Savenko
5f4a998435
editorPath -> mapEditorPath
2022-12-28 17:59:16 +02:00
Ivan Savenko
b38752bde1
Editor can be started from Launcher (disabled for ios)
2022-12-25 23:08:39 +02:00
Ivan Savenko
3219e322ae
Fixed all non-silenced gcc/clang warnings
2022-12-07 18:05:47 +02:00
krs
9b3cab1181
IVCMIDirs::userExtractedPath() created
2022-11-27 19:35:11 +02:00
Ivan Savenko
8e6193ad6e
Actually use new locale for filesystem access
2022-11-21 16:58:36 +02:00
Ivan Savenko
e6afd8621c
Minor improvements & fixes to music player
...
- music will be selected correctly after rapid leaving and reentering
town screen
- music sets are now store as single std::map instead of unnecessary
"map of maps"
- fixed computation of resume time for restarted/looped music tracks
- updated & clarified some comments
- converted C functions for SDL_Mixer callbacks into lambdas
- formatting fixes
2022-11-21 16:20:20 +02:00
Andrey Filipenkov
b766edb6af
[iOS] don't nest AI and scripting libs under subdirectories
...
3rd party signing tools may ignore such directory layout
2022-10-01 12:36:48 +03:00
Andrey Filipenkov
031ba967d3
fix indentation
2022-09-24 15:55:24 +03:00
Andrey Filipenkov
e1c9903a45
extract iOS helpers into a shared lib
2022-09-24 15:55:24 +03:00
Andrey Filipenkov
bb00ec8ce2
remove entitlements and shared container usage
...
they're no longer required since we have a single app now
2022-09-24 15:55:22 +03:00
Andrey Filipenkov
ff635edc0b
wrap all library code into namespace if VCMI_LIB_NAMESPACE is defined
...
preparation for having client and server in a single process
2022-09-24 15:55:21 +03:00
Andrey Filipenkov
13d0de17cd
use shared path as user data when available
2022-09-24 15:55:19 +03:00
Andrey Filipenkov
821672a1a4
refactor VCMIDirsIOS::dataPaths()
2022-09-24 15:55:19 +03:00
Andrey Filipenkov
2354023731
move extern "C" to header
2022-09-24 15:55:18 +03:00
Andrey Filipenkov
2fc4d48215
load game data from shared dir
...
kambala-decapitator/vcmi#15
2022-09-24 15:55:18 +03:00
Andrey Filipenkov
9b3c2f2a82
some cleanup
2022-09-24 15:55:18 +03:00
Andrey Filipenkov
b6c4126bed
install files after building server/client
...
package required files inside app bundle
2022-09-24 15:55:17 +03:00
Andrey Filipenkov
e72e5cea6f
attempt to run server in a separate app
...
partially reverts 3258f8bb40487e3731bf452dbda1add6294ff4b2
2022-09-24 15:55:17 +03:00
Andrey Filipenkov
b8fa692bda
simulator reads data from the macOS directory
2022-09-24 15:55:16 +03:00
Andrey Filipenkov
2e18299897
make server a static lib, run it in a separate thread
...
issues to solve:
- dynamic_cast error 2: One or more of the following type_info's has hidden visibility or is defined in more than one translation unit. They should all have public visibility. 13CPackForLobby, 20LobbyClientConnected, 20LobbyClientConnected.
- error setting socket option: set_option: No buffer space available
2022-09-24 15:55:16 +03:00
Andrey Filipenkov
8249171066
implement VCMIDirs
2022-09-24 15:55:16 +03:00
Andrey Filipenkov
45f5fc04be
[macOS] store logs in the standard system directory
...
~/Library/Logs/vcmi
2022-09-18 09:24:36 +03:00
Andrey Filipenkov
99af5bbe4c
add dedicated method to get logs path
2022-09-18 09:24:36 +03:00
Andrey Filipenkov
03b4ea71ba
move VCMIDirs::genHelpString() implementation to the base class
...
removes copy-paste
2022-09-18 09:24:36 +03:00
Andrey Filipenkov
bc1d99431d
fix boost.locale crash on macOS-arm64
2021-03-05 21:00:33 +00:00
Arseniy Shestakov
8180e4d5c5
VCMIDirs: improvements for development on Mac and Linux
...
Also added /usr/share/games in VCMIDirsXDG::dataPaths for mantis#2189.
2017-08-25 08:43:27 +03:00
Arseniy Shestakov
fee999300e
VCMIDirs: add hack to run from single directory on Mac and Linux
...
Also change working directory to where binary is on all platforms except Android
2017-08-16 16:10:08 +03:00
Arseniy Shestakov
40af43c46e
CMake: massive rework for Mac build and other improvements
...
- macOS: RPATH-related code all removed or disabled
- macOS: new osx/CMakeLists.txt to run some install-code running after all subdirectories
- Assets copying into the runtime output directory implemented for Mac and Linux development
2017-08-16 16:10:07 +03:00