mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Added "art_cache_clear" script function.
This commit is contained in:
@@ -214,6 +214,7 @@
|
||||
#define party_member_list_all party_member_list(1)
|
||||
|
||||
|
||||
#define art_cache_clear sfall_func0("art_cache_clear")
|
||||
#define attack_is_aimed sfall_func0("attack_is_aimed")
|
||||
#define create_win(winName, x, y, w, h) sfall_func5("create_win", winName, x, y, w, h)
|
||||
#define create_win_flag(winName, x, y, w, h, flag) sfall_func6("create_win", winName, x, y, w, h, flag)
|
||||
|
||||
@@ -467,6 +467,9 @@ Some utility/math functions are available:
|
||||
> void sfall_func3("set_object_data", object, int offset, int data)
|
||||
- sets the data at the specified offset of an object
|
||||
|
||||
> void sfall_func0("art_cache_clear")
|
||||
- clears the cache of FRM image files loaded into memory
|
||||
|
||||
------------------------
|
||||
------ MORE INFO -------
|
||||
------------------------
|
||||
|
||||
@@ -195,3 +195,7 @@ end:
|
||||
_RET_VAL_INT(ebp)
|
||||
_OP_END
|
||||
}
|
||||
|
||||
static void sf_art_cache_flush() {
|
||||
__asm call art_flush_;
|
||||
}
|
||||
|
||||
@@ -103,6 +103,7 @@ static void sf_get_metarule_table() {
|
||||
- minArgs/maxArgs - minimum and maximum number of arguments allowed for this function
|
||||
*/
|
||||
static const SfallMetarule metaruleArray[] = {
|
||||
{"art_cache_clear", sf_art_cache_flush, 0, 0},
|
||||
{"attack_is_aimed", sf_attack_is_aimed, 0, 0},
|
||||
{"critter_inven_obj2", sf_critter_inven_obj2, 2, 2},
|
||||
{"create_win", sf_create_win, 5, 6},
|
||||
|
||||
Reference in New Issue
Block a user