mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	logging: Address some issues
This commit is contained in:
		
							parent
							
								
									9c3e2d0f50
								
							
						
					
					
						commit
						ba98bf058a
					
				
					 11 changed files with 19 additions and 34 deletions
				
			
		|  | @ -180,12 +180,6 @@ jint JNI_OnLoad(JavaVM* vm, void* reserved) { | |||
|     if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION) != JNI_OK) | ||||
|         return JNI_ERR; | ||||
| 
 | ||||
|     // Initialize Logger
 | ||||
|     Log::Filter log_filter; | ||||
|     log_filter.ParseFilterString(Settings::values.log_filter.GetValue()); | ||||
|     Log::SetGlobalFilter(log_filter); | ||||
|     Log::AddBackend(std::make_unique<Log::LogcatBackend>()); | ||||
| 
 | ||||
|     // Initialize misc classes
 | ||||
|     s_savestate_info_class = reinterpret_cast<jclass>( | ||||
|         env->NewGlobalRef(env->FindClass("org/citra/citra_emu/NativeLibrary$SavestateInfo"))); | ||||
|  |  | |||
|  | @ -438,10 +438,8 @@ void Java_org_citra_citra_1emu_NativeLibrary_CreateConfigFile(JNIEnv* env, | |||
| 
 | ||||
| void Java_org_citra_citra_1emu_NativeLibrary_CreateLogFile(JNIEnv* env, | ||||
|                                                            [[maybe_unused]] jclass clazz) { | ||||
|     Log::RemoveBackend(Log::FileBackend::Name()); | ||||
|     FileUtil::CreateFullPath(FileUtil::GetUserPath(FileUtil::UserPath::LogDir)); | ||||
|     Log::AddBackend(std::make_unique<Log::FileBackend>( | ||||
|         FileUtil::GetUserPath(FileUtil::UserPath::LogDir) + LOG_FILE)); | ||||
|     Common::Log::Initialize(); | ||||
|     Common::Log::Start(); | ||||
|     LOG_INFO(Frontend, "Logging backend initialised"); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue