this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

#1950: added 'devmode: on' metatag to disable game menu (#2581)

authored by

Vadim Grigoruk and committed by
GitHub
639a3413 d8c554fa

+10 -3
+10 -3
src/studio/studio.c
··· 1745 1745 keyWasPressedOnce(studio, tic_key_numpadenter); 1746 1746 } 1747 1747 1748 + static bool isDevMode(Studio* studio) 1749 + { 1750 + tic_mem* tic = studio->tic; 1751 + return strcmp(tic_tool_metatag(tic->cart.code.data, "devmode", tic_get_script(tic)->singleComment), "on") == 0 1752 + || getConfig(studio)->options.devmode; 1753 + } 1754 + 1748 1755 static void processShortcuts(Studio* studio) 1749 1756 { 1750 1757 tic_mem* tic = studio->tic; ··· 1815 1822 switch(studio->mode) 1816 1823 { 1817 1824 case TIC_MENU_MODE: 1818 - getConfig(studio)->options.devmode 1825 + isDevMode(studio) 1819 1826 ? setStudioMode(studio, studio->prevMode == TIC_RUN_MODE 1820 1827 ? TIC_CONSOLE_MODE 1821 1828 : studio->prevMode) 1822 1829 : studio_menu_back(studio->menu); 1823 1830 break; 1824 1831 case TIC_RUN_MODE: 1825 - getConfig(studio)->options.devmode 1832 + isDevMode(studio) 1826 1833 ? setStudioMode(studio, studio->prevMode == TIC_RUN_MODE 1827 1834 ? TIC_CONSOLE_MODE 1828 1835 : studio->prevMode) ··· 1846 1853 else if(studio->mode == TIC_RUN_MODE && keyWasPressedOnce(studio, tic_key_f7)) 1847 1854 setCoverImage(studio); 1848 1855 1849 - if(getConfig(studio)->options.devmode || studio->mode != TIC_RUN_MODE) 1856 + if(isDevMode(studio) || studio->mode != TIC_RUN_MODE) 1850 1857 { 1851 1858 if(keyWasPressedOnce(studio, tic_key_f1)) setStudioMode(studio, TIC_CODE_MODE); 1852 1859 else if(keyWasPressedOnce(studio, tic_key_f2)) setStudioMode(studio, TIC_SPRITE_MODE);