1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2025-04-21 12:27:27 +03:00

Use 'opkrun' to execute OPK files

This commit is contained in:
Paul Cercueil
2013-12-05 23:32:15 +01:00
parent 53ba01c40a
commit 7c1af3a03b
3 changed files with 12 additions and 31 deletions

View File

@@ -26,6 +26,7 @@
#include <math.h>
#include <fstream>
#include <unistd.h>
#include <ini.h>
#ifdef HAVE_LIBOPK
#include <opk.h>
@@ -674,11 +675,11 @@ void Menu::openPackage(std::string path, bool order)
for (;;) {
unsigned int i;
bool has_metadata = false;
const char *name;
LinkApp *link;
for (;;) {
string::size_type pos;
const char *name;
int ret = opk_open_metadata(opk, &name);
if (ret < 0) {
ERROR("Error while loading meta-data\n");
@@ -704,7 +705,7 @@ void Menu::openPackage(std::string path, bool order)
if (!has_metadata)
break;
link = new LinkApp(gmenu2x, path.c_str(), opk);
link = new LinkApp(gmenu2x, path.c_str(), opk, name);
link->setSize(gmenu2x->skinConfInt["linkWidth"], gmenu2x->skinConfInt["linkHeight"]);
addSection(link->getCategory());