Skip to content

Commit

Permalink
Add todo open handles.
Browse files Browse the repository at this point in the history
  • Loading branch information
gabordemooij committed Jun 22, 2024
1 parent 3029308 commit 2909bde
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/media/media.c
Original file line number Diff line number Diff line change
Expand Up @@ -1885,6 +1885,9 @@ ctr_object* ctr_sound_play(ctr_object* myself, ctr_argument* argumentList) {
return myself;
}

//@todo better asset management, opening the same file again and again
//may cause problems with open handles (workaround can be use multiple files for diff. images)
//I may need to implement some sort of asset manager that keeps track of files/handles.
SDL_RWops* ctr_internal_media_load_asset(char* asset_name, char asset_type) {
SDL_RWops* res = NULL;
// If we have no asset package, load from file instead
Expand Down

0 comments on commit 2909bde

Please sign in to comment.