Added "art_cache_clear" script function.

This commit is contained in:
NovaRain
2019-01-20 09:10:58 +08:00
parent 7b5075042d
commit 120888e5ed
4 changed files with 9 additions and 0 deletions
+1
View File
@@ -214,6 +214,7 @@
#define party_member_list_all party_member_list(1) #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 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(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) #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) > void sfall_func3("set_object_data", object, int offset, int data)
- sets the data at the specified offset of an object - 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 ------- ------ MORE INFO -------
------------------------ ------------------------
+4
View File
@@ -195,3 +195,7 @@ end:
_RET_VAL_INT(ebp) _RET_VAL_INT(ebp)
_OP_END _OP_END
} }
static void sf_art_cache_flush() {
__asm call art_flush_;
}
+1
View File
@@ -103,6 +103,7 @@ static void sf_get_metarule_table() {
- minArgs/maxArgs - minimum and maximum number of arguments allowed for this function - minArgs/maxArgs - minimum and maximum number of arguments allowed for this function
*/ */
static const SfallMetarule metaruleArray[] = { static const SfallMetarule metaruleArray[] = {
{"art_cache_clear", sf_art_cache_flush, 0, 0},
{"attack_is_aimed", sf_attack_is_aimed, 0, 0}, {"attack_is_aimed", sf_attack_is_aimed, 0, 0},
{"critter_inven_obj2", sf_critter_inven_obj2, 2, 2}, {"critter_inven_obj2", sf_critter_inven_obj2, 2, 2},
{"create_win", sf_create_win, 5, 6}, {"create_win", sf_create_win, 5, 6},