this repo has no description
0
fork

Configure Feed

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

#1169: removed copypaste

nesbox c31760de 8b885881

+2 -20
+2 -20
src/console.c
··· 1879 1879 #if defined(__TIC_WINDOWS__) 1880 1880 // Temporary workaround for #1169, because ZIP lib doesn't work with wide filenames, 1881 1881 // we store it the working dir and remove at the end. 1882 - void* data = NULL; 1883 - { 1884 - FILE* file = fopen(HtmlName, "rb"); 1885 - 1886 - if(file) 1887 - { 1888 - fseek(file, 0, SEEK_END); 1889 - size = ftell(file); 1890 - fseek(file, 0, SEEK_SET); 1891 - 1892 - data = malloc(size); 1893 - 1894 - if(data) 1895 - fread(data, size, 1, file); 1896 - 1897 - fclose(file); 1898 - } 1899 - 1900 - remove(HtmlName); 1901 - } 1882 + void* data = fsReadFile(name, &size); 1883 + remove(HtmlName); 1902 1884 #else 1903 1885 void* data = fsLoadRootFile(console->fs, HtmlName, &size); 1904 1886 #endif