Commit graph

78 commits

Author SHA1 Message Date
Edoardo Lolletti
f06047f210 Don't use hardcoded replay path 2025-09-26 10:50:20 +02:00
Edoardo Lolletti
7070087088 Don't use hardcoded deck path throughout the program 2025-09-26 10:50:20 +02:00
Edoardo Lolletti
a9fe8838ff Fix gcc 7.5 compilation 2025-04-26 16:05:26 +02:00
Edoardo Lolletti
358f2df149 Add menu option to select the audio backend if multiple are compiled in 2025-04-26 16:01:08 +02:00
Edoardo Lolletti
b931acc74b Support more than one audio backend at the same time
Add infrastucture to be able to pick a specific audio backend via text config
2025-04-26 01:22:06 +02:00
Edoardo Lolletti
9469edf0b2 Add curl.h header including a formatter for CURLCode 2025-01-31 00:13:18 +01:00
Edoardo Lolletti
7b36b8484a Don't include fmt.h in text_types.h 2024-09-06 14:56:15 +02:00
Edoardo Lolletti
60e8b3a320 Minor reordering in data handler 2024-06-13 15:47:12 +02:00
Edoardo Lolletti
2b3ef19569 Add -r cli arguments to treat all repos as simple folders 2024-06-13 15:45:30 +02:00
Edoardo Lolletti
0a739a5f29 Update places where unique_ptr was being created manually
Use make_unique
2023-06-18 17:00:06 +02:00
Edoardo Lolletti
d56bb86350 ios: load certificates from working directory 2023-05-21 17:21:26 +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
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
8d503a33b2 Make ios "porting" interface behave the same as android's 2022-08-21 20:01:50 +02:00
Edoardo Lolletti
5a77d3efe2
Ad basic ios support (#245)
Still incomplete but builds and boots to something (at least on the simulator).
Also slightly updated the premake scripts to properly generate build files for various architectures without renaming the vcpkg packages
2022-08-20 22:29:13 +02:00
Edoardo Lolletti
aa341c182f Simplify unicode file handling on mingw
Add ``FileStream`` helper class that eases the creation file streams on mingw using stdio filebuf so that it can work as drop in replacement for normal fstream (on visual studio it's just an alias to fstream). This allows removing all the redoundant boilerplate needed to manually initialize streams for mingw from _wopen and co.
2022-07-25 19:40:06 +02:00
Edoardo Lolletti
8d9d1b2127 Update handling of workin_dir
Set it directly when Utils::SetWorkingDirectory is called, and add function Utils::GetWorkingDirectory to retrieve it when needed
2022-03-12 11:50:00 +01:00
Edoardo Lolletti
2d51c951c8 Minor updates
Add some more const identifiers and other minor changes
2022-02-10 22:03:17 +01:00
Edoardo Lolletti
adb86a71b1 Fix git threads not stopping if no repositories were loaded 2021-12-07 20:16:34 +01:00
Edoardo Lolletti
c5b7f5939d Add helper ErrorLog function that internally calls fmt::formatformats its arguments
Removes the redoundancy of writing ```ErrorLog(fmt::format())```
2021-10-30 19:06:30 +02:00
Edoardo Lolletti
3b708e7df1 Rename default certificate file to cacert.pem
That's the extension used by curl's site
2021-10-26 21:38:40 +02:00
Edoardo Lolletti
7eb5559bbc Load mappings file from repositories and config folder 2021-10-15 22:47:28 +02: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
4e0f8e4db8 Remove workaround function to remove wrong databases 2021-09-19 14:26:25 +02:00
Edoardo Lolletti
09467b1c4c Make sure that cards.cdb is loaded from the current directory as well as windbot's bots files 2021-07-06 19:46:15 +02:00
Edoardo Lolletti
b2616e8fd3 Use only FileExists to check if there's a cards.cdb in the game's root folder 2021-05-29 14:54:18 +02:00
Edoardo Lolletti
938a037284 Don't use path_stringview constexpr array constructor on vs2015
It's not supported
2021-05-23 00:10:57 +02:00
Edoardo Lolletti
01694b8797 Add temp code to delete outdated databases
Those were pushed wrongly with the 39.0 release
2021-05-20 22:02:55 +02:00
Edoardo Lolletti
6e2cc6f529 Store absolute decks folder path
Avoid recalculating it each time
2021-04-19 00:17:01 +02:00
Edoardo Lolletti
e11ac97871 Check strings before loading more resource intensive assets 2021-04-19 00:11:11 +02:00
Edoardo Lolletti
56e8089320 Set databases in windbot 2021-04-10 19:36:46 +02:00
Edoardo Lolletti
e82391beea Fix compilation with irrlicht 1.9 on windows 2021-03-30 16:41:24 +02:00
Edoardo Lolletti
b587e1f5f1 Catch exceptions as const reference 2021-03-08 20:21:16 +01:00
Edoardo Lolletti
51b2369d8a Normalize working_dir when constructing DataHandler 2021-02-10 23:37:39 +01:00
Edoardo Lolletti
c3d690a2fb Attempt to load cards.cdb in root only if exists 2021-02-10 23:36:28 +01:00
Edoardo Lolletti
8fd652290b Update database loading from archives
Rewrite readonolymemvfs to work directly with an IReadFile object, removing the need of making redoundant copies of the buffers
2021-01-13 23:48:25 +01:00
edo9300
779aabcc22 Android headers 2020-12-22 23:41:38 +01:00
edo9300
0a3f5eb7ba Store osoperator in utils class, update user agent 2020-12-22 18:24:40 +01:00
edo9300
67fb03b5a6 Reupdate json parsing
Properly use the various functions to check for keys validity, instead of relying on undefined behaviour
2020-12-21 23:15:58 +01:00
edo9300
e5caa7a045 It seems that by iterating the json directly there is different behaviour on missing fields 2020-12-21 19:36:42 +01:00
edo9300
b5daaebd05 Use unique imgType enum 2020-12-21 18:18:58 +01:00
edo9300
62be8db6e0 Minor cleanups 2020-12-21 18:16:31 +01:00
edo9300
f0d4908379 Remove unneded getter when iterating jsons 2020-12-21 17:45:22 +01:00
edo9300
8031182a05 Put text types types in epro namespace 2020-12-11 19:09:10 +01:00
edo9300
cb5ae83ce8 Move working_dir value from GameConfig to Utils, allow setting it with -C command line argument 2020-09-28 21:32:58 +02:00
edo9300
482b32a06a Use string view object to pass strings in most of the places 2020-09-18 21:47:50 +02:00
edo9300
15a61b8a7f Move card filter functions to data_manager 2020-09-15 15:56:11 +02:00
edo9300
3d786e280b Update windows code to work with libgit2/curl built with openssl, add option to specify certificate location 2020-07-29 15:44:32 +02:00
edo9300
b4408958cb Fix bool being divided by float 2020-07-21 23:07:54 +02:00