gt_core_get_savepath now takes a buffer.