#script=register_db_loader
if ?{not ?{IsHooked _startup}}
        HookStart _startup
        HookAdd db_loader_load_all
        HookEnd

        // Set up paths; ./data/scp and ./cache are set in the core already.
        // The SCP files placed in this directory are used to override some values
        // in already present SCP files or to add custom fields or content.
        // Note: it DOES matter in which order paths are added!!
        AddDBPath ./data/scp-patches
endif

//---------------------------------------------------------
#script=db_loader_load_all

log ** Loading / dyncompiling databases...

// game databases
LoadDB race
LoadDB class
LoadDB gender
LoadDB language
LoadDB emote
LoadDB map
LoadDB loadingscreens
LoadDB zone
LoadDB creaturedisplayinfo
LoadDB creaturemodeldata
LoadDB gameobjectdisplayinfo
// LoadDB itemdisplayinfo // not yet used
// LoadDB charsections // not yet used
LoadDB sound
// LoadDB npcsound // not yet used

// GUI related databases
LoadDB gui_login_text
LoadDB gui_charselect_text

// misc data
LoadDB generic_text


log ** Databases loaded.


//----------------------------------------------------------
#script=dummy
#onload
register_db_loader
#/onload
