Skip to content

Commit

Permalink
unfucks assets
Browse files Browse the repository at this point in the history
  • Loading branch information
harryob committed Sep 9, 2023
1 parent bc5e500 commit 1c23b80
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions code/modules/asset_cache/asset_cache_item.dm
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@
hash = md5(file)
else
hash = md5asfile(file) //icons sent to the rsc md5 incorrectly when theyre given incorrect data
if (!hash)
CRASH("invalid asset sent to asset cache")
src.name = name
var/extstart = findlasttext(name, ".")
if (extstart)
ext = ".[copytext(name, extstart+1)]"
resource = file

/datum/asset_cache_item/vv_edit_var(var_name, var_value)
return FALSE
Expand Down

0 comments on commit 1c23b80

Please sign in to comment.