diff --git a/src/IO/PackageFileSystem.cpp b/src/IO/PackageFileSystem.cpp index 500ed50..c7ddd4c 100644 --- a/src/IO/PackageFileSystem.cpp +++ b/src/IO/PackageFileSystem.cpp @@ -57,7 +57,9 @@ namespace SparkyStudios::Audio::Amplitude AmOsString PackageFileSystem::ResolvePath(const AmOsString& path) const { - return std::filesystem::path(path).lexically_normal().native(); + auto resolvedPath= std::filesystem::path(path).lexically_normal().native(); + std::ranges::replace(resolvedPath, '\\', '/'); + return resolvedPath; } bool PackageFileSystem::Exists(const AmOsString& path) const diff --git a/tools/ampk/main.cpp b/tools/ampk/main.cpp index a2d48c5..b3f14d2 100644 --- a/tools/ampk/main.cpp +++ b/tools/ampk/main.cpp @@ -97,7 +97,9 @@ static int process(const AmOsString& inFileName, const AmOsString& outFileName, DiskFile diskFile(absolute(file)); PackageFileItemDescription item; - item.m_Name = relative(absolute(file), projectPath).string(); + std::string relativePath = relative(absolute(file), projectPath).string(); + std::ranges::replace(relativePath, '\\', '/'); + item.m_Name = relativePath; item.m_Offset = lastOffset; item.m_Size = diskFile.Length();