|
Lines 1881-1887
Link Here
|
| 1881 |
unsigned char byte; |
1881 |
unsigned char byte; |
| 1882 |
dest = fopen(temp, "wb"); |
1882 |
dest = fopen(temp, "wb"); |
| 1883 |
strcpy(orig, WITH_HOME); |
1883 |
strcpy(orig, WITH_HOME); |
| 1884 |
strcat(orig, "share/mupen64/mupen64.ini"); |
1884 |
strcat(orig, "lib/mupen64/mupen64.ini"); |
| 1885 |
src = fopen(orig, "rb"); |
1885 |
src = fopen(orig, "rb"); |
| 1886 |
while(fread(&byte, 1, 1, src)) |
1886 |
while(fread(&byte, 1, 1, src)) |
| 1887 |
fwrite(&byte, 1, 1, dest); |
1887 |
fwrite(&byte, 1, 1, dest); |
|
Lines 1893-1899
Link Here
|
| 1893 |
strcpy(temp, g_WorkingDir); |
1893 |
strcpy(temp, g_WorkingDir); |
| 1894 |
strcat(temp, "lang"); |
1894 |
strcat(temp, "lang"); |
| 1895 |
strcpy(orig, WITH_HOME); |
1895 |
strcpy(orig, WITH_HOME); |
| 1896 |
strcat(orig, "share/mupen64/lang"); |
1896 |
strcat(orig, "lib/mupen64/lang"); |
| 1897 |
symlink(orig, temp); |
1897 |
symlink(orig, temp); |
| 1898 |
|
1898 |
|
| 1899 |
/*strcpy(temp, g_WorkingDir); |
1899 |
/*strcpy(temp, g_WorkingDir); |
|
Lines 1906-1919
Link Here
|
| 1906 |
strcat(temp, "plugins"); |
1906 |
strcat(temp, "plugins"); |
| 1907 |
mkdir(temp, 0700); |
1907 |
mkdir(temp, 0700); |
| 1908 |
strcpy(orig, WITH_HOME); |
1908 |
strcpy(orig, WITH_HOME); |
| 1909 |
strcat(orig, "share/mupen64/plugins"); |
1909 |
strcat(orig, "lib/mupen64/plugins"); |
| 1910 |
dir = opendir(orig); |
1910 |
dir = opendir(orig); |
| 1911 |
while((entry = readdir(dir)) != NULL) |
1911 |
while((entry = readdir(dir)) != NULL) |
| 1912 |
{ |
1912 |
{ |
| 1913 |
if(strcmp(entry->d_name + strlen(entry->d_name) - 3, ".so")) |
1913 |
if(strcmp(entry->d_name + strlen(entry->d_name) - 3, ".so")) |
| 1914 |
{ |
1914 |
{ |
| 1915 |
strcpy(orig, WITH_HOME); |
1915 |
strcpy(orig, WITH_HOME); |
| 1916 |
strcat(orig, "share/mupen64/plugins/"); |
1916 |
strcat(orig, "lib/mupen64/plugins/"); |
| 1917 |
strcat(orig, entry->d_name); |
1917 |
strcat(orig, entry->d_name); |
| 1918 |
src = fopen(orig, "rb"); |
1918 |
src = fopen(orig, "rb"); |
| 1919 |
if(src == NULL) continue; |
1919 |
if(src == NULL) continue; |
|
Lines 1939-1945
Link Here
|
| 1939 |
strcat(temp, "plugins/"); |
1939 |
strcat(temp, "plugins/"); |
| 1940 |
strcat(temp, entry->d_name); |
1940 |
strcat(temp, entry->d_name); |
| 1941 |
strcpy(orig, WITH_HOME); |
1941 |
strcpy(orig, WITH_HOME); |
| 1942 |
strcat(orig, "share/mupen64/plugins/"); |
1942 |
strcat(orig, "lib/mupen64/plugins/"); |
| 1943 |
strcat(orig, entry->d_name); |
1943 |
strcat(orig, entry->d_name); |
| 1944 |
symlink(orig, temp); |
1944 |
symlink(orig, temp); |
| 1945 |
} |
1945 |
} |