diff --git a/Data Files/Changelog.txt b/Data Files/Changelog.txt index 376b830b4..c4ae2e218 100644 --- a/Data Files/Changelog.txt +++ b/Data Files/Changelog.txt @@ -180,4 +180,5 @@ Revision Log Message 177 Don't bother mapping wastelands to wastelands 178 Map CK2 religions to CK2 religion groups 179 Map CK2 cultures to CK2 culture groups, then disallow wrong culture buildings -180 Use basetax and manpower proxies to try to break ties in religion conversion \ No newline at end of file +180 Use basetax and manpower proxies to try to break ties in religion conversion +181 Default output filename is again output.eu3 \ No newline at end of file diff --git a/Source/Convert.cpp b/Source/Convert.cpp index 961e96523..a57332062 100644 --- a/Source/Convert.cpp +++ b/Source/Convert.cpp @@ -312,7 +312,15 @@ int main(int argc, char * argv[]) // Output results printf("Outputting save.\n"); log("Outputting save.\n"); - string outputFilename = inputFilename.substr(0, inputFilename.find_last_of('.')) + ".eu3"; + string outputFilename; + if (argc >= 2) + { + outputFilename = inputFilename.substr(0, inputFilename.find_last_of('.')) + ".eu3"; + } + else + { + outputFilename = "output.eu3"; + } FILE* output; if (fopen_s(&output, outputFilename.c_str(), "w") != 0) {