Refactor and enhance codebase for maintainability
Refactored and reorganized the codebase to improve readability, performance, and maintainability. Introduced new interfaces and structs for better resource management, updated project configuration files, and refactored shader and graphics pipeline management. Improved error handling, code formatting, and removed unused code and namespaces. Updated DLL references and method signatures for consistency and maintainability.
This commit is contained in:
@@ -36,12 +36,12 @@ public static partial class AssetDatabase
|
||||
{
|
||||
if (Directory.Exists(assetPath))
|
||||
{
|
||||
return Result<string>.Failure("Folder does not have meta data");
|
||||
return Result<string>.Fail("Folder does not have meta data");
|
||||
}
|
||||
|
||||
if (Path.GetExtension(assetPath).Equals(".meta", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return Result<string>.Failure("Asset path cannot be a meta file");
|
||||
return Result<string>.Fail("Asset path cannot be a meta file");
|
||||
}
|
||||
|
||||
return Result<string>.Success(assetPath + ".meta");
|
||||
|
||||
Reference in New Issue
Block a user