Respack produced invalid resources on Windows since it was opening files in text mode, causing newline conversions to happen.
Having it open files in binary mode instead fixes the problem. Originally committed to SVN as r5182.
This commit is contained in:
parent
59b8686fdc
commit
1e6ace134a
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ int main(int argc, const char *argv[]) {
|
|||
std::getline(file_manifest, file);
|
||||
if (file.empty()) continue;
|
||||
|
||||
std::ifstream ifp((path_base + file).c_str());
|
||||
std::ifstream ifp((path_base + file).c_str(), std::ios_base::in|std::ios_base::binary);
|
||||
|
||||
if (!ifp.is_open()) {
|
||||
std::cout << "Error opening file: " << file << std::endl;
|
||||
|
|
Loading…
Reference in a new issue