Commit graph

425 commits

Author SHA1 Message Date
HJfod
00e191accb
Merge pull request #1040 from SMJSGaming/main
Added IDs to web request to prevent incompatibilities between web mods
2024-08-13 11:35:49 +03:00
SMJSGaming
58402e9b7b Made the ID system thread safe 2024-08-13 10:11:54 +02:00
SMJSGaming
a5bbf6a40c Added IDs to web request to prevent incompatibilities between web mods 2024-08-13 09:05:59 +02:00
dankmeme01
59a0ade533 actually fix it 2024-08-01 14:14:50 +02:00
dankmeme01
d729a12bf3 fix order of buttons in CCMenuItemExt::createToggler 2024-08-01 14:05:36 +02:00
Chloe
22bcbe1b5e
remove usages of cc3x 2024-07-29 06:18:17 -07:00
HJfod
4b4bc0eb9b don't cancel subtasks on task destructor 2024-07-29 15:15:00 +03:00
HJfod
6080fdbfde deprecate cc3x 2024-07-29 12:50:37 +03:00
SMJSGaming
caeef8f4a4 Changed the operator overloads of CCPoint to be more inline with other engines 2024-07-28 16:16:41 +02:00
SMJSGaming
72586f780d Added remove methods to the web API 2024-07-27 19:53:07 +02:00
Cvolton
4272b8b549 fix missing include in terminate header 2024-07-24 19:41:52 +02:00
Chloe
2b35e0e833
remove useless fs hash block
ndk r27 implements this, so it won't build
2024-07-18 18:45:20 -07:00
SMJS
a96ec91f89
Added some getters to web request and added some coverage for edge-cases (#981)
* Added some getters to web request and added some coverage for possible edge-cases

* Added the getter implements for web requests

* Escaped header options
2024-06-30 17:32:06 +03:00
matcool
6fe1ac9e3f fix single arg overload of Task::listen 2024-06-26 14:48:09 -03:00
SpaghettDev
83f8a32a3f
More web options (HTTP version, accept encoding, transfer body, follow request, range) (#943) 2024-06-23 16:45:12 -03:00
dankmeme01
f06a7414bb cleanup many creates promoting better modern c++ coding practices 2024-06-23 11:36:16 +02:00
altalk23
ea96e2c658 make some classes final 2024-06-20 23:00:04 +03:00
dankmeme01
92704b965f fix use of dangling string_view in task names 2024-06-20 17:36:53 +02:00
matcool
97d2e44611 fix CCArrayExt::value_type 2024-06-18 00:17:00 -03:00
dankmeme01
f3525035ad fix Ref and WeakRef move assignment operator 2024-06-17 12:56:12 +02:00
Fleeym
4f400b530f
Move pick file APIs to Tasks (#899) 2024-06-14 23:19:16 +03:00
kynex7510
153f22f338
Merge branch 'main' of https://github.com/geode-sdk/geode 2024-06-13 15:04:48 +02:00
kynex7510
22cc33b8a9
use string_view for sprite expansion 2024-06-13 15:04:32 +02:00
mat
eb7c4d9803
rename Task::then to Task::listen 2024-06-12 17:38:46 -03:00
matcool
fa7a2de780 add Task::then to handle tasks without storing a listener 2024-06-11 14:58:23 -03:00
matcool
da617eefaa std::string const& -> std::string_view in task code 2024-06-11 13:16:34 -03:00
HJfod
e71d8fff5d Merge branch 'main' of https://github.com/geode-sdk/geode into main 2024-06-08 18:35:05 +03:00
HJfod
c82112f2c8 cancel tasks on handle destroy 2024-06-08 18:34:54 +03:00
Fleeym
f909a737ec add WebResponse::into 2024-06-08 18:11:16 +03:00
dankmeme01
b129808723 remove old web utils 2024-06-07 11:20:50 +02:00
altalk23
38976cc42c yeet wstring overloads 2024-06-07 09:38:06 +03:00
dankmeme01
22575478b7 fix unreachable warning 2024-06-06 17:43:20 +02:00
kynex7510
4ac52b11d2
Yeet safe_cast 2024-06-06 12:31:22 +02:00
dankmeme01
07ceb71e8c allow integral web param 2024-06-06 09:43:37 +02:00
qimiko
0060de4e64
a real path hash fix 2024-06-05 13:47:16 -07:00
qimiko
84a73f11ab
works for me imo 2024-06-04 04:20:35 -07:00
matcool
4f6492da08 implement std::hash<std::filesystem::path> for everything but windows 2024-06-04 00:41:21 -03:00
qimiko
7860cb05ef
grrr (pch fixes) 2024-06-03 17:20:47 -07:00
matcool
324795cddb ghc::filesystem -> std::filesystem
remove ghc::filesystem :D
closes #713
2024-06-02 22:35:51 -03:00
matcool
713267a590 add getMod forward decl 2024-06-02 21:13:05 -03:00
matcool
ab08a1f64e remove log include from terminate util, fixes member test 2024-06-02 21:08:32 -03:00
kynex7510
ad54bf6425
Fix addresser 2024-06-02 10:43:41 +02:00
dankmeme01
f8f85ad2b0 Merge branch 'main' into new-index-but-better 2024-06-01 22:39:58 +02:00
altalk23
de733173c0 add CCMenuItemExt for lambda callback util needs 2024-06-01 15:38:21 +03:00
kynex7510
b3367d2230
Enable TLS certificate verification 2024-05-31 14:46:07 +02:00
kynex7510
a4b94693a3
WebRequest: Add proxy capabilities 2024-05-28 19:11:46 +02:00
Fleeym
663637e98e Merge branch 'main' of github.com:geode-sdk/geode into new-index-but-better 2024-05-27 01:21:30 +03:00
Cvolton
a4c6b71ee4
make ref move ctor noexcept 2024-05-25 18:18:51 +02:00
Fleeym
9bedf1bacc hey look other platforms work 2024-05-16 15:08:03 +03:00
Fleeym
89273c9458 Merge branch 'main' into new-index-but-better 2024-05-15 23:58:55 +03:00
HJfod
80455ddb14 Merge branch 'main' of https://github.com/geode-sdk/geode into main 2024-05-14 15:02:30 +03:00
HJfod
1dc9ec41cc add Result::unwrapOrDefault() 2024-05-14 15:02:17 +03:00
mat
4baef33172
fix comment 2024-05-12 13:01:26 -03:00
matcool
d725126e1f add geode::utils::getDisplayFactor 2024-05-12 10:25:36 -03:00
HJfod
77e0f2ebb0 fix file::readFromJson 2024-05-09 17:28:19 +03:00
HJfod
0a145550ed fix file::readFromJson 2024-05-09 10:57:12 +03:00
HJfod
e7df9a7a03 add task-based file picking functions 2024-05-05 23:49:07 +03:00
HJfod
03385d07e1 add download counts to ModItem 2024-05-04 23:01:07 +03:00
HJfod
309de35a57 Merge branch 'main' into new-index-but-better 2024-05-04 10:56:43 +03:00
HJfod
d36d50f525 remove debug log 2024-04-29 10:54:02 +03:00
HJfod
97f9820d0f
Add doc comments to Task
i wrote this on my phone sry if it breaks smth
2024-04-29 01:13:32 +03:00
matcool
9eb7064fcd fix Task::all when tasks is empty 2024-04-28 18:10:38 -03:00
Justin
f65336d4ba
geode::cocos::isSpriteName and geode::cocos::getChildBySpriteName (#725)
* isSpriteName and getChildBySpriteName (Code)

* isSpriteName and getChildBySpriteName (Headers)
2024-04-28 17:44:20 -03:00
Fleeym
d38b387d26 cross-platform is saved, for now 2024-04-28 20:42:28 +03:00
HJfod
93aa77943c add ComparableVersionInfo::getComparison 2024-04-26 13:52:02 +03:00
HJfod
beeb7ca1f8 recommended mods list 2024-04-25 17:50:00 +03:00
HJfod
ae1a766aa6 add Task::isNull 2024-04-24 00:09:39 +03:00
HJfod
684a109dee installing & updating mods (needs work still) 2024-04-23 22:24:08 +03:00
HJfod
f5f2a6450d add color3b for convenience 2024-04-22 20:18:58 +03:00
HJfod
72be477f48 fix all remaining memory issues with Task <3 2024-04-22 18:16:26 +03:00
HJfod
ab0aa47495 working on fixing task memory leaks 2024-04-22 15:21:44 +03:00
HJfod
adcd42e42b fix task access specifications being wrong 2024-04-22 13:39:47 +03:00
HJfod
fa1577184a fully move over from Promises to Tasks 2024-04-22 13:35:12 +03:00
HJfod
ed1668897e Task::runWithCallback among other fixes 2024-04-22 13:34:57 +03:00
HJfod
98d5216dcd fix Ok() and Err() causing unexpected implicit moves 2024-04-22 13:34:14 +03:00
HJfod
a91905bd4c fix MiniFunction not being usable with move-only parameters 2024-04-22 13:33:56 +03:00
HJfod
a09ba5c67c new Task class to replace Promises, test seems to indicate it's working 2024-04-22 00:08:10 +03:00
HJfod
4be910bda4 Fix crashes on trying to delete nullptr 2024-04-22 00:07:42 +03:00
HJfod
53b081e77b remove uses of std::source_location 2024-04-14 18:04:01 +03:00
HJfod
33e12646b8 Make terminate cause a crash instead for the crashlog and stacktrace 2024-04-14 17:57:15 +03:00
HJfod
69bcab649e Better MiniFunction terminate message 2024-04-14 17:56:48 +03:00
HJfod
33af7befed Merge branch 'main' into new-index-but-better 2024-04-13 21:47:56 +03:00
HJfod
243c11cc8f minifunction dont assume return value is default-constructible 2024-04-13 21:38:46 +03:00
HJfod
d107f3386f add geode::terminate and geode::unreachable 2024-04-13 21:38:26 +03:00
NyteLyte
a795487634
getChildOfType negative indices: size_t is unsigned (#656)
* size_t is unsigned

`i` is always >= 0 because it is unsigned. This causes crashes if no children are found before reaching 0.

* oops

`node->getChildrenCount() - 1` in the 2nd part of the for loop underflows as well if the children count is 0
2024-04-11 20:30:35 +03:00
HJfod
fc7d3343d9 implement proper mod update checking 2024-03-26 22:18:34 +02:00
HJfod
6aa60327a3 fix mac Promise build 2024-03-23 17:36:59 +02:00
HJfod
62480cc3e8 fix Promsie build on other platforms 2024-03-23 17:31:21 +02:00
HJfod
dc633ec72e server caching works like a dream now 2024-03-23 17:25:54 +02:00
HJfod
9cccecd4e7 the new promise design finally works :^) 2024-03-22 15:35:22 +02:00
HJfod
a4bcae726a i do not know what is wrong but Promise still doesn't work :( 2024-03-15 17:06:13 +02:00
HJfod
bc98c9b84e almost finished reworking promises, they compile now but sometimes dont work 2024-03-13 22:50:36 +02:00
HJfod
8101ae50ab new promise impl (does not compile for shit) 2024-03-12 22:41:17 +02:00
HJfod
5e76da13f6 add ObjWrapper 2024-03-05 18:25:25 +02:00
HJfod
72fa718a76 better restarting ui 2024-02-29 21:37:09 +02:00
HJfod
36ef4979ed add new ColorProvider utility 2024-02-28 00:27:19 +02:00
HJfod
dd57a39157 Merge branch 'main' into new-index-but-better 2024-02-26 18:28:11 +02:00
HJfod
456c1895be finish Promise 2024-02-26 18:27:33 +02:00
HJfod
463cebf0c4 finish new web requests api 2024-02-26 18:26:34 +02:00
matcool
a5475bda11 add missing GEODE_DLL 2024-02-26 11:58:40 -03:00