Accept "fairydust" as an emit type in ba.emitfx()

This commit is contained in:
Ritiek Malhotra 2022-09-08 23:01:09 +05:30
parent 91d9142b60
commit 63b225c5ec
2 changed files with 3 additions and 0 deletions

View File

@ -1,4 +1,5 @@
### 1.7.7 (build 20798, api 7, 2022-09-09)
- Accept "fairydust" as an emit type in `ba.emitfx()`.
- Added `ba.app.meta.load_exported_classes()` for loading classes discovered by the meta subsystem cleanly in a background thread.
- Improved logging of missing playlist game types.
- Some ba.Lstr functionality can now be used in background threads.

View File

@ -327,6 +327,8 @@ auto PyEmitFx(PyObject* self, PyObject* args, PyObject* keywds) -> PyObject* {
emit_type = BGDynamicsEmitType::kDistortion;
} else if (!strcmp(emit_type_str, "flag_stand")) {
emit_type = BGDynamicsEmitType::kFlagStand;
} else if (!strcmp(emit_type_str, "fairydust")) {
emit_type = BGDynamicsEmitType::kFairyDust;
} else {
throw Exception("Invalid emit type: '" + std::string(emit_type_str) + "'.",
PyExcType::kValue);