mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-04 23:35:12 +01:00
Use the new log file name & ext for every logger context
This commit is contained in:
parent
5cd1f01690
commit
6913a90361
@ -62,7 +62,7 @@ extern "C" JNIEXPORT void Java_emu_skyline_SkylineApplication_initializeLog(
|
||||
) {
|
||||
std::string appFilesPath{env->GetStringUTFChars(appFilesPathJstring, nullptr)};
|
||||
skyline::Logger::configLevel = static_cast<skyline::Logger::LogLevel>(logLevel);
|
||||
skyline::Logger::LoaderContext.Initialize(appFilesPath + "loader.log");
|
||||
skyline::Logger::LoaderContext.Initialize(appFilesPath + "loader.sklog");
|
||||
}
|
||||
|
||||
extern "C" JNIEXPORT void Java_emu_skyline_EmulationActivity_executeApplication(
|
||||
@ -87,7 +87,7 @@ extern "C" JNIEXPORT void Java_emu_skyline_EmulationActivity_executeApplication(
|
||||
close(preferenceFd);
|
||||
|
||||
skyline::JniString appFilesPath(env, appFilesPathJstring);
|
||||
skyline::Logger::EmulationContext.Initialize(appFilesPath + "emulation.log");
|
||||
skyline::Logger::EmulationContext.Initialize(appFilesPath + "emulation.sklog");
|
||||
|
||||
auto start{std::chrono::steady_clock::now()};
|
||||
|
||||
|
@ -130,7 +130,7 @@ class MainActivity : AppCompatActivity() {
|
||||
|
||||
binding.searchBar.apply {
|
||||
binding.logIcon.setOnClickListener {
|
||||
val file = applicationContext.filesDir.resolve("skyline.log")
|
||||
val file = applicationContext.filesDir.resolve("emulation.sklog")
|
||||
if (file.length() != 0L) {
|
||||
val intent = Intent(Intent.ACTION_SEND)
|
||||
.setType("text/plain")
|
||||
|
Loading…
Reference in New Issue
Block a user