Changed old log filename extension from .txt.old.txt to just .old.txt

This commit is contained in:
OpenSauce04 2024-11-21 21:31:39 +00:00
parent 1ea637c95b
commit f94e28335c
2 changed files with 3 additions and 2 deletions

View File

@ -246,7 +246,7 @@ class HomeSettingsFragment : Fragment() {
PermissionsHandler.citraDirectory PermissionsHandler.citraDirectory
)?.findFile("log") )?.findFile("log")
val currentLog = logDirectory?.findFile("citra_log.txt") val currentLog = logDirectory?.findFile("citra_log.txt")
val oldLog = logDirectory?.findFile("citra_log.txt.old.txt") val oldLog = logDirectory?.findFile("citra_log.old.txt")
val intent = Intent().apply { val intent = Intent().apply {
action = Intent.ACTION_SEND action = Intent.ACTION_SEND

View File

@ -3,6 +3,7 @@
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include <chrono> #include <chrono>
#include <boost/algorithm/string/replace.hpp>
#include <boost/regex.hpp> #include <boost/regex.hpp>
#include <fmt/format.h> #include <fmt/format.h>
@ -90,7 +91,7 @@ class FileBackend final : public Backend {
public: public:
explicit FileBackend(const std::string& filename) { explicit FileBackend(const std::string& filename) {
auto old_filename = filename; auto old_filename = filename;
old_filename += ".old.txt"; boost::replace_all(old_filename, ".txt", ".old.txt");
// Existence checks are done within the functions themselves. // Existence checks are done within the functions themselves.
// We don't particularly care if these succeed or not. // We don't particularly care if these succeed or not.