Commit graph

1267 commits

Author SHA1 Message Date
dankmeme01
f06a7414bb cleanup many creates promoting better modern c++ coding practices 2024-06-23 11:36:16 +02:00
altalk23
7742b57c49 even hackier one-of abi fix 2024-06-21 11:10:23 +03:00
altalk23
5ed0ed5ba6 i hate exposing structs
why arent settings opaque pointers aaaaaaa (fixed the abi break on custom settings users)
2024-06-21 10:43:59 +03:00
altalk23
d88a93e3cd fix eventlistenerpool abi break on windows 2024-06-21 09:53:01 +03:00
altalk23
f918f1310c fix compilation 2024-06-20 23:02:06 +03:00
altalk23
ea96e2c658 make some classes final 2024-06-20 23:00:04 +03:00
altalk23
f523689f53 cause my ebo check is wrong 2024-06-20 20:14:32 +03:00
altalk23
bf2fcd2daf ebo edge case 2024-06-20 20:09:58 +03:00
altalk23
1a513ec3c6 change the alignment things 2024-06-20 20:06:00 +03:00
altalk23
4c15bdbe32 remove toRemove from events 2024-06-20 19:06:38 +03:00
dankmeme01
92704b965f fix use of dangling string_view in task names 2024-06-20 17:36:53 +02:00
matcool
9d0c8ccc40 fix typename errors 2024-06-20 12:07:25 -03:00
matcool
5f37d30fbd add static_assert to prevent old way of adding members to modify 2024-06-20 11:58:44 -03:00
altalk23
636be07435 fix event pool race condition in a hacky way 2024-06-20 16:17:02 +03:00
altalk23
c3058ff452 add fast menu back 2024-06-20 15:21:34 +03:00
altalk23
7bd8a1a231 remove RT_ADD and RT_REMOVE 2024-06-20 15:19:43 +03:00
altalk23
3f674e522d quick impl one-of 2024-06-20 14:48:51 +03:00
altalk23
08da8ca774 remove all warnings 2024-06-20 14:16:37 +03:00
altalk23
34e51ff868 cleanup old field remnants without abi break 2024-06-20 11:48:15 +03:00
matcool
adc4469f77 add AxisAlignment::Between, for equal space between elements
inspired by flexbox's space-between
2024-06-18 00:17:00 -03: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
SpaghettDev
c3c2afaac8
gd::vector::erase for android (#906)
* gd::vector::erase for android

* oops
2024-06-16 10:45:47 -04:00
matcool
723ff87f06 add geode addition comment 2024-06-15 21:24:20 -03:00
Fleeym
4f400b530f
Move pick file APIs to Tasks (#899) 2024-06-14 23:19:16 +03:00
matcool
bacab92b75 ok apple clang can handle it 2024-06-13 12:14:05 -03:00
matcool
b22a59d41e make _spr compile time 2024-06-13 12:06:26 -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
Cvolton
48a7981d3b
split GEODE_PLATFORM_NAME for MacArm and MacIntel 2024-06-13 14:02:08 +02:00
mat
eb7c4d9803
rename Task::then to Task::listen 2024-06-12 17:38:46 -03:00
Oleksandr Nemesh
562fbf6cb1
add 2.2 CCDrawNode members 2024-06-12 00:57:12 +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
mat
2d274693c1
friend CCHttpClient 2024-06-10 11:33:06 -03:00
matcool
1d98bc9248 fix it 2024-06-09 19:47:38 -03:00
matcool
89548f282c i forgot about the json primitives 2024-06-09 19:36:36 -03:00
matcool
899a1a5d86 just include stl_serialize everywhere at this point 2024-06-09 19:23:05 -03:00
matcool
6c1a330aa6 check for is_json when using Mod::getSavedValue 2024-06-09 19:14:45 -03:00
SMJS
74a450e3c3
Border simplification/bad practice fixes (#883)
* Removed some useless stuff from Border

* Removed the bad z order abuse
2024-06-09 17:15:09 -03:00
acaruso-xx
ce6e6f063a Fix CCMotionStreak member 2024-06-09 11:27:57 -04:00
SpaghettDev
7c5a83d3d1
cursor position member (#872) 2024-06-08 21:50:58 +02: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
SMJS
87649f18da
Fixed padding and added a content layer to borders (#868) 2024-06-08 14:50:59 +03:00
SMJS
d9ed677c95
Added my nodes to the UI include (#869) 2024-06-08 14:50:15 +03:00
altalk23
330c20ec2c fix the string 2024-06-08 14:46:24 +03:00
Jouca
9c8f1a809e
Added ParticleStruct members (#865)
* Update CCParticleSystemQuad.h

* Update CCParticleSystemQuad.h

---------

Co-authored-by: alk <45172705+altalk23@users.noreply.github.com>
2024-06-08 14:45:31 +03:00
altalk23
1ac50e1587 particle struct size 2024-06-08 14:38:30 +03:00
qimiko
80d95cf603
change per platform array values 2024-06-07 23:42:54 -07:00
qimiko
47e7f8308a
split macos platform 2024-06-07 05:56:35 -07:00
qimiko
fe068a002c
supposed arm macos steam fix 2024-06-07 05:04:11 -07: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
SMJS
4c2e020b7f
Added border color support and fixed the color reload (#859)
* Moved a DTOR so that $modify doesn't complain

* Added border color support and fixed the color reload

* Small name correction

* Removed a debug log
2024-06-06 23:13:57 +03:00
SMJS
843c389161
Moved a DTOR so that $modify doesn't complain (#858) 2024-06-06 21:11:07 +03:00
dankmeme01
22575478b7 fix unreachable warning 2024-06-06 17:43:20 +02:00
SMJS
cb81e86e2f
List color fix (#856)
* Added a fix for the color support in generic cells
2024-06-06 14:20:44 +02:00
SMJS
e9304c60ac
Added dynamic borders (#855)
* Added dynamic borders

* Removed an ambiguous size
2024-06-06 14:17:14 +02:00
kynex7510
4ac52b11d2
Yeet safe_cast 2024-06-06 12:31:22 +02:00
SMJS
9a3a66ff3f
Added better color customization support for generic list cells (#854)
* Added better color customization support for generic list cells
2024-06-06 10:03:36 +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
SMJS
e0d9056a88
Added space only wrapping to the simple text area (#851) 2024-06-05 21:16:23 +03:00
Cvolton
144b2d70da
aliastl string 2024-06-04 23:33:07 +02: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
altalk23
0c35a92ece Update queueInMainThread to be movable 2024-06-03 23:21:17 +03:00
altalk23
e52b488d0d remove old fields & fix some deprecations 2024-06-03 23:04:54 +03:00
matcool
ff8de703ab gnustl std::vector<bool>::at 2024-06-03 01:24:18 -03:00
matcool
324795cddb ghc::filesystem -> std::filesystem
remove ghc::filesystem :D
closes #713
2024-06-02 22:35:51 -03:00
Cvolton
6575754b77
use aliastl on windows 2024-06-03 02:39:29 +02: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
Cvolton
5e413acfc2
update cclayer header for 2.206 2024-06-02 19:00:51 +02:00
kynex7510
ad54bf6425
Fix addresser 2024-06-02 10:43:41 +02:00
kynex7510
620e6b5eb9
Merge branch 'main' of https://github.com/geode-sdk/geode into new-index-but-better 2024-06-02 10:43:22 +02:00
qimiko
888f6e8dac
arm mac platform 2024-06-01 20:05:54 -07:00
dankmeme01
f8f85ad2b0 Merge branch 'main' into new-index-but-better 2024-06-01 22:39:58 +02:00
mat
ccfa6edf53
Merge pull request #814 from geode-sdk/win-64
Win 64 support
2024-06-01 17:12:30 -03:00
altalk23
008be9e780 typeinfo cast port 2024-06-01 20:23:03 +03:00
SMJS
2f56c0f800
Updated SimpleTextArea to clean up some old stuff and fix the overflow in most wrapping modes (#798)
* Fixed some broken overflow handles and made some optimizations in general

* Removed 2 empty methods

* Added an extra const
2024-06-01 18:22:50 +03: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
mat
fa92969a56
Merge pull request #805 from geode-sdk/main
update win-64 branch
2024-05-30 18:17:40 -03:00
dankmeme01
cea58a87f1 merge main into new-index-but-better 2024-05-30 15:19:28 +02:00
kynex7510
a4b94693a3
WebRequest: Add proxy capabilities 2024-05-28 19:11:46 +02:00
dankmeme01
43f646164f fix xhash yet again wow yay cool you can compile again 2024-05-28 07:31:10 +02:00
Oleksandr Nemesh
3e03978b1e
make getGameVersion public (#797) 2024-05-27 21:29:42 +03: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
altalk23
6510df7c85 reremove enums.hpp 2024-05-26 17:37:03 +03:00
Alvy
5b4bc9b394
add like 2 i found for CommentType (#755) 2024-05-26 17:35:37 +03:00
Calloc
4300ed746e
add GJHttpType enums (#787) 2024-05-26 17:35:25 +03:00
SpaghettDev
f902930413
some enums (#710)
* GJFeatureState

* GauntletType

* DifficultyIconType

* DemonDifficultyType

* a bit of GJMusicAction (cant find shit)

* GJErrorCode, AccountError and BackupAccountError

* CurrencySpriteType

* PlayerCollisionDirection

* gjParticleValue

* AudioGuidelinesType

* TextStyleType

* comma

* GJSongError

* SongSelectType

* FMODReverbPreset

* lowercase FMODReverbPresets

* PLAIN -> plain
2024-05-26 17:35:10 +03:00
altalk23
6737c609fa readd enums for merging prs 2024-05-26 17:34:49 +03:00
altalk23
23e04a08c3 move enums to bindings 2024-05-26 16:54:37 +03:00
Sabe
5f778ea90b
FMODQueuedMusic is not an enum (#666)
* FMODQueuedMusic is not an enum

* More types that are not enums
2024-05-26 16:50:14 +03:00
altalk23
32f2b24ff8 move geode call to 32 2024-05-26 15:47:21 +03:00
altalk23
a1536b4a66 define the windows32 64 macros 2024-05-26 15:46:40 +03:00
altalk23
e0b30f648f fix defines 2024-05-26 14:37:35 +03:00
altalk23
01020ccbd4 windows 64 bit changes (apart for links and all) 2024-05-26 14:32:36 +03:00
Cvolton
a4c6b71ee4
make ref move ctor noexcept 2024-05-25 18:18:51 +02:00
SpaghettDev
7a6958c47b
make CCTextFieldTTF hooks work (#774) 2024-05-19 21:05:01 +02:00
qimiko
7a87c8cfdb
ok fine 2024-05-16 17:39:59 -07:00
Chloe
fa159f17b1
update ccdirector 2024-05-16 17:25:54 -07:00
Fleeym
9bedf1bacc hey look other platforms work 2024-05-16 15:08:03 +03:00
HJfod
edb8e6c721 cherry-pick BasedButtonSprite changes from new-index-but-better 2024-05-16 14:59:46 +03:00
Fleeym
557873db25 fix FieldContainer destructor sometimes crashing 2024-05-15 23:59:42 +03:00
Fleeym
89273c9458 Merge branch 'main' into new-index-but-better 2024-05-15 23:58:55 +03:00
HJfod
f79e87af93 addSideArt overload for styling 2024-05-15 12:46:08 +03:00
HJfod
77e7c6d969 add docs for querySelector 2024-05-15 11:18:38 +03:00
HJfod
c75ec639f2 CCNode::querySelector 2024-05-15 11:11:46 +03:00
Fleeym
7071bb1588 ScrollLayer: add scrollToTop utility 2024-05-14 23:31:05 +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
Chloe
fcd1a331a0
win32 cocos header update 2024-05-13 23:30:04 -07: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
dankmeme01
92e0de4dea fix <memory> include 2024-05-10 12:15:18 +02:00
ConfiG
4ce33b363a
add the new particle system fields 2024-05-09 18:26:58 +03:00
HJfod
77e0f2ebb0 fix file::readFromJson 2024-05-09 17:28:19 +03:00
HJfod
7ff257cbd4 bring in Layout changes from new-index-but-better; makes AxisLayout pimpl 2024-05-09 15:18:18 +03:00
HJfod
26729c3f34 cherry-pick changes to ui/General from new-index-but-better 2024-05-09 11:49:19 +03:00
HJfod
0a145550ed fix file::readFromJson 2024-05-09 10:57:12 +03:00
HJfod
c7c2cc7afb Merge branch 'main' into new-index-but-better 2024-05-06 12:51:06 +03:00
HJfod
991fce0d72 add TextInput::setLabel 2024-05-06 12:50:40 +03:00
HJfod
e7df9a7a03 add task-based file picking functions 2024-05-05 23:49:07 +03:00
camila314
8db8406148 nvm 2024-05-05 14:39:33 -05:00
camila314
42fe3ba7b4 changed cchsvvalue back 2024-05-05 14:32:56 -05:00
dankmeme01
29b4732173 fix inputnode touches behaving weirdly in certain situations 2024-05-05 09:18:10 +02: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
mat
5c5e3bac72
add missing include in TextInput.hpp 2024-05-01 12:51:08 -03:00
HJfod
afa57371ec add gd-style colors option 2024-04-29 19:39:02 +03:00
HJfod
d33be521cb add ListBorders UI class 2024-04-29 17:36:28 +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
Justin
8ae4303918
GJDifficultyName and GJFeatureState (#706)
* Update Enums.hpp

* Update Enums.hpp

* Update Enums.hpp

* Update Enums.hpp
2024-04-28 22:28:13 +02: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
f44f392b97 Merge branch 'main' into new-index-but-better 2024-04-22 18:16:56 +03:00
HJfod
72be477f48 fix all remaining memory issues with Task <3 2024-04-22 18:16:26 +03:00
altalk23
bdb96daed1 remove typename from listimpl 2024-04-22 17:32:51 +03:00
altalk23
20dc3c95e2 deprecate old fields 2024-04-22 15:53:23 +03:00
altalk23
aaf62584fb fix fields not working on macos? hopefully 2024-04-22 15:34:57 +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
fbdb6265df Merge branch 'main' into new-index-but-better 2024-04-22 13:36:20 +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
altalk23
0a3efd7704 more typename 2024-04-22 00:22:40 +03:00
altalk23
4505b0da69 i hate concepts (alternate fields impl) 2024-04-22 00:09:49 +03:00
HJfod
5f8588ea97 Merge branch 'main' into new-index-but-better 2024-04-22 00:08:49 +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
dankmeme01
d7c3d4af62
Update ccTypes.h 2024-04-16 07:43:04 +02:00
Justin
5e11ddab85
Fix ccHSVValue (#694) 2024-04-16 07:16:51 +02: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
altalk23
2443422e94 ObjectScaleType 2024-04-14 16:14:14 +03:00
dankmeme01
798cacc1a8 add a way to access internal setting container
exposing an internal field like this isn't the best practice, but it seemed like the best and simplest solution to me to a problem of not being able to do anything to unknown setting keys (such as removing them or migrating their data if that key used to be a valid setting)
2024-04-14 00:00:17 +02: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
HJfod
b1f33db497 add Popup::setCloseButtonSpr 2024-04-13 21:38:05 +03:00
HJfod
c6ecd87da3 improve is_filter + add move binding to eventlistener 2024-04-13 21:37:49 +03:00
altalk23
00e971a274 fix field containers for separate modify classes in which one of them is a base of another, causing shared indices 2024-04-12 22:56:05 +03:00
Cooper
8c61a6fe60
Add MDTextArea link (#664)
* add level: links and mod: links

* fix errors

* fix errors 2

* fix errors 3 (hopefully)

* fix errors 4 (i think fixed?)

* fix 5 PLEASE

* fix mod links and make level links actually work

* PLEASE JUST WORK!!!!!!!!!!!!!

* change it to this

* oops forgot a )

* PLEASE HORRIBLE CODE JUST WORK!

* AHHHHHHHHHHHHHHH fix

* just work

* I DO HORRIBLE CODE

* Update ModInfoPopup.cpp

---------

Co-authored-by: alk <45172705+altalk23@users.noreply.github.com>
2024-04-11 20:40:04 +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
undefined06855
97f585545a
change #warning to #pragma message (#674) 2024-04-11 20:20:39 +03:00
The Bearodactyl
2ca2cae6f8
Update Enums.hpp (#684)
* Update Enums.hpp

* Update Enums.hpp
2024-04-11 20:14:58 +03:00
altalk23
e83e03f714 someone (prevter) wants to make a crashlog mod so i guess it's fine we export these as well 2024-04-11 19:05:36 +03:00
dankmeme01
9f2cea46ad fix the release xhash 2024-04-03 21:19:21 +02:00
dankmeme01
ac08d2f03a fix windows debug compilation 2024-04-03 18:33:37 +02:00
HJfod
dce50ca4df Merge branch 'main' into new-index-but-better 2024-03-30 21:21:33 +02:00
iAndyHD3
9426b6bc4a add GJGameEvent
source: GJBaseGameLayer::gameEventToString
2024-03-29 15:34:16 +01:00
altalk23
dd6e20b283 add a GEODE_REVERT_TODO_RETURN option for cmake 2024-03-27 22:36:45 +03:00
altalk23
55e1f6a16c Operation Big Sister - Finalize TodoReturn changes 2024-03-27 22:18:46 +03:00
altalk23
f3267b0f43 Operation Big Sister - Make TodoReturn a struct and disallow modifying TodoReturn functions 2024-03-27 20:55:14 +03:00
HJfod
fc7d3343d9 implement proper mod update checking 2024-03-26 22:18:34 +02:00
Cvolton
912aa23833
add missing header to msvc allocator 2024-03-25 23:22:38 +01:00
kynex7510
afc4d572ba
Fix C++23 compilation (#644) 2024-03-25 23:21:39 +01:00
dankmeme01
bb81fa6cb2
Merge pull request #636 from kynex7510/msvcstl
MSVC Fixups
2024-03-25 21:03:13 +01:00
kynex7510
b4cbae894a
Fix macos build 2024-03-25 20:51:17 +01:00
HJfod
560b42c8de make server mods have a little bit of a different color 2024-03-25 13:18:25 +02:00
HJfod
a4685a50e1 fix ModPopup::updateState behaviour with the enable button 2024-03-24 21:31:42 +02:00
HJfod
4447153f24 implement tags key in ModMetadata 2024-03-24 11:05:51 +02:00
HJfod
56679e739b add a ModMetadata overload for openSupportPopup + make it crash-resistant 2024-03-24 00:33:46 +02:00
HJfod
6995e8d4c5 add support for overriding cross axis line alignment on AxisLayout nodes 2024-03-24 00:33:03 +02:00