You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
o3de/Code/Tools/AssetProcessor/native/AssetManager
Mike Balfour 6c17c7bfb3
Add new API to convert absolute source paths to relative paths. (#930)
There are already APIs for getting a relative product path from an absolute source path, or getting a relative source path for an *existing* source file, but there were no APIs for getting a relative source path for a *new* source file.  Prefabs will need this ability to be able to correctly generate a relative source path inside the prefab file before the file has been saved.
The logic for relative source paths is a little bit tricky because the paths are relative to the watch folders, and the watch folders can be nested, with different priorities to explain which should take precedence.  The input paths can also include specifiers like "." and "..", which need to be reconciled before creating the final correct relative path.  The included unit tests test all of the tricky edge cases that I was able to identify.
5 years ago
..
AssetCatalog.cpp Add new API to convert absolute source paths to relative paths. (#930) 5 years ago
AssetCatalog.h Add new API to convert absolute source paths to relative paths. (#930) 5 years ago
AssetData.h Initial commit 5 years ago
AssetRequestHandler.cpp Add new API to convert absolute source paths to relative paths. (#930) 5 years ago
AssetRequestHandler.h Initial commit 5 years ago
ControlRequestHandler.cpp Initial commit 5 years ago
ControlRequestHandler.h Initial commit 5 years ago
FileStateCache.cpp Integrating github/staging through commit 5f214be 5 years ago
FileStateCache.h Initial commit 5 years ago
PathDependencyManager.cpp LYN-2537 engine assets (#254) 5 years ago
PathDependencyManager.h Integrating latest from github/staging 5 years ago
SourceFileRelocator.cpp Fixes a crash on mac in the SourceFileRelocatorTest (#688) 5 years ago
SourceFileRelocator.h LYN-2537 engine assets (#254) 5 years ago
assetProcessorManager.cpp LYN-2537 engine assets (#254) 5 years ago
assetProcessorManager.h Add new API to convert absolute source paths to relative paths. (#930) 5 years ago
assetScanFolderInfo.h LYN-2537 engine assets (#254) 5 years ago
assetScanner.cpp Initial commit 5 years ago
assetScanner.h Initial commit 5 years ago
assetScannerWorker.cpp LYN-2537 engine assets (#254) 5 years ago
assetScannerWorker.h Initial commit 5 years ago
assetdata.cpp Initial commit 5 years ago