Subversion Repositories Kolibri OS

Rev

Rev 3877 | Rev 4059 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3877 Rev 4023
Line 82... Line 82...
82
			if ( (!strcmp(filename, ".")) || (!strcmp(filename, "..")) ) continue;
82
			if ( (!strcmp(filename, ".")) || (!strcmp(filename, "..")) ) continue;
83
			CopyFolder(#copy_from2, #copy_in2);
83
			CopyFolder(#copy_from2, #copy_in2);
84
		}
84
		}
85
		else
85
		else
86
		{
86
		{
87
			copyf_Action(filename);
87
			copyf_Draw_Progress(filename);
88
			if (error=CopyFile(#copy_from2, #copy_in2)) 
88
			if (error=CopyFile(#copy_from2, #copy_in2)) 
89
			{
89
			{
90
				if (fabs(error)==8) { debug("Stop copying."); break;} //TODO: may be need grobal var like stop_all
90
				if (fabs(error)==8) { debug("Stop copying."); break;} //TODO: may be need grobal var like stop_all
91
				error=CopyFile(#copy_from2, #copy_in2); // #2 :)
91
				error=CopyFile(#copy_from2, #copy_in2); // #2 :)
92
			}
92
			}
Line 94... Line 94...
94
	}
94
	}
95
	free(dirbuf);
95
	free(dirbuf);
96
	return error;
96
	return error;
97
}
97
}
Line -... Line 98...
-
 
98
 
-
 
99
#ifdef LANG_RUS
-
 
100
	unsigned char *ERROR_TEXT[]={
-
 
101
	"Š®¤ #0: ãᯥ譮",
-
 
102
	"Žè¨¡ª  #1: ­¥ ®¯à¥¤¥«¥­  ¡ §  ¨/¨«¨ à §¤¥« ¦ñá⪮£® ¤¨áª ",
-
 
103
	"Žè¨¡ª  #2: äã­ªæ¨ï ­¥ ¯®¤¤¥à¦¨¢ ¥âáï ¤«ï í⮩ ä ©«®¢®© á¨á⥬ë",
98
 
104
	"Žè¨¡ª  #3: ­¥¨¢§¥á­ ï ä ©«®¢ ï á¨á⥬ ",
-
 
105
	0,
-
 
106
	"Žè¨¡ª  #5: ä ©« ¨«¨ ¯ ¯ª  ­¥ ­ ©¤¥­ë",
-
 
107
	"Žè¨¡ª  #6: ª®­¥æ ä ©« ",
-
 
108
	"Žè¨¡ª  #7: 㪠§ â¥«ì ­ å®¤¨âáï ¢á¥ ¯ ¬ï⨠¯à¨«®¦¥­¨ï",
-
 
109
	"Žè¨¡ª  #8: ­¥¤®áâ â®ç­® ¬¥áâ  ­  ¤¨áª¥",
-
 
110
	"Žè¨¡ª  #9: â ¡«¨æ  FAT à §àã襭 ",
-
 
111
	"Žè¨¡ª  #10: ¤®áâ㯠§ ¯à¥é¥­",
-
 
112
	"Žè¨¡ª  #11: ®è¨¡ª  ãáâனᢠ",
-
 
113
	0, 0, 0, 0, 0, 0, 0, 0, 0,
-
 
114
	0, 0, 0, 0, 0, 0, 0, 0, 0, 
-
 
115
	"Žè¨¡ª  #30: ­¥¤®áâ â®ç­® ¯ ¬ïâ¨",
-
 
116
	"Žè¨¡ª  #31: ä ©« ­¥ ï¥âáï ¨á¯®«­ï¥¬ë¬",
-
 
117
	"Žè¨¡ª  #32: ᫨誮¬ ¬­®£® ¯à®æ¥áᮢ", 0};
99
 
118
#else
100
unsigned char *ERROR_TEXT[]={
119
	unsigned char *ERROR_TEXT[]={
101
"Code #0 - No error",
120
	"Code #0 - No error, compleated successfully",
102
"Error #1 - Base or partition of a hard disk is not defined",
121
	"Error #1 - Base or partition of a hard disk is not defined",
103
"Error #2 - Function isn't supported for this file system",
122
	"Error #2 - Function isn't supported for this file system",
104
"Error #3 - Unknown file system",
-
 
-
 
123
	"Error #3 - Unknown file system",
105
"Error #4 - Reserved, is never returned",
124
	0,
106
"Error #5 - File or folder not found",
125
	"Error #5 - File or folder not found",
107
"Error #6 - End of file, EOF",
126
	"Error #6 - End of file",
108
"Error #7 - Pointer lies outside of application memory",
127
	"Error #7 - Pointer lies outside of application memory",
109
"Error #8 - Too less disk space",
128
	"Error #8 - Too less disk space",
110
"Error #9 - FAT table is destroyed",
129
	"Error #9 - FAT table is destroyed",
111
"Error #10 - Access denied",
130
	"Error #10 - Access denied",
112
"Error #11 - Device error",
131
	"Error #11 - Device error",
113
0, 0, 0, 0, 0, 0, 0, 0, 0,
132
	0, 0, 0, 0, 0, 0, 0, 0, 0,
114
0, 0, 0, 0, 0, 0, 0, 0, 0, 
133
	0, 0, 0, 0, 0, 0, 0, 0, 0, 
115
"Error #30 - Not enough memory",
134
	"Error #30 - Not enough memory",
116
"Error #31 - File is not executable",
135
	"Error #31 - File is not executable",
117
"Error #32 - Too many processes",
136
	"Error #32 - Too many processes", 0};
Line 118... Line 137...
118
0}; 
137
#endif
119
 
138
 
120
:dword get_error(int N)
139
:dword get_error(int N)
121
{
140
{