From 1aa8a4d46ffbf019f6bb4bccb81cc89bec07bb38 Mon Sep 17 00:00:00 2001 From: ssdsnake Date: Fri, 3 Dec 2021 15:40:19 -0600 Subject: DolphinTool: CLI utility interface and disc image tools --- Source/Core/DiscIO/DiscUtils.cpp | 47 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) (limited to 'Source/Core/DiscIO/DiscUtils.cpp') diff --git a/Source/Core/DiscIO/DiscUtils.cpp b/Source/Core/DiscIO/DiscUtils.cpp index 84cf7ed7c4..002ce066db 100644 --- a/Source/Core/DiscIO/DiscUtils.cpp +++ b/Source/Core/DiscIO/DiscUtils.cpp @@ -12,6 +12,8 @@ #include #include "Common/CommonTypes.h" +#include "Common/MathUtil.h" +#include "DiscIO/Blob.h" #include "DiscIO/Filesystem.h" #include "DiscIO/Volume.h" @@ -198,4 +200,49 @@ u64 GetBiggestReferencedOffset(const Volume& volume, const std::vector RVZ_BIG_BLOCK_SIZE_LCM && block_size % RVZ_BIG_BLOCK_SIZE_LCM != 0)) + { + return false; + } + + break; + default: + ASSERT(false); + break; + } + + return true; +} + } // namespace DiscIO -- cgit v1.2.3