Exemplo n.º 1
0
        private string GetDllPath()
        {
            var exename = "libsneshawk-32-" + CurrentProfile.ToLower() + ".dll";

            string dllPath = Path.Combine(CoreComm.CoreFileProvider.DllPath(), exename);

            if (!File.Exists(dllPath))
            {
                throw new InvalidOperationException("Couldn't locate the DLL for SNES emulation for profile: " + CurrentProfile + ". Please make sure you're using a fresh dearchive of a BizHawk distribution.");
            }

            return(dllPath);
        }