32 lines
899 B
GDScript
32 lines
899 B
GDScript
extends Node
|
|
|
|
const INDEX_FORMAT := Image.FORMAT_L8
|
|
|
|
const FOLDER_ICON := preload('res://theme/icons/file_folder.tres')
|
|
const ALLOWED_EXTS := PoolStringArray(['bin', 'iso', 'sfc', 'smc', 'srm', 'gba'])
|
|
const CD_EXTS := PoolStringArray(['bin', 'iso']) # If you have a weird disc image format, you can mount it yourself, leave me out of it
|
|
const EXT_ICONS := {
|
|
'bin': preload('res://theme/icons/file_binary.tres'),
|
|
'iso': preload('res://theme/icons/file_disc.tres'),
|
|
'sfc': preload('res://theme/icons/file_cart.tres'),
|
|
'smc': preload('res://theme/icons/file_cart.tres'),
|
|
'gba': preload('res://theme/icons/file_cart.tres'),
|
|
}
|
|
const TYPE_DESCS := {
|
|
'bin': 'Binary',
|
|
'iso': 'CD-ROM Image',
|
|
'sfc': 'SNES ROM',
|
|
'smc': 'SNES ROM',
|
|
'gba': 'GBA ROM',
|
|
'srm': 'SNES Savefile'
|
|
}
|
|
|
|
var time = 0.0
|
|
var time_mult = 1.0
|
|
|
|
func _ready():
|
|
set_process(true)
|
|
|
|
func _process(delta):
|
|
time += delta * time_mult
|