Removes FileIOEventBus
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -409,9 +409,6 @@ namespace AzToolsFramework
|
||||
return false;
|
||||
}
|
||||
|
||||
// Surface any errors during the renames
|
||||
ScopedIOEventBusHandler renameHandler;
|
||||
|
||||
// Rename all the temp files to the actual bundle names
|
||||
for (int idx = 0; idx < bundlePathDeltaCatalogPair.size(); ++idx)
|
||||
{
|
||||
@@ -759,20 +756,5 @@ namespace AzToolsFramework
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
ScopedIOEventBusHandler::ScopedIOEventBusHandler()
|
||||
{
|
||||
BusConnect();
|
||||
}
|
||||
|
||||
ScopedIOEventBusHandler::~ScopedIOEventBusHandler()
|
||||
{
|
||||
BusDisconnect();
|
||||
}
|
||||
|
||||
void ScopedIOEventBusHandler::OnError([[maybe_unused]] const AZ::IO::SystemFile* file, [[maybe_unused]] const char* fileName, [[maybe_unused]] int errorCode)
|
||||
{
|
||||
AZ_Error("AssetBundleComponent", false, "FileIO Error for file %s (errorCode %d)", file && file->Name() ? file->Name() : fileName, errorCode);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <AzCore/Component/Component.h>
|
||||
#include <AzCore/IO/FileIOEventBus.h>
|
||||
#include <AzToolsFramework/AssetBundle/AssetBundleAPI.h>
|
||||
|
||||
namespace AZ
|
||||
@@ -92,14 +91,4 @@ namespace AzToolsFramework
|
||||
//! We only create the delta catalog once we are sure about what all the files that will go in it.
|
||||
bool AddCatalogAndFilesToBundle(const AZStd::vector<AZStd::string>& deltaCatalogEntries, const AZStd::vector<AZStd::string>& fileEntries, const AZStd::string& bundleFilePath, const char* assetAlias, const AzFramework::PlatformId& platformId);
|
||||
};
|
||||
|
||||
class ScopedIOEventBusHandler :
|
||||
public AZ::IO::FileIOEventBus::Handler
|
||||
{
|
||||
public:
|
||||
ScopedIOEventBusHandler();
|
||||
~ScopedIOEventBusHandler();
|
||||
|
||||
void OnError(const AZ::IO::SystemFile* file, const char* fileName, int errorCode) override;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user