mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-03 19:49:41 +00:00
Merge remote-tracking branch 'corristo/master'
This commit is contained in:
commit
e31cd1c805
2 changed files with 5 additions and 1 deletions
|
@ -3,7 +3,11 @@
|
||||||
|
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
#ifndef __clang__
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
#else
|
||||||
|
#include <tr1/cstdint>
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ namespace Translation
|
||||||
{
|
{
|
||||||
std::string path = dataFileCollections.getCollection (extension).getPath (fileName).string();
|
std::string path = dataFileCollections.getCollection (extension).getPath (fileName).string();
|
||||||
|
|
||||||
std::ifstream stream (path);
|
std::ifstream stream (path.c_str());
|
||||||
|
|
||||||
if (!stream.is_open())
|
if (!stream.is_open())
|
||||||
throw std::runtime_error ("failed to open translation file: " + fileName);
|
throw std::runtime_error ("failed to open translation file: " + fileName);
|
||||||
|
|
Loading…
Reference in a new issue