Skip to content

Commit

Permalink
assets: add Android TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
larpon committed Oct 19, 2024
1 parent c967113 commit 0077b94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/assets.v
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ pub fn (mut a Assets) load(alo AssetLoadOptions) !&Asset {
a.shy.vet_issue(.warn, .hot_code, '${@STRUCT}.${@FN}', 'memory fragmentation can happen when allocating in hot code paths. It is, in general, better to pre-load data. Loading "${source}"')

if alo.io.has(.async) {
// TODO: `os.file_size` does not work on Android
file_size := int(os.file_size(source.str()))
asset := &Asset{
shy: a.shy
Expand Down

0 comments on commit 0077b94

Please sign in to comment.