Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 1 addition & 42 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,51 +56,10 @@ int main(int argc, const char *argv[])
{
if(strcmp(argv[i], "-v") == 0)
{
printf("%d%s\napkL%d\n", VERSION_MULTIROM, VERSION_DEV_FIX, VERSION_APKL);
printf("%d%s\n", VERSION_MULTIROM, VERSION_DEV_FIX);
fflush(stdout);
return 0;
}
else if(strcmp(argv[i], "-apkL") == 0)
{
// Return all (internal and external) installed ROMs needed for the MultiROM Manager app

// external partitions will be mounted to /mnt/mrom/ and kept mounted so the app
// can manipulate them

int i;
int active = 0;
struct multirom_status s;
memset(&s, 0, sizeof(struct multirom_status));

multirom_apk_get_roms(&s);

for(i = 0; s.roms && s.roms[i]; ++i)
{
if(s.current_rom)
active = (s.roms[i] == s.current_rom);

if (!s.roms[i]->partition)
{
// Internal ROMs
printf("ROM:%d name=%s base=%s icon=%s\n",
active,
s.roms[i]->name, s.roms[i]->base_path, s.roms[i]->icon_path);
}
else
{
// External ROMs
printf("ROM:%d name=%s base=%s icon=%s part_name=%s part_mount=%s part_uuid=%s part_fs=%s\n",
active,
s.roms[i]->name, s.roms[i]->base_path, s.roms[i]->icon_path,
s.roms[i]->partition->name, s.roms[i]->partition->mount_path, s.roms[i]->partition->uuid, s.roms[i]->partition->fs);
}
}
fflush(stdout);

multirom_free_status(&s);

return 0;
}
else if(strncmp(argv[i], "--boot-rom=", sizeof("--boot-rom")) == 0)
{
rom_to_boot = argv[i] + sizeof("--boot-rom");
Expand Down
Loading