mirror of
				https://github.com/coop-deluxe/sm64coopdx.git
				synced 2025-10-30 08:01:01 +00:00 
			
		
		
		
	- Renamed the `new` and `realloc` functions to `create` and `resize` - Added `delete_all` - Made Mod Data a class: - Allocation is now limited to prevent out-of-memory crashes: 1024 display lists of max size 2048 and 1024 vertex buffers of max size 4096 per mod - Added error codes to identify the cause of a failure (name not found, pointer not found, max size exceeded, item pool is full, ...)
		
			
				
	
	
		
			11 lines
		
	
	
	
		
			149 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
	
		
			149 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#include "dynos.cpp.h"
 | 
						|
 | 
						|
u32 gDynosModDataLastError = 0;
 | 
						|
 | 
						|
extern "C" {
 | 
						|
 | 
						|
u32 dynos_mod_data_get_last_error() {
 | 
						|
    return gDynosModDataLastError;
 | 
						|
}
 | 
						|
 | 
						|
}
 |