diff --git a/src/xenia/gpu/command_processor.cc b/src/xenia/gpu/command_processor.cc index e44193e45..dd7bd2c6b 100644 --- a/src/xenia/gpu/command_processor.cc +++ b/src/xenia/gpu/command_processor.cc @@ -372,8 +372,7 @@ uint32_t CommandProcessor::ExecutePrimaryBuffer(uint32_t read_index, uint32_t title_id = kernel_state_->GetExecutableModule() ? kernel_state_->GetExecutableModule()->title_id() : 0; - auto file_name = - xe::format_string(L"title_%8X_stream.xenia_gpu_trace", title_id); + auto file_name = xe::format_string(L"%8X_stream.xtr", title_id); auto path = trace_stream_path_ + file_name; trace_writer_.Open(path, title_id); } @@ -675,8 +674,7 @@ bool CommandProcessor::ExecutePacketType3(RingBuffer* reader, uint32_t packet) { } else if (trace_state_ == TraceState::kSingleFrame) { // New trace request - we only start tracing at the beginning of a frame. uint32_t title_id = kernel_state_->GetExecutableModule()->title_id(); - auto file_name = xe::format_string(L"title_%8X_frame_%u.xenia_gpu_trace", - title_id, counter_ - 1); + auto file_name = xe::format_string(L"%8X_%u.xtr", title_id, counter_ - 1); auto path = trace_frame_path_ + file_name; trace_writer_.Open(path, title_id); } diff --git a/src/xenia/gpu/trace_dump.cc b/src/xenia/gpu/trace_dump.cc index 4a4beaf85..262d4e6f7 100644 --- a/src/xenia/gpu/trace_dump.cc +++ b/src/xenia/gpu/trace_dump.cc @@ -64,7 +64,7 @@ int TraceDump::Main(const std::vector& args) { file_picker->set_multi_selection(false); file_picker->set_title(L"Select Trace File"); file_picker->set_extensions({ - {L"Supported Files", L"*.xenia_gpu_trace"}, + {L"Supported Files", L"*.xtr"}, {L"All Files (*.*)", L"*.*"}, }); if (file_picker->Show()) { diff --git a/src/xenia/gpu/trace_protocol.h b/src/xenia/gpu/trace_protocol.h index 04a2222b8..afc6b7e36 100644 --- a/src/xenia/gpu/trace_protocol.h +++ b/src/xenia/gpu/trace_protocol.h @@ -15,6 +15,9 @@ namespace xe { namespace gpu { +// Trace file extension. +static const wchar_t kTraceExtension[] = L"xtr"; + // Any byte changes to the files should bump this version. // Only builds with matching versions will work. // Other changes besides the file format may require bumps, such as