Merge pull request #1279 from heuripedes/master

(cheats.c) Fix buffer reallocation
Clean up unused variable
Don't rely on implicit nulling of this stack array.
(Cg) Clean this up a little.
Non-HAVE_DYNAMIC codepath needs generic 'else' define
Sort cores directly in core_info_list_new, so Lakka and XMB get a sorted core list
Merge pull request #1280 from lakkatv/xmb

Sort cores directly in core_info_list_new, so Lakka and XMB get a sorted...
(libretro-sdk/libco) Silence warnings
Place content_is_init assignment in better spot
Corrected path where modules should be copied.
Merge pull request #1281 from amechtley/patch-1

Corrected path where modules should be copied.