mirror of
https://github.com/skyline-emu/skyline.git
synced 2025-01-10 00:19:24 +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)};
|
std::string appFilesPath{env->GetStringUTFChars(appFilesPathJstring, nullptr)};
|
||||||
skyline::Logger::configLevel = static_cast<skyline::Logger::LogLevel>(logLevel);
|
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(
|
extern "C" JNIEXPORT void Java_emu_skyline_EmulationActivity_executeApplication(
|
||||||
@ -87,7 +87,7 @@ extern "C" JNIEXPORT void Java_emu_skyline_EmulationActivity_executeApplication(
|
|||||||
close(preferenceFd);
|
close(preferenceFd);
|
||||||
|
|
||||||
skyline::JniString appFilesPath(env, appFilesPathJstring);
|
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()};
|
auto start{std::chrono::steady_clock::now()};
|
||||||
|
|
||||||
|
@ -130,7 +130,7 @@ class MainActivity : AppCompatActivity() {
|
|||||||
|
|
||||||
binding.searchBar.apply {
|
binding.searchBar.apply {
|
||||||
binding.logIcon.setOnClickListener {
|
binding.logIcon.setOnClickListener {
|
||||||
val file = applicationContext.filesDir.resolve("skyline.log")
|
val file = applicationContext.filesDir.resolve("emulation.sklog")
|
||||||
if (file.length() != 0L) {
|
if (file.length() != 0L) {
|
||||||
val intent = Intent(Intent.ACTION_SEND)
|
val intent = Intent(Intent.ACTION_SEND)
|
||||||
.setType("text/plain")
|
.setType("text/plain")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user