From c60a9e65075855c4b68b98687b811d656d487384 Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Sat, 4 Nov 2023 22:16:10 +0000 Subject: [PATCH] Rename load_asset to load_asset_from_file --- include/GameEngine.h | 2 +- src/GameEngine.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/GameEngine.h b/include/GameEngine.h index 90c1982..dd4cbbc 100644 --- a/include/GameEngine.h +++ b/include/GameEngine.h @@ -45,7 +45,7 @@ void remove_object(ObjectID *id); // END OBJECT MANAGEMENT API // ASSET MANAGEMENT API -AssetID load_asset(const char *path, AssetType type); +AssetID load_asset_from_file(const char *path, AssetType type); void unload_asset(AssetID *id); #ifdef __ANDROID__ diff --git a/src/GameEngine.c b/src/GameEngine.c index be8334d..4465235 100644 --- a/src/GameEngine.c +++ b/src/GameEngine.c @@ -206,7 +206,7 @@ void remove_object(ObjectID *id) { remove_object_from_store(GameEngine.object_store, id); } -AssetID load_asset(const char *path, AssetType type) { +AssetID load_asset_from_file(const char *path, AssetType type) { return type == ASSET_TYPE_IMAGE ? load_asset_to_manager(GameEngine.asset_manager, path, type, GameEngine.window.renderer, NULL)