mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-28 14:20:30 +00:00
Host: Remove now-unused ReadCompressedResourceFile()
This commit is contained in:
parent
9ff3edd317
commit
9c4e15ef1c
@ -8,8 +8,6 @@
|
|||||||
|
|
||||||
#include "scmversion/scmversion.h"
|
#include "scmversion/scmversion.h"
|
||||||
|
|
||||||
#include "util/compress_helpers.h"
|
|
||||||
|
|
||||||
#include "common/assert.h"
|
#include "common/assert.h"
|
||||||
#include "common/error.h"
|
#include "common/error.h"
|
||||||
#include "common/file_system.h"
|
#include "common/file_system.h"
|
||||||
@ -111,16 +109,6 @@ SettingsInterface* Host::GetSettingsInterface()
|
|||||||
return &s_layered_settings_interface;
|
return &s_layered_settings_interface;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::optional<DynamicHeapArray<u8>> Host::ReadCompressedResourceFile(std::string_view filename, bool allow_override,
|
|
||||||
Error* error)
|
|
||||||
{
|
|
||||||
std::optional<DynamicHeapArray<u8>> ret = Host::ReadResourceFile(filename, allow_override, error);
|
|
||||||
if (ret.has_value())
|
|
||||||
ret = CompressHelpers::DecompressFile(filename, std::move(ret), std::nullopt, error);
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string Host::GetBaseStringSettingValue(const char* section, const char* key, const char* default_value /*= ""*/)
|
std::string Host::GetBaseStringSettingValue(const char* section, const char* key, const char* default_value /*= ""*/)
|
||||||
{
|
{
|
||||||
std::unique_lock lock(s_settings_mutex);
|
std::unique_lock lock(s_settings_mutex);
|
||||||
|
@ -31,10 +31,6 @@ std::optional<std::string> ReadResourceFileToString(std::string_view filename, b
|
|||||||
/// Returns the modified time of a resource.
|
/// Returns the modified time of a resource.
|
||||||
std::optional<std::time_t> GetResourceFileTimestamp(std::string_view filename, bool allow_override);
|
std::optional<std::time_t> GetResourceFileTimestamp(std::string_view filename, bool allow_override);
|
||||||
|
|
||||||
/// Reads a potentially-compressed file from the resources directory of the application.
|
|
||||||
std::optional<DynamicHeapArray<u8>> ReadCompressedResourceFile(std::string_view filename, bool allow_override,
|
|
||||||
Error* error = nullptr);
|
|
||||||
|
|
||||||
/// Reports a fatal error on the main thread. This does not assume that the main window exists,
|
/// Reports a fatal error on the main thread. This does not assume that the main window exists,
|
||||||
/// unlike ReportErrorAsync(), and will exit the application after the popup is closed.
|
/// unlike ReportErrorAsync(), and will exit the application after the popup is closed.
|
||||||
void ReportFatalError(std::string_view title, std::string_view message);
|
void ReportFatalError(std::string_view title, std::string_view message);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user