fix .so placement and loading paths
This commit is contained in:
		| @@ -13,10 +13,7 @@ endif() | ||||
|  | ||||
| set(SOURCE_FILES | ||||
|         game.c | ||||
|         state.h | ||||
| ) | ||||
|  | ||||
| use_townengine(${PROJECT_NAME} "${SOURCE_FILES}") | ||||
|  | ||||
| set_target_properties(${PROJECT_NAME} PROPERTIES | ||||
|         RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} | ||||
| ) | ||||
| use_townengine(${PROJECT_NAME} "${SOURCE_FILES}" ${CMAKE_CURRENT_SOURCE_DIR}) | ||||
|   | ||||
| @@ -4,7 +4,7 @@ | ||||
| #include <malloc.h> | ||||
|  | ||||
|  | ||||
| void game_tick(t_ctx *ctx) { | ||||
| void game_tick(void) { | ||||
|     /* do state initialization when engine asks for it */ | ||||
|     /* it could happen multiple times per application run, as game code is reloadable */ | ||||
|     if (ctx.initialization_needed) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user