Fix Recording file format

This commit is contained in:
2022-09-07 02:49:42 +02:00
parent 2aa658c15e
commit 910afad3b5
6 changed files with 163 additions and 8 deletions
+2 -1
View File
@@ -184,7 +184,8 @@ PLUGIN_API void XPluginStop(void)
serverThread.join();
recordingThread.join();
std::ofstream out("Resources/plugins/GAConnector/flight.rec");
std::ofstream out("Resources/plugins/GAConnector/flight.rec",
std::fstream::binary);
out.write(reinterpret_cast<const char *>(p.getBinaryData()),
(std::streamsize)p.getBinaryLength());
out.close();