Skip to content

Commit

Permalink
DownloadManager: write binary files.
Browse files Browse the repository at this point in the history
Keeps Windows from screwing up the line endings, which messes with the
checksum of the file.
  • Loading branch information
torque committed Feb 24, 2015
1 parent e1b581b commit 95c0cda
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion threaded-libcurl/DownloadManager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class DownloadManager {
unsigned int finishedCount = 0, addedCount = 0, failedCount = 0;

public:
const static unsigned int version = 0x000100;
const static unsigned int version = 0x000101;
DownloadManager( void );
~DownloadManager( void );
double getProgress( void );
Expand Down
2 changes: 1 addition & 1 deletion threaded-libcurl/DownloadManager.moon
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class DownloadManager
@version_string = "0.1.2"

DM = nil
DMVersion = 0x000100
DMVersion = 0x000101
pathExt = "/automation/include/#{@__name}/#{(ffi.os != windows) and 'lib' or ''}#{@__name}.#{(OSX: 'dylib', Windows: 'dll')[ffi.os] or 'so'}"
defaultLibraryPaths = aegisub and {aegisub.decode_path("?user"..pathExt), aegisub.decode_path("?data"..pathExt)} or {@__name}
msgs = {
Expand Down
2 changes: 1 addition & 1 deletion threaded-libcurl/Downloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void Downloader::finalize( void ) {
}
}

std::fstream outStream( outfile, std::fstream::out );
std::fstream outStream( outfile, std::ios::out | std::ios::binary );
if (outStream.fail( )) {
error = "Couldn't open output file: " + outfile;
failed = true;
Expand Down

0 comments on commit 95c0cda

Please sign in to comment.