C64Lib.Core.FSDrive.Close C# (CSharp) Method

Close() public method

public Close ( int channel ) : byte
channel int
return byte
        public override byte Close(int channel)
        {
            if (channel == 15)
            {
                close_all_channels();
                return (byte)C64StatusCode.ST_OK;
            }

            if (file[channel] != null)
            {
                file[channel].Dispose();
                file[channel] = null;
            }

            return (byte)C64StatusCode.ST_OK;
        }