1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00
Commit Graph

35 Commits

Author SHA1 Message Date
ed4079e83b Code cleanup, add comments where relevant 2025-03-12 15:57:06 +00:00
96d691b40c Fix crash on closing game during background image upscaling 2025-03-12 14:18:44 +00:00
4684756c49 Do not create ENGINE in headless mode 2025-03-12 13:33:12 +00:00
8204990fa6 Fix crashes on app shutdown 2025-03-12 13:33:12 +00:00
4d383d5880 Fix build 2025-03-12 13:33:12 +00:00
a474803aaf Use exception throwing to shutdown main thread 2025-03-12 13:33:12 +00:00
9732d39c70 Moved shutdown request dialog handling to GameInstance 2025-03-12 13:33:12 +00:00
f8c1d217d4 Moved main loop to game engine class 2025-03-12 13:33:12 +00:00
222b73bbcd Simplify library initialization 2025-03-12 13:33:12 +00:00
5f052165fe Fix missing names for some threads 2025-03-02 14:33:11 +00:00
844dfb1604 Removed usage of boost::thread from vcmi, except for AI 2025-03-02 14:33:11 +00:00
06be6b909c Fix build, reduce includes of CConsoleHandler 2025-03-01 21:16:41 +00:00
dd1b877449 Replace several more globals with locals 2025-03-01 21:16:41 +00:00
782362e5ce Remove console global 2025-03-01 21:16:41 +00:00
e5a095a237 Remove main menu global. Now accessed via GameInstance 2025-03-01 21:16:41 +00:00
d3de0d525f Removed GameEngine::curInt member
- event processing is now initiated by GameEngine instead of weird chain
engine -> player interface -> engine
- introduced GameEngineUser interface (implemented by GameInstance) to
remove mutual depedency between GameEngine and GameInstance (some
technically still remains for now, in form of some free functions)
2025-03-01 21:16:40 +00:00
cbcd48aabb Fix build 2025-02-21 18:51:27 +00:00
645b95ba02 Renamed LibClasses * VLC to GameLibrary * LIBRARY 2025-02-21 16:54:56 +00:00
156de5b17e Added GameInstance class
- available as global GAME
- integrates LOCPLINT (CPlayerInterface)
- integrates CGI->mh (CMapHandler)
- integrates CSH (CServerHandler)
2025-02-21 16:54:06 +00:00
ffd37a8fa8 Removed CGI in favor of VLC. Map handle is for now global variable 2025-02-21 16:53:14 +00:00
f657e85305 Integrated CClientState into GameEngine class 2025-02-21 16:53:14 +00:00
cacceda950 Renamed CGuiHandler to GameEngine
- class CGuiHandler is now called GameEngine to better describe its
functionality
- renamed global GH to more clear ENGINE
- GH/ENGINE is now unique_ptr to make construction / deconstruction
order more clear and to allow interface / implementation split
- CGuiHandler.cpp/h is now called GameEngine.cpp/h and located in root
directory of client dir
2025-02-21 16:53:13 +00:00
cca4c0888c In-memory assets generation
All assets generation (large spellbook, terrain animations, etc) are now
done in memory and used as it, without saving to disk.

This should slightly improve load times since there is no encode png /
decode png, and should help with avoiding strange bug when vcmi fails to
load recently saved assets.

If needed, such assets can be force-dumped on disk using already
existing console command
2025-01-30 22:21:38 +00:00
8d78bb1a82 Merge pull request #5337 from IvanSavenko/ffmpeg_explicit
[1.6?] Explicit toggle for ffmpeg video player compilation
2025-01-29 12:01:35 +02:00
37b981e4a0 Merge pull request #5244 from Sko0owi/logLocationBeta
Adding flag for changing location of logs for VCMI client
2025-01-29 12:01:26 +02:00
bc524c60d7 Explicit toggle for ffmpeg video player compilation 2025-01-27 15:38:50 +00:00
2ee5f2df02 Merge pull request #5295 from IvanSavenko/bugfixing
[1.6.4] Bugfixing for recently reported issues
2025-01-21 15:50:02 +02:00
c6eac55210 Fix reference to renamed console command 2025-01-19 12:40:41 +00:00
24a39a8b48 clear generated assets only on client 2025-01-17 19:27:33 +01:00
a8805d5e6b adding log Location flag 2025-01-09 23:24:31 +01:00
485361939a Added information on mod loading failure to inform player on broken mods 2025-01-01 20:59:32 +00:00
a43475042f code review 2024-09-18 22:10:25 +02:00
822fa61bf2 intro rework 2024-09-12 22:28:45 +02:00
20ccc92e6d move shutdown functions in EntryPoint 2024-08-27 13:12:55 +03:00
f2cddaa21b Split vcmiclient in two
Similar to vcmiserver (app) and vcmiservercommon (lib), now
there is vcmiclient (app) and vcmiclientcommon (lib).
2024-08-14 19:20:01 +03:00