mirror of
https://github.com/azahar-emu/azahar.git
synced 2025-03-04 09:45:23 +01:00
Changed old log filename extension from .txt.old.txt
to just .old.txt
This commit is contained in:
parent
1ea637c95b
commit
f94e28335c
@ -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
|
||||||
|
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user