Skip to content
This repository has been archived by the owner on Aug 15, 2022. It is now read-only.

Commit

Permalink
Fixed export error
Browse files Browse the repository at this point in the history
  • Loading branch information
REDxEYE committed Aug 6, 2020
1 parent 4932821 commit ffafc5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ class MainLayer : public omc::layer {

std::vector<std::uint8_t> file_data = archive_array.query_file(filename);

std::ofstream output_file { full_path, std::ios::trunc };
std::ofstream output_file { full_path, std::ios::binary };
output_file.write(reinterpret_cast<const char*>(file_data.data()), file_data.size());

std::cout << "File was exported to: " << full_path << "\n";
Expand Down Expand Up @@ -278,4 +278,4 @@ int main() {
app->push_layer(std::make_shared<MainLayer>(app.get()));

app->run();
}
}

0 comments on commit ffafc5d

Please sign in to comment.