Compare commits

...

5 Commits

Author SHA1 Message Date
Mat M
8fc8cdf861 Update src/core/crypto/key_manager.cpp
Co-Authored-By: Jungorend <Jungorend@users.noreply.github.com>
2019-02-15 19:35:31 -05:00
jungy
467d811fc6 Using FileUtil instead to be cleaner. 2019-02-14 11:09:04 -05:00
Mat M
69708d19c3 Update src/core/crypto/key_manager.cpp
Co-Authored-By: Jungorend <Jungorend@users.noreply.github.com>
2019-02-13 17:26:57 -05:00
Mat M
fae3234d09 Update src/core/crypto/key_manager.cpp
Co-Authored-By: Jungorend <Jungorend@users.noreply.github.com>
2019-02-13 17:26:43 -05:00
jungy
a369dec13b Fixes Unicode Key File Directories
Adds code so that when loading a file it converts to UTF16 first, to
ensure the files can be opened. Code borrowed from FileUtil::Exists.
2019-02-13 16:54:30 -05:00

View File

@@ -398,7 +398,8 @@ static bool ValidCryptoRevisionString(std::string_view base, size_t begin, size_
}
void KeyManager::LoadFromFile(const std::string& filename, bool is_title_keys) {
std::ifstream file(filename);
std::ifstream file;
OpenFStream(file, filename, std::ios_base::in);
if (!file.is_open())
return;