mirror of
https://github.com/leozide/leocad
synced 2025-01-29 20:34:50 +01:00
Allow the program to start without a library.
This commit is contained in:
parent
7710f9d3f5
commit
8c27ea2086
1 changed files with 12 additions and 5 deletions
|
@ -93,10 +93,6 @@ bool lcApplication::LoadPiecesLibrary(const char* LibPath, const char* LibraryIn
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
lcLoadDefaultColors();
|
|
||||||
|
|
||||||
SystemDoMessageBox("Cannot load pieces library.", LC_MB_OK | LC_MB_ICONERROR);
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -238,7 +234,18 @@ bool lcApplication::Initialize(int argc, char* argv[], const char* LibraryInstal
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (!LoadPiecesLibrary(LibPath, LibraryInstallPath, LibraryCachePath))
|
if (!LoadPiecesLibrary(LibPath, LibraryInstallPath, LibraryCachePath))
|
||||||
return false;
|
{
|
||||||
|
if (SaveImage)
|
||||||
|
{
|
||||||
|
fprintf(stderr, "Cannot load pieces library.");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
lcLoadDefaultColors();
|
||||||
|
m_Library->CreatePlaceholder("EMPTY");
|
||||||
|
|
||||||
|
SystemDoMessageBox("Cannot load pieces library.", LC_MB_OK | LC_MB_ICONERROR);
|
||||||
|
}
|
||||||
|
|
||||||
SystemInit();
|
SystemInit();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue