Commit graph

3995 commits

Author SHA1 Message Date
nerix
829c48d79a
Attempt to catch std::bad_function_call when adding a channel point reward (#4360)
* fix: attempt to catch std::bad_function_call

* chore: add changelog entry

* fix: spelling mistake

Co-authored-by: Leon Richardt <git@leon.dev>

---------

Co-authored-by: Leon Richardt <git@leon.dev>
2023-02-09 00:43:52 +01:00
Mm2PL
a40d29a514
docs: make sure all code blocks have an appropriate language
[no ci]
2023-02-09 00:33:32 +01:00
Mm2PL
9ac0844921
FUCK OFF 2023-02-09 00:13:53 +01:00
Mm2PL
86c872d4af
Add proper support for logging from lua 2023-02-09 00:11:56 +01:00
Mm2PL
b1031c7211
Add lua::{peek,push} support for enums with magic_enum 2023-02-08 23:57:59 +01:00
Mm2PL
da05115506
Add lua::toString which converts value to a string 2023-02-08 23:57:32 +01:00
Mm2PL
d945663162
Add lua::{peek,push} support for std::string 2023-02-08 23:56:27 +01:00
Mm2PL
0a9fa2fe09
Clean up header generation code 2023-02-08 00:38:04 +01:00
Mm2PL
1cd1822fcc
don't break the whole feature by attempting to clean up logging 2023-02-08 00:36:45 +01:00
Mm2PL
c4ec7b8e27
diff cleanup 2023-02-08 00:31:56 +01:00
Mm2PL
f12b964f59
Use Plugin destructor to call lua_close in most cases
reloading still needs manual closing
2023-02-08 00:03:01 +01:00
Mm2PL
26a5a24eea
Add missing #ifdef CHATTERINO_HAVE_PLUGINS 2023-02-07 23:00:17 +01:00
Mm2PL
bc0d30615a
FUCK OFF PRETTIER YOU PIECE OF SHIT 2023-02-07 22:01:29 +01:00
Mm2PL
0f0481955d
Tell clang-tidy that L is a fine name for a local pointer 2023-02-07 22:00:07 +01:00
Mm2PL
2cf18fbf93
Clean up includes in PluginController.{c,h}pp 2023-02-07 21:57:07 +01:00
Mm2PL
09fed407d2
Remove useless new line in src/CMakeLists.txt 2023-02-07 21:54:27 +01:00
Mm2PL
123dc87681
Add missing new line in CommandController.cpp 2023-02-07 21:52:00 +01:00
Mm2PL
ffa6729ede
Remove unused include in CommandController.cpp 2023-02-07 21:51:39 +01:00
Mm2PL
456c7f80a8
Rename constant C2LIB -> c2lib 2023-02-07 21:50:30 +01:00
Mm2PL
55d8a31b49
Get rid of REPLACEMENT_CHARACTER constant 2023-02-07 21:49:47 +01:00
Mm2PL
8e67327abc
Clean up NOLINT comments 2023-02-07 21:49:37 +01:00
Mm2PL
d4bdcc7da2
Add all the missing .path() calls 2023-02-07 21:42:03 +01:00
Mm2PL
ef70112386
Fix double plugin initialization problem 2023-02-07 21:41:00 +01:00
Mm2PL
9b231dc3e9
Improve chatterino.lua logs + remove . and .. from plugin search 2023-02-07 21:39:37 +01:00
Mm2PL
e9aa136bbe
Validate info.json harder and show what's wrong 2023-02-07 00:34:03 +01:00
Mm2PL
11f19ecc66
Add a info.json schema 2023-02-06 23:21:17 +01:00
Mm2PL
f080070453
Apply Nerixyz's documentation suggestion
Co-authored-by: nerix <nerixdev@outlook.de>
2023-02-06 22:47:59 +01:00
Mm2PL
df9c269d6d
Use target_compile_definitions for -DCHATTERINO_HAVE_PLUGINS 2023-02-06 22:46:32 +01:00
dependabot[bot]
6defee0615
Bump ilammy/msvc-dev-cmd from 1.12.0 to 1.12.1 (#4359)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-06 02:29:20 +00:00
nerix
0c74ab17ed
Refactor 7TV EventAPI (#4342)
* refactor: remove file prefix

* refactor: put eventapi into a namespace

* refactor: support multiple conditions

* fix: handle ack

* docs: add changelog entry

* fix: unsubscribe in destructor

* fix: naming of parameter

* fix: namespaces

* chore: casing

* fix: missing namespace

---------

Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2023-02-04 13:42:52 +01:00
Mm2PL
1040fbc5e4
Add an icon for the plugins tab
I used this one: https://github.com/microsoft/fluentui-system-icons/tree/main/assets/Plug%20Disconnected/SVG
and modified it to be dark theme compatible
2023-02-04 13:21:29 +01:00
Mm2PL
44e7505483
ApiChatterino -> LuaApi 2023-02-04 12:46:43 +01:00
Mm2PL
bb412340db
Use lua convention for main file in package: init.lua 2023-02-04 02:23:36 +01:00
Mm2PL
4030439766
Rename ApiChatterino -> LuaApi 2023-02-04 02:23:16 +01:00
Mm2PL
98e2e61296
Begone stupid include 2023-02-04 01:57:52 +01:00
Mm2PL
d9440650a6
Clean up diff 2023-02-04 01:55:13 +01:00
Mm2PL
ac807cbb7d
Remove useless lua version set() calls 2023-02-04 01:53:23 +01:00
Mm2PL
733c2baa42
WHAT THE FUCK IS THIS PIECE OF SHIT LINTER 2023-02-04 01:30:40 +01:00
Mm2PL
34b7a02602
Document load() and execfile() changes 2023-02-04 01:26:27 +01:00
Mm2PL
43c3fec3f3
Fix up docs 2023-02-04 01:26:20 +01:00
Mm2PL
760ec89e07
Check for invalid utf8 better 2023-02-04 01:25:58 +01:00
Mm2PL
e331e49310
Replace Lua loadfile/dofile with execfile() 2023-02-04 01:25:45 +01:00
Mm2PL
24c6003043
Add lua::peek for QByteArray 2023-02-04 01:20:41 +01:00
Mm2PL
3013e73e94
Move shit around, add g_load() 2023-02-03 22:14:18 +01:00
Mm2PL
cf7b73f251
I hate prettier SO FUCKING MUCH 2023-02-02 21:37:42 +01:00
Mm2PL
ee1bb1956b
Make clang-tidy complain a little less 2023-02-02 21:32:15 +01:00
Mm2PL
ff49aebf08
Add a section on plugin structure 2023-02-02 19:25:28 +01:00
Mm2PL
31cb63dc9f
Add a markdown doc explaining the lua environment 2023-02-02 19:09:57 +01:00
Mm2PL
9da3a33e1c
Make c2.register_command() return a boolean if it went ok 2023-02-02 14:41:54 +01:00
Mm2PL
52832b43e5
Remove libraryPermissions in favor of loading safe(ish) stdlib part 2023-02-02 14:41:25 +01:00