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:
Niels Martin Hansen 2011-01-14 01:29:47 +00:00
parent 59b8686fdc
commit 1e6ace134a
1 changed files with 1 additions and 1 deletions

View File

@ -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;