feat: CLI-only version (without GTK)
Modify the build system and the source files to support building a CLI-only version with only glib2 as a dependency. Use CLI_ONLY=1 ./configure, then make clean all.
This commit is contained in:
7
udf.c
7
udf.c
@@ -364,8 +364,11 @@ static IsoInfo* examine_iso(Image *image)
|
||||
/*** Iterate over the volume decriptors */
|
||||
|
||||
for(sector=16; sector<32; sector++)
|
||||
{ if(Closure->stopActions)
|
||||
{
|
||||
#ifndef CLI
|
||||
if(Closure->stopActions)
|
||||
continue;
|
||||
#endif
|
||||
|
||||
if(ImageReadSectors(image, buf, sector, 1) != 1)
|
||||
{ Verbose(" Sector %2d: unreadable\n", sector);
|
||||
@@ -794,7 +797,7 @@ void FreeIsoHeader(IsoHeader *ih)
|
||||
|
||||
void AddFile(IsoHeader *ih, char *name, guint64 size)
|
||||
{ static int n;
|
||||
char iso[20], joliet[strlen(name)+3];
|
||||
char iso[30], joliet[strlen(name)+3];
|
||||
|
||||
n++;
|
||||
sprintf(iso,"RAN_%04d.DAT;1", n);
|
||||
|
||||
Reference in New Issue
Block a user