Rebranded log filenames

citra_log.txt --> lime3ds_log.txt
citra_log.txt.old.txt --> lime3ds_log.old.txt
This commit is contained in:
OpenSauce04 2024-04-24 15:19:04 +01:00 committed by OpenSauce
parent 0a5420f0cf
commit d0eeb1bbe7
4 changed files with 6 additions and 5 deletions

View File

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

View File

@ -17,7 +17,7 @@ import java.util.concurrent.ConcurrentHashMap
* A cached document tree for Citra user directory. * A cached document tree for Citra user directory.
* For every filepath which is not startsWith "content://" will need to use this class to traverse. * For every filepath which is not startsWith "content://" will need to use this class to traverse.
* For example: * For example:
* C++ Citra log file directory will be /log/citra_log.txt. * C++ Lime3DS log file directory will be /log/lime3ds_log.txt.
* After DocumentsTree.resolvePath() it will become content URI. * After DocumentsTree.resolvePath() it will become content URI.
*/ */
class DocumentsTree { class DocumentsTree {

View File

@ -55,7 +55,7 @@
// Filenames // Filenames
// Files in the directory returned by GetUserPath(UserPath::LogDir) // Files in the directory returned by GetUserPath(UserPath::LogDir)
#define LOG_FILE "citra_log.txt" #define LOG_FILE "lime3ds_log.txt"
// Files in the directory returned by GetUserPath(UserPath::ConfigDir) // Files in the directory returned by GetUserPath(UserPath::ConfigDir)
#define EMU_CONFIG "emu.ini" #define EMU_CONFIG "emu.ini"

View File

@ -13,6 +13,7 @@
#define _SH_DENYWR 0 #define _SH_DENYWR 0
#endif #endif
#include <boost/algorithm/string/replace.hpp>
#ifdef CITRA_LINUX_GCC_BACKTRACE #ifdef CITRA_LINUX_GCC_BACKTRACE
#define BOOST_STACKTRACE_USE_BACKTRACE #define BOOST_STACKTRACE_USE_BACKTRACE
#include <boost/stacktrace.hpp> #include <boost/stacktrace.hpp>
@ -89,7 +90,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.