summaryrefslogtreecommitdiff
path: root/src/common/logging
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/logging')
-rw-r--r--src/common/logging/backend.cpp3
-rw-r--r--src/common/logging/backend.h20
-rw-r--r--src/common/logging/log.h3
3 files changed, 8 insertions, 18 deletions
diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp
index d186ba8f8..54291429a 100644
--- a/src/common/logging/backend.cpp
+++ b/src/common/logging/backend.cpp
@@ -49,6 +49,7 @@ namespace Log {
49 SUB(Service, DSP) \ 49 SUB(Service, DSP) \
50 SUB(Service, HID) \ 50 SUB(Service, HID) \
51 SUB(Service, SOC) \ 51 SUB(Service, SOC) \
52 SUB(Service, IR) \
52 SUB(Service, Y2R) \ 53 SUB(Service, Y2R) \
53 CLS(HW) \ 54 CLS(HW) \
54 SUB(HW, Memory) \ 55 SUB(HW, Memory) \
@@ -58,6 +59,8 @@ namespace Log {
58 CLS(Render) \ 59 CLS(Render) \
59 SUB(Render, Software) \ 60 SUB(Render, Software) \
60 SUB(Render, OpenGL) \ 61 SUB(Render, OpenGL) \
62 CLS(Audio) \
63 SUB(Audio, DSP) \
61 CLS(Loader) 64 CLS(Loader)
62 65
63// GetClassName is a macro defined by Windows.h, grrr... 66// GetClassName is a macro defined by Windows.h, grrr...
diff --git a/src/common/logging/backend.h b/src/common/logging/backend.h
index c1f4d08e4..795d42ebd 100644
--- a/src/common/logging/backend.h
+++ b/src/common/logging/backend.h
@@ -27,25 +27,9 @@ struct Entry {
27 std::string message; 27 std::string message;
28 28
29 Entry() = default; 29 Entry() = default;
30 Entry(Entry&& o) = default;
30 31
31 // TODO(yuriks) Use defaulted move constructors once MSVC supports them 32 Entry& operator=(Entry&& o) = default;
32#define MOVE(member) member(std::move(o.member))
33 Entry(Entry&& o)
34 : MOVE(timestamp), MOVE(log_class), MOVE(log_level),
35 MOVE(location), MOVE(message)
36 {}
37#undef MOVE
38
39 Entry& operator=(const Entry&& o) {
40#define MOVE(member) member = std::move(o.member)
41 MOVE(timestamp);
42 MOVE(log_class);
43 MOVE(log_level);
44 MOVE(location);
45 MOVE(message);
46#undef MOVE
47 return *this;
48 }
49}; 33};
50 34
51/** 35/**
diff --git a/src/common/logging/log.h b/src/common/logging/log.h
index 2d9323a7b..4b01805ae 100644
--- a/src/common/logging/log.h
+++ b/src/common/logging/log.h
@@ -64,6 +64,7 @@ enum class Class : ClassType {
64 Service_DSP, ///< The DSP (DSP control) service 64 Service_DSP, ///< The DSP (DSP control) service
65 Service_HID, ///< The HID (Human interface device) service 65 Service_HID, ///< The HID (Human interface device) service
66 Service_SOC, ///< The SOC (Socket) service 66 Service_SOC, ///< The SOC (Socket) service
67 Service_IR, ///< The IR service
67 Service_Y2R, ///< The Y2R (YUV to RGB conversion) service 68 Service_Y2R, ///< The Y2R (YUV to RGB conversion) service
68 HW, ///< Low-level hardware emulation 69 HW, ///< Low-level hardware emulation
69 HW_Memory, ///< Memory-map and address translation 70 HW_Memory, ///< Memory-map and address translation
@@ -73,6 +74,8 @@ enum class Class : ClassType {
73 Render, ///< Emulator video output and hardware acceleration 74 Render, ///< Emulator video output and hardware acceleration
74 Render_Software, ///< Software renderer backend 75 Render_Software, ///< Software renderer backend
75 Render_OpenGL, ///< OpenGL backend 76 Render_OpenGL, ///< OpenGL backend
77 Audio, ///< Emulator audio output
78 Audio_DSP, ///< The HLE implementation of the DSP
76 Loader, ///< ROM loader 79 Loader, ///< ROM loader
77 80
78 Count ///< Total number of logging classes 81 Count ///< Total number of logging classes