()
| 1836 | } |
| 1837 | |
| 1838 | private static void Menu_Credits_f() { |
| 1839 | int n; |
| 1840 | int isdeveloper = 0; |
| 1841 | |
| 1842 | byte b[] = FS.LoadFile("credits"); |
| 1843 | |
| 1844 | if (b != null) { |
| 1845 | creditsBuffer = new String(b); |
| 1846 | String line[] = creditsBuffer.split("\r\n"); |
| 1847 | |
| 1848 | for (n = 0; n < line.length; n++) { |
| 1849 | creditsIndex[n] = line[n]; |
| 1850 | } |
| 1851 | |
| 1852 | creditsIndex[n] = null; |
| 1853 | credits = creditsIndex; |
| 1854 | } else { |
| 1855 | isdeveloper = FS.Developer_searchpath(); |
| 1856 | |
| 1857 | if (isdeveloper == 1) // xatrix |
| 1858 | credits = xatcredits; |
| 1859 | else if (isdeveloper == 2) // ROGUE |
| 1860 | credits = roguecredits; |
| 1861 | else { |
| 1862 | credits = idcredits; |
| 1863 | } |
| 1864 | |
| 1865 | } |
| 1866 | |
| 1867 | credits_start_time = ClientGlobals.cls.realtime; |
| 1868 | PushMenu((List<String> args) -> Credits_MenuDraw(), new keyfunc_t() { |
| 1869 | public String execute(int key) { |
| 1870 | return Credits_Key(key); |
| 1871 | } |
| 1872 | }); |
| 1873 | } |
| 1874 | |
| 1875 | /* |
| 1876 | * ============================================================================= |
no test coverage detected