Ejemplo n.º 1
0
    public static IXboxFile GetFile(string filePath)
    {
        if (!IsConnected())
        {
            throw new Exception("Not connected to a console!");
        }

        IXboxFile file = null;

        try
        {
            file = m_XboxConsole.GetFileObject(filePath);
        }
        catch (Exception)
        {
            throw new Exception(filePath + " does not exist!");
        }

        return(file);
    }