Commit graph

4656 commits

Author SHA1 Message Date
Mm2PL 7c45739c40
Remove redundant SOL_ALL_SAFETIES_ON=1 2024-10-14 17:23:17 +02:00
Mm2PL 40fb96ac59
Add tests for tryCall 2024-10-14 17:02:08 +02:00
Mm2PL 0321ce104a
Improve tryCall semantics for std::optional 2024-10-14 17:01:06 +02:00
Mm2PL fc0af4cc0e
Place param names in comments when unused 2024-10-12 22:41:04 +02:00
Mm2PL a72abdcaba
Lock on hack, not check expired 2024-10-12 22:31:16 +02:00
Mm2PL 0f3f9ae7f2
Remove useless NOLINTEND comment 2024-10-12 22:30:38 +02:00
Mm2PL cb269943e2
REMOVE THIS INCLUDE 2024-10-12 22:30:27 +02:00
Mm2PL 6aeb4a6fe8
Regenerate docs/plugin-meta.lua 2024-10-12 22:22:57 +02:00
Mm2PL 76e51b6c96
Give enum values separate LuaLS types 2024-10-12 22:22:16 +02:00
Mm2PL b8cbcd34c1
Make clang-tidy a little happier 2024-10-12 22:21:45 +02:00
Mm2PL d5a9a1945d
Move everything to use ThisPluginState 2024-10-12 22:21:42 +02:00
Mm2PL 482b5981f8
Create ThisPluginState 2024-10-12 22:20:52 +02:00
Mm2PL 8cf596ba88
Remove useless include 2024-10-12 17:10:55 +02:00
Mm2PL b5b6b834de
Stop clang-tidy complaining about unused variables in g_load 2024-10-12 17:06:09 +02:00
Mm2PL 0f9f791adf
Merge branch 'master' of github.com:Chatterino/chatterino2 into chore/move-everything-to-sol 2024-10-12 00:19:57 +02:00
Mm2PL 51423afc17
We want to use sol::nil on all platforms, thanks 2024-10-12 00:08:40 +02:00
Mm2PL bf837bcebb
Ensure time cannot be negative 2024-10-11 18:36:39 +02:00
Mm2PL 0393274cc0
FIX ON WINDOWS ATTEMPT 3 2024-10-10 14:18:09 +02:00
Mm2PL f5b49bff6a
Create c2.later thread from main thread and before timer hits 2024-10-10 14:10:01 +02:00
Mm2PL 22646608f9
Add a test for c2.later 2024-10-10 13:41:49 +02:00
Mm2PL 53ae8ab8ca
Make c2_later throw not longjmp 2024-10-10 13:38:03 +02:00
Mm2PL 9f196c67ea
ci: add skip-clang-tidy label (#5639) 2024-10-09 20:17:29 -04:00
Mm2PL 340f50c4ab
Fix compilation 2024-10-10 00:19:37 +02:00
Mm2PL 1d60a73137
Add missing includes 2024-10-09 23:50:47 +02:00
Mm2PL 1c92a93261
Add changelog (finally) 2024-10-09 23:12:59 +02:00
Mm2PL d1c227a65c
Correct documentation 2024-10-09 23:12:10 +02:00
Mm2PL de6e2cc1fd
Add plugin tests 2024-10-09 23:12:10 +02:00
Mm2PL b338d822fa
Add missing includes 2024-10-09 23:12:10 +02:00
Mm2PL 16da304d78
Use QByteArray directly in HTTPRequest::set_{payload,header} 2024-10-09 23:12:10 +02:00
Mm2PL 557e50f310
Make PluginController::openLibrariesFor not take a directory 2024-10-09 23:12:10 +02:00
Mm2PL dddb8f5886
Add sol functions for QByteArray 2024-10-09 23:12:09 +02:00
Mm2PL 76ce722d1d
Make io.lines() throw instead of returning an open-like error 2024-10-09 23:12:09 +02:00
Mm2PL 8f2b14c1af
Fix HTTPRequest crashing on plugin unload 2024-10-09 23:12:09 +02:00
Mm2PL 7b5ed5297e
Give HTTPRequest a __tostring 2024-10-09 23:12:09 +02:00
Mm2PL 90bcdc8bf5
Give HTTPResponse a to_string 2024-10-09 23:12:09 +02:00
Mm2PL 072003c0fe
Make HTTPResponse no longer have shared_from_this 2024-10-09 23:12:09 +02:00
Mm2PL 1f2b25eb76
Call timers on separate coroutine threads 2024-10-09 23:12:09 +02:00
Mm2PL 846f7ca5bd
Fix HTTPRequest randomly failing
- do not store the state
 - keep the object alive (it's a modern day miracle that c2 didn't crash
   burn and explode without the shared_ptr hack)
2024-10-09 23:12:09 +02:00
Mm2PL 062c8b7821
Remove now unused lua utilities 2024-10-09 23:12:09 +02:00
Mm2PL 9edbfcccca
Add GDB_DUMMY tag for lua::stackDump 2024-10-09 23:12:09 +02:00
Mm2PL 04267d60e8
Move initialization to sol 2024-10-09 23:12:09 +02:00
Mm2PL db479f1125
Move c2.later to sol 2024-10-09 23:12:09 +02:00
Mm2PL e1dcf28dac
Move io wrapper to sol 2024-10-09 23:12:09 +02:00
Mm2PL 3faa5cb9b3
Enable all safeties for sol 2024-10-09 23:12:09 +02:00
Mm2PL 24ec7710a6
Move load() to sol 2024-10-09 23:12:09 +02:00
Mm2PL a8438bfa50
Move logging to sol 2024-10-09 23:12:09 +02:00
Mm2PL 0d9f5f2576
Update library notes 2024-10-09 23:12:09 +02:00
Mm2PL 235da004cd
Add asserts to explode the process earliest possible moment 2024-10-09 23:12:09 +02:00
Mm2PL 48a3adc8cf
Move events to sol
including tab completion
2024-10-09 23:12:09 +02:00
Mm2PL 1008904fb1
Move EventType to its own file
For #include reasons
2024-10-09 23:12:09 +02:00