mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 05:01:05 +01:00 
			
		
		
		
	Setting io.LogFilename to NULL disable default LogToFile() (part of #175)
This commit is contained in:
		| @@ -4394,7 +4394,11 @@ void ImGui::LogToFile(int max_depth, const char* filename) | |||||||
|     if (g.LogEnabled) |     if (g.LogEnabled) | ||||||
|         return; |         return; | ||||||
|     if (!filename) |     if (!filename) | ||||||
|  |     { | ||||||
|         filename = g.IO.LogFilename; |         filename = g.IO.LogFilename; | ||||||
|  |         if (!filename) | ||||||
|  |             return; | ||||||
|  |     } | ||||||
|  |  | ||||||
|     g.LogFile = fopen(filename, "ab"); |     g.LogFile = fopen(filename, "ab"); | ||||||
|     if (!g.LogFile) |     if (!g.LogFile) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user