mirror of
				https://github.com/coop-deluxe/sm64coopdx.git
				synced 2025-10-30 08:01:01 +00:00 
			
		
		
		
	removed get_game_tick_counter
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Build coop / build-linux (push) Has been cancelled
				
			
		
			
				
	
				Build coop / build-steamos (push) Has been cancelled
				
			
		
			
				
	
				Build coop / build-windows-opengl (push) Has been cancelled
				
			
		
			
				
	
				Build coop / build-windows-directx (push) Has been cancelled
				
			
		
			
				
	
				Build coop / build-macos-arm (push) Has been cancelled
				
			
		
			
				
	
				Build coop / build-macos-intel (push) Has been cancelled
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Build coop / build-linux (push) Has been cancelled
				
			Build coop / build-steamos (push) Has been cancelled
				
			Build coop / build-windows-opengl (push) Has been cancelled
				
			Build coop / build-windows-directx (push) Has been cancelled
				
			Build coop / build-macos-arm (push) Has been cancelled
				
			Build coop / build-macos-intel (push) Has been cancelled
				
			use get_global_timer instead
This commit is contained in:
		
							parent
							
								
									2f573d17f9
								
							
						
					
					
						commit
						f587dc38be
					
				
					 6 changed files with 0 additions and 51 deletions
				
			
		|  | @ -11104,12 +11104,6 @@ function texture_to_lua_table(tex) | |||
|     -- ... | ||||
| end | ||||
| 
 | ||||
| --- @return integer | ||||
| --- Gets the total number of game ticks since the game was launched. Wraps around at U32_MAX. | ||||
| function get_game_tick_counter() | ||||
|     -- ... | ||||
| end | ||||
| 
 | ||||
| --- @param name string | ||||
| --- @return ModelExtendedId | ||||
| --- Gets the extended model ID for the `name` of a `GeoLayout` | ||||
|  |  | |||
|  | @ -5128,27 +5128,6 @@ Converts a texture's pixels to a Lua table. Returns nil if failed. Otherwise, re | |||
| 
 | ||||
| <br /> | ||||
| 
 | ||||
| ## [get_game_tick_counter](#get_game_tick_counter) | ||||
| 
 | ||||
| ### Description | ||||
| Gets the total number of game ticks since the game was launched. Wraps around at U32_MAX. | ||||
| 
 | ||||
| ### Lua Example | ||||
| `local integerValue = get_game_tick_counter()` | ||||
| 
 | ||||
| ### Parameters | ||||
| - None | ||||
| 
 | ||||
| ### Returns | ||||
| - `integer` | ||||
| 
 | ||||
| ### C Prototype | ||||
| `u64 get_game_tick_counter(void);` | ||||
| 
 | ||||
| [:arrow_up_small:](#) | ||||
| 
 | ||||
| <br /> | ||||
| 
 | ||||
| --- | ||||
| # functions from smlua_model_utils.h | ||||
| 
 | ||||
|  |  | |||
|  | @ -1991,7 +1991,6 @@ | |||
|    - [geo_get_current_camera](functions-6.md#geo_get_current_camera) | ||||
|    - [geo_get_current_held_object](functions-6.md#geo_get_current_held_object) | ||||
|    - [texture_to_lua_table](functions-6.md#texture_to_lua_table) | ||||
|    - [get_game_tick_counter](functions-6.md#get_game_tick_counter) | ||||
| 
 | ||||
| <br /> | ||||
| 
 | ||||
|  |  | |||
|  | @ -33296,21 +33296,6 @@ int smlua_func_texture_to_lua_table(lua_State* L) { | |||
|     return 1; | ||||
| } | ||||
| 
 | ||||
| int smlua_func_get_game_tick_counter(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", "get_game_tick_counter", 0, top); | ||||
|         return 0; | ||||
|     } | ||||
| 
 | ||||
| 
 | ||||
|     lua_pushinteger(L, get_game_tick_counter()); | ||||
| 
 | ||||
|     return 1; | ||||
| } | ||||
| 
 | ||||
|   /////////////////////////
 | ||||
|  // smlua_model_utils.h //
 | ||||
| /////////////////////////
 | ||||
|  | @ -37194,7 +37179,6 @@ void smlua_bind_functions_autogen(void) { | |||
|     smlua_bind_function(L, "geo_get_current_camera", smlua_func_geo_get_current_camera); | ||||
|     smlua_bind_function(L, "geo_get_current_held_object", smlua_func_geo_get_current_held_object); | ||||
|     smlua_bind_function(L, "texture_to_lua_table", smlua_func_texture_to_lua_table); | ||||
|     smlua_bind_function(L, "get_game_tick_counter", smlua_func_get_game_tick_counter); | ||||
| 
 | ||||
|     // smlua_model_utils.h
 | ||||
|     smlua_bind_function(L, "smlua_model_util_get_id", smlua_func_smlua_model_util_get_id); | ||||
|  |  | |||
|  | @ -625,7 +625,3 @@ void texture_to_lua_table(const u8 *tex) { | |||
|         lua_rawseti(L, -2, i / bytesPerPixel + 1); | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| u64 get_game_tick_counter(void) { | ||||
|     return gGlobalTimer; | ||||
| } | ||||
|  |  | |||
|  | @ -234,7 +234,4 @@ struct GraphNodeHeldObject* geo_get_current_held_object(void); | |||
| /* |description|Converts a texture's pixels to a Lua table. Returns nil if failed. Otherwise, returns a table as a pure memory buffer. Supports rgba16 and rgba32 textures.|descriptionEnd|*/ | ||||
| void texture_to_lua_table(const u8 *tex); | ||||
| 
 | ||||
| /* |description|Gets the total number of game ticks since the game was launched. Wraps around at U32_MAX.|descriptionEnd|*/ | ||||
| u64 get_game_tick_counter(void); | ||||
| 
 | ||||
| #endif | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Isaac0-dev
						Isaac0-dev