Duncan
							
						 
					 | 
					
						
						
							
							
						
						
						
							
						
						
							176223b406
							
						
					 | 
					
						
						
							
							Fix embedded asset path manipulation (#10383)
						
						
						
						
						
						
						
						# Objective
Fixes #10377
## Solution
Use `Path::strip_prefix` instead of `str::split`. Avoid any explicit "/"
characters in path manipulation.
---
## Changelog
- Added: example of embedded asset loading
- Added: support embedded assets in external crates
- Fixed: resolution of embedded assets
- Fixed: unexpected runtime panic during asset path resolution
## Migration Guide
No API changes.
---------
Co-authored-by: Shane Celis <shane.celis@gmail.com> 
						
					 | 
					
						2024-02-02 14:49:05 +00:00 | 
					
					
						
						
							
							
							
						
					 |