2D Run-and-gun shooter inspired by One Man's Doomsday, Counter-Strike, and Metal Slug.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

12 lines
511 B

  1. #include "IZ_asset.h"
  2. void IZ_AssetResolveDir(const char* asset_name, char* out) {
  3. // TODO:
  4. // 1. Check all folders under assets/
  5. // 2. Check if the asset name exists under assets/internal/<pack>
  6. // 3. Return the directory when directory exists for assets/internal/<pack>/<asset_name>
  7. // 4. Return the directory when directory exists for assets/external/<pack>/<asset_name>
  8. // 5. Else return assets/internal/default/<asset_name>
  9. sprintf(out, "%s/%s", "assets/internal/default", asset_name);
  10. }