Commit graph

346 commits

Author SHA1 Message Date
Edoardo Lolletti
14309283a7 remove "coreloaded" global variable
Serves no purpose anymore
2026-08-20 13:37:28 +02:00
Edoardo Lolletti
94a01db16f make free functions taking irr::IrrlichtDevice* take it by raw pointer 2026-08-20 00:22:17 +02:00
Edoardo Lolletti
146b7e8f2d Prevent from putting paths when renaming replays/puzzles 2025-09-26 10:15:19 +02:00
Edoardo Lolletti
c40951ba09 No longer depend on fmt for localtime
It was deprecated there, and costs nothing to have it defined by ourselves
2025-05-10 23:21:30 +02:00
Edoardo Lolletti
6bd4b6a546 Fix host ack promt not being clickable 2025-04-18 21:24:59 +02:00
Edoardo Lolletti
1efe620f1e Refine ritual in extra handling
The case of siding with rituals had been completely glossed over and the siding itself was basically impossible to achieve, properly update the logic checks to account for all the scenarios
2025-04-18 21:23:31 +02:00
Edoardo Lolletti
f06feb70d7 Move duplicate TriggerEvent functions to GUIUtils 2025-03-30 22:41:39 +02:00
Edoardo Lolletti
7b36b8484a Don't include fmt.h in text_types.h 2024-09-06 14:56:15 +02:00
Edoardo Lolletti
42e897aae6 Put the rest of the fmt formatting options in the epro namespace 2024-09-06 10:42:35 +02:00
Edoardo Lolletti
29216bd54e Move fmt baseline to 5.0.0 2024-08-21 15:47:10 +02:00
Edoardo Lolletti
a582248222 Fix msvc compilation with fmt 11.0.2
Disable FMT_UNICODE when building under msvc (old behaviour)
2024-08-21 13:53:44 +02:00
Edoardo Lolletti
301c2e3cea Address warning 2024-02-15 17:26:46 +01:00
Edoardo Lolletti
c7c27a2619 Check that the servers pointed by discord invites are known
If not, explicitly warn the user
2023-07-29 11:28:53 +02:00
Edoardo Lolletti
3bf113a8d4 Remove default parameter from SystemOpen 2023-07-29 11:08:35 +02:00
Edoardo Lolletti
2934cc12fb Minor spacing and function signatures updates 2023-07-25 11:20:24 +02:00
Edoardo Lolletti
9078301fd0 Fix bug that allowed hosting with 3+ players teams 2023-06-26 21:51:23 +02:00
Edoardo Lolletti
7bec46a560 Add ipv6 support 2023-05-13 10:52:18 +02:00
Edoardo Lolletti
009f0c41e9
Add `EDOPRO_platform` conditionals macro (#263)
No longer use compiler specific macros in the code to check for a specific target.
2023-04-15 20:11:49 +02:00
Edoardo Lolletti
ed4c666f8d Add button to get windbot's launch arguments
Allows copying to the clipboard the command line arguments required to launch a windbot instance with the options selected currently in the host window
2023-03-18 21:07:50 +01:00
Edoardo Lolletti
1a79d3f8a9 Fix race condition when hosting a game and refreshing the bot list
When hosting a local game, the botlist was refreshed, and the contents of the bot panel updated, this could incurr in a race condition if the server thread started before reaching this line and sent a STOC_JOIN_GAME message to the client, making it update the same bot window at the same time, leading to data being modified at the same time.
2023-02-19 12:45:16 +01:00
Edoardo Lolletti
d585e02578 Fixed out of bound write when filtering the content in the port box 2023-02-19 11:15:25 +01:00
Edoardo Lolletti
87c04b0112 Use fmt::localtime instead of std::localtime 2023-02-19 11:00:43 +01:00
Edoardo Lolletti
cd00f787fe Fix more warnings and enable extra warning level 2023-02-08 20:13:06 +01:00
Edoardo Lolletti
b6af0562f8 Fix various integer casting to smaller size warnings 2023-02-07 15:41:03 +01:00
Edoardo Lolletti
1780568dbb Resolve remaining MSVC downcast warnings 2023-02-06 23:25:35 +01:00
Edoardo Lolletti
16eb40f8e8 Move ReadPuzzleMessage from Game to Utils 2022-10-07 22:04:59 +02:00
Edoardo Lolletti
05a49ba70b Use epro::mutex, thread and condition_variable
No longer use the types defined in the std namespace
2022-10-07 21:40:46 +02:00
Edoardo Lolletti
ad81d4d9e2 Move needed format and sprintf into `epro namespace instead of using them from the fmt` namespace
In b6d8cbde94, specialized ``format`` functions to work for fmt 9.x.x were put in the fmt namespace, avoid possible undefined behaviour and instead redefine those functions to the epro namespace
2022-10-07 20:27:52 +02:00
Edoardo Lolletti
efc18d8400 Update menu_handler.cpp 2022-09-19 18:04:37 +02:00
Edoardo Lolletti
9429c4e4fd Fix TCG SEGOC checkbox not being set on startup 2022-09-19 10:45:56 +02:00
Edoardo Lolletti
0bb3d61610 Hide menu window when showing update window 2022-09-10 20:24:41 +02:00
Edoardo Lolletti
3bfbb514d2 Focus update window when starting an update 2022-09-10 20:14:45 +02:00
Edoardo Lolletti
7b3b84ff08 Make DeckManager::SaveDeck static 2022-09-08 19:47:25 +02:00
Edoardo Lolletti
b4b1b08e36 Update usage and behaviour of DeckManager::LoadDeckFromFile 2022-09-08 19:29:54 +02:00
Edoardo Lolletti
3f0114066a Use different names for the 3 LoadDeck functions 2022-09-08 19:19:59 +02:00
Edoardo Lolletti
cd14359837
Update Client and Replay structure to support new ocgcore RNG seed (#228)
https://github.com/edo9300/ygopro-core/pull/124
Extend ReplayHeader to ExtendedReplayHeader, a structure built on top of that that support the additional fields required to store the new 256 bit rng seed, the structure is designed to be forward compatible by having an integrated versioning system, slightly inspired by sqlite's.
Newer clients woudl still be able to parse older replays while older clients will reject newer replays as unsupported.
2022-09-04 12:19:43 +02:00
Edoardo Lolletti
896a5bad8c Set proper deck sizes when pickign a game rule and vice versa 2022-09-03 23:59:42 +02:00
Edoardo Lolletti
23fd718199 Remove 2nd deck select combo box
Not really useful anymore
2022-09-01 20:24:29 +02:00
Edoardo Lolletti
c5c69ff61e Use tabs in host window
Also put custom rules in a separate tab
2022-08-26 20:41:48 +02:00
Edoardo Lolletti
fa141356f6
Update settings window (#244)
Revamp the settings window by using the new windowed tab widget, split the various options in subcategories to keep them more organized.
Now every config that before was only modifiable my manually editing the config file should be changeable in game as well.
Probably will need other cleanups down the line to make things look nicer, but for now it's enough to merge.
2022-08-13 19:35:20 +02:00
Edoardo Lolletti
55af8af06f Remove dead code 2022-07-28 23:12:05 +02:00
Edoardo Lolletti
7c6ff37085 Update handling of "current_deck"
Make it a private member of the ``DeckBuilder`` class so that its access can be monitored
2022-05-24 19:46:01 +02:00
Edoardo Lolletti
481623bb28 Don't reboot if "no" is answered to the wayland prompt 2022-03-17 18:57:39 +01:00
Edoardo Lolletti
2c5a75fe91 Use uint8_t as the type for all the buffer manipulation functions 2022-02-27 01:07:44 +01:00
Edoardo Lolletti
32a9bc8fe1 Remove no longer used exit_on_return 2022-02-11 21:22:57 +01:00
Edoardo Lolletti
59a8ebefe6 Add constexpr to a bit more arrays and use brace initialization for them instead of assignment initialization 2021-12-29 20:16:45 +01:00
Edoardo Lolletti
5602614f8c Always make the client load its own "cacert.cer" file if present in the working directory
Allow overwriting it with override_ssl_certificate_path option now.
2021-10-09 12:51:54 +02:00
Edoardo Lolletti
dd96e23c9a Typos 2021-09-27 12:09:53 +02:00
Edoardo Lolletti
41e6676cd0 Add prompt to use wayland device on linux 2021-09-27 11:55:46 +02:00
Edoardo Lolletti
7a985e3324 Add share file option for replays and puzzles 2021-09-19 14:10:50 +02:00