From 9b580e58417a77109617804362be872f05885f23 Mon Sep 17 00:00:00 2001 From: skallweitNV <64953474+skallweitNV@users.noreply.github.com> Date: Wed, 7 Aug 2024 17:53:33 +0200 Subject: Reduce dependency on std library (#4785) --- tools/slang-replay/main.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'tools') 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 -#include #include #include #include #include +#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; -- cgit v1.2.3