From e02a565cfd4b6f0c6a4098d5b9f8b6e2887f23bd Mon Sep 17 00:00:00 2001 From: WrinklyNinja Date: Sun, 17 Aug 2014 10:20:08 +0100 Subject: [PATCH] Delete CEF-created folders on quit. Closes #215. --- src/gui/main_win.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/main_win.cpp b/src/gui/main_win.cpp index 2a0bb32c..42f094d1 100644 --- a/src/gui/main_win.cpp +++ b/src/gui/main_win.cpp @@ -136,5 +136,9 @@ int APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmd g_app_state.CurrentGame().userlist.Save(g_app_state.CurrentGame().UserlistPath()); g_app_state.SaveSettings(); + // Delete the folders CEF generates that LOOT doesn't need. + boost::filesystem::remove_all(boost::filesystem::current_path() / "locales"); + boost::filesystem::remove_all(boost::filesystem::current_path() / "pdf.dll"); + return 0; } \ No newline at end of file