mirror of
https://github.com/holub/mame
synced 2025-04-23 08:49:55 +03:00
debugcmd: update prev commit: change out+app to in+out+ate
This commit is contained in:
parent
8aec17bcc6
commit
b1d2a52ddd
@ -3517,16 +3517,16 @@ void debugger_commands::execute_trace(const std::vector<std::string_view> ¶m
|
||||
using namespace std::literals;
|
||||
if (!util::streqlower(filename, "off"sv))
|
||||
{
|
||||
std::ios_base::openmode mode = std::ios_base::out;
|
||||
std::ios_base::openmode mode;
|
||||
|
||||
// opening for append?
|
||||
if ((filename[0] == '>') && (filename[1] == '>'))
|
||||
{
|
||||
mode |= std::ios_base::app;
|
||||
mode = std::ios_base::in | std::ios_base::out | std::ios_base::ate;
|
||||
filename = filename.substr(2);
|
||||
}
|
||||
else
|
||||
mode |= std::ios_base::trunc;
|
||||
mode = std::ios_base::out | std::ios_base::trunc;
|
||||
|
||||
f = std::make_unique<std::ofstream>(filename.c_str(), mode);
|
||||
if (f->fail())
|
||||
|
Loading…
Reference in New Issue
Block a user