summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/corefile.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2021-01-02 15:11:27 -0500
committer AJR <ajrhacker@users.noreply.github.com>2021-01-02 15:18:15 -0500
commit60e518cc505ad5de6331a5da0d8291346757b9bd (patch)
tree33e9ab6c897eacb273e6f9d41c5c0d1c9595c443 /src/lib/util/corefile.cpp
parent78f93a270c2b8d013128a2a346bdf0b8f98700d9 (diff)
Low-level #include overhaul
- vecstream.h: Revert changes made in aa29519528cb3dbdbfac56819bea670ed8c56c5d. The std::string_view conversion has been made a non-member function (util::buf_to_string_view) and moved to coretmpl.h. - strformat.h: Remove the using declaration importing util::string_format into the global namespace. It has been moved to emucore.h and a few tool sources; other references have been qualified. - osdcore.h: Split out file, directory and path classes and methods to a new header (osdfile.h), Doxygenizing the documentation comments. - Disaggregate many #includes that were including other standard or custom headers. emu.h now includes basically the same things that it did, but other headers have been streamlined; for instance, emucore.h no longer stealth-includes osdcore.h several ways.
Diffstat (limited to 'src/lib/util/corefile.cpp')
-rw-r--r--src/lib/util/corefile.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/util/corefile.cpp b/src/lib/util/corefile.cpp
index fe0747c66a8..cbe70bbf5fc 100644
--- a/src/lib/util/corefile.cpp
+++ b/src/lib/util/corefile.cpp
@@ -10,6 +10,8 @@
#include "corefile.h"
+#include "coretmpl.h"
+#include "osdcore.h"
#include "unicode.h"
#include "vecstream.h"
@@ -600,7 +602,7 @@ int core_text_file::vprintf(util::format_argument_pack<std::ostream> const &args
m_printf_buffer.reserve(1024);
m_printf_buffer.seekp(0, ovectorstream::beg);
util::stream_format<std::ostream, std::ostream>(m_printf_buffer, args);
- return puts(std::string_view(m_printf_buffer));
+ return puts(buf_to_string_view(m_printf_buffer));
}