[FREE] Launchpad - A free, open-source UE4-compatible game launcher

The changelog system is broken. The webbrowser control automatically caches the changelog. It’s why I hate the silly IE control.

Add this to the DLL Imports:


    [DllImport("wininet.dll", SetLastError = true)]
    private static extern long DeleteUrlCacheEntry(string lpszUrlName);
    

And where you load the page (Form1_OnLoad) change the function body to this:


    DeleteUrlCacheEntry(Config.GetChangelogURL());
    webBrowser1.Navigate(Config.GetChangelogURL());
    

Also another quick tweak:
The control also sometimes hangs when it prompts for login details. It’s such a simple fix as well!
In ConfigHandler.cs, change the GetFTPUrl function to:



public string GetFTPUrl()
        {
            try
            {
                FileIniDataParser Parser = new FileIniDataParser();
                IniData data = Parser.ReadFile(GetConfigPath());

                string FTPUrl = data"Remote"]"FTPUrl"];
                string FTPAuthUrl = FTPUrl.Substring(0, 6); // Gets ftp://
                FTPAuthUrl += data"Remote"]"FTPUsername"]; // Add the username
                FTPAuthUrl += ":";
                FTPAuthUrl += data"Remote"]"FTPPassword"]; // Add the password
                FTPAuthUrl += "@";
                FTPAuthUrl += FTPUrl.Substring(6);

                return FTPAuthUrl;
            }
            catch (Exception ex)
            {
                Console.Write("GetFTPUrl: ");
                Console.WriteLine(ex.StackTrace);
                return "";
            }
        }