summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/slang-replay/main.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/tools/slang-replay/main.cpp b/tools/slang-replay/main.cpp
index adce34c56..85669aa7d 100644
--- a/tools/slang-replay/main.cpp
+++ b/tools/slang-replay/main.cpp
@@ -1,11 +1,12 @@
#include <stdio.h>
-#include <filesystem>
#include <replay/recordFile-processor.h>
#include <replay/json-consumer.h>
#include <replay/replay-consumer.h>
#include <replay/slang-decoder.h>
+#include "../../source/core/slang-io.h"
+
struct Options
{
bool convertToJson {false};
@@ -77,11 +78,8 @@ int main(int argc, char *argv[])
SlangRecord::RecordFileProcessor recordFileProcessor(options.recordFileName);
-
- std::filesystem::path jsonPath = options.recordFileName.begin();
- jsonPath.replace_extension(".json");
-
- SlangRecord::JsonConsumer jsonConsumer(jsonPath.string());
+ Slang::String jsonPath = Slang::Path::replaceExt(options.recordFileName, "json");
+ SlangRecord::JsonConsumer jsonConsumer(jsonPath);
SlangRecord::ReplayConsumer replayConsumer;
SlangRecord::SlangDecoder decoder;