mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-12-04 17:57:25 +00:00
Disallow another dangerous function
This commit is contained in:
parent
eac580e04a
commit
bff0cda663
5 changed files with 1 additions and 40 deletions
|
@ -91,7 +91,7 @@ override_allowed_functions = {
|
|||
override_disallowed_functions = {
|
||||
"src/audio/external.h": [ " func_" ],
|
||||
"src/engine/math_util.h": [ "atan2f", "vec3s_sub" ],
|
||||
"src/engine/surface_load.h": [ "alloc_surface_pools" ],
|
||||
"src/engine/surface_load.h": [ "alloc_surface_pools", "clear_dynamic_surfaces" ],
|
||||
"src/engine/surface_collision.h": [ " debug_", "f32_find_wall_collision" ],
|
||||
"src/game/mario_actions_airborne.c": [ "^[us]32 act_.*" ],
|
||||
"src/game/mario_actions_automatic.c": [ "^[us]32 act_.*" ],
|
||||
|
|
|
@ -9195,10 +9195,6 @@ function find_water_level(x, z)
|
|||
-- ...
|
||||
end
|
||||
|
||||
function clear_dynamic_surfaces()
|
||||
-- ...
|
||||
end
|
||||
|
||||
--- @param data Pointer_integer
|
||||
--- @return integer
|
||||
function get_area_terrain_size(data)
|
||||
|
|
|
@ -5192,24 +5192,6 @@
|
|||
<br />
|
||||
|
||||
|
||||
## [clear_dynamic_surfaces](#clear_dynamic_surfaces)
|
||||
|
||||
### Lua Example
|
||||
`clear_dynamic_surfaces()`
|
||||
|
||||
### Parameters
|
||||
- None
|
||||
|
||||
### Returns
|
||||
- None
|
||||
|
||||
### C Prototype
|
||||
`void clear_dynamic_surfaces(void);`
|
||||
|
||||
[:arrow_up_small:](#)
|
||||
|
||||
<br />
|
||||
|
||||
## [get_area_terrain_size](#get_area_terrain_size)
|
||||
|
||||
### Lua Example
|
||||
|
|
|
@ -1921,7 +1921,6 @@
|
|||
<br />
|
||||
|
||||
- surface_load.h
|
||||
- [clear_dynamic_surfaces](functions-5.md#clear_dynamic_surfaces)
|
||||
- [get_area_terrain_size](functions-5.md#get_area_terrain_size)
|
||||
- [load_area_terrain](functions-5.md#load_area_terrain)
|
||||
- [load_object_collision_model](functions-5.md#load_object_collision_model)
|
||||
|
|
|
@ -33333,21 +33333,6 @@ int smlua_func_find_water_level(lua_State* L) {
|
|||
// surface_load.h //
|
||||
////////////////////
|
||||
|
||||
int smlua_func_clear_dynamic_surfaces(UNUSED lua_State* L) {
|
||||
if (L == NULL) { return 0; }
|
||||
|
||||
int top = lua_gettop(L);
|
||||
if (top != 0) {
|
||||
LOG_LUA_LINE("Improper param count for '%s': Expected %u, Received %u", "clear_dynamic_surfaces", 0, top);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
clear_dynamic_surfaces();
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
int smlua_func_get_area_terrain_size(lua_State* L) {
|
||||
if (L == NULL) { return 0; }
|
||||
|
||||
|
@ -35266,7 +35251,6 @@ void smlua_bind_functions_autogen(void) {
|
|||
smlua_bind_function(L, "find_water_level", smlua_func_find_water_level);
|
||||
|
||||
// surface_load.h
|
||||
smlua_bind_function(L, "clear_dynamic_surfaces", smlua_func_clear_dynamic_surfaces);
|
||||
smlua_bind_function(L, "get_area_terrain_size", smlua_func_get_area_terrain_size);
|
||||
smlua_bind_function(L, "load_area_terrain", smlua_func_load_area_terrain);
|
||||
smlua_bind_function(L, "load_object_collision_model", smlua_func_load_object_collision_model);
|
||||
|
|
Loading…
Reference in a new issue