Skip to content

Commit ea7872a

Browse files
committed
changed access mode for exporting files from text to binary
1 parent 53ec49c commit ea7872a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ModuleManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ void ModuleManager::exportNode(ModuleNode* node, std::string path, bool fullPath
226226
//printf("Exporting to %s\n",newPath.c_str());
227227
if(node->type == NODE_TYPE_FILE){
228228
// finally a file, now export it!
229-
FILE* out = fopen(newPath.c_str(),"w");
229+
FILE* out = fopen(newPath.c_str(),"wb");
230230
if(!node->item){
231231
printf("Error: Node %s with type file doesn't have an associated item! Node will be skipped!\n",newPath.c_str());
232232
}

0 commit comments

Comments
 (0)