fix rev. 8919

git-svn-id: svn://kolibrios.org@8925 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
IgorA 2021-06-22 13:17:09 +00:00
parent b3305a4764
commit cbb59ad9b4
2 changed files with 4 additions and 0 deletions

View File

@ -199,6 +199,10 @@ bool init_block(){
k = strlen(CurrentDirectoryPath);
while(CurrentDirectoryPath[k] != '\\' && CurrentDirectoryPath[k] != '/' && k) {k--;};
memcpy(library_path,CurrentDirectoryPath,k);
if(library_path[k-1] != '/'){
library_path[k] = '/';
k++;
}
strcpy(library_path+k,"block.bin");
file = FileOpen(library_path);