mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[apps] Remove AppsContainerStorage::sharedContainer
Use AppsContainer::sharedAppsContainer instead. The AppsContainerStorage is initialised in AppsContainer.
This commit is contained in:
committed by
EmilieNumworks
parent
055d601854
commit
e9d098bacb
@@ -1,4 +1,4 @@
|
||||
#include "apps_container_storage.h"
|
||||
#include "apps_container.h"
|
||||
#include "global_preferences.h"
|
||||
#include <poincare/init.h>
|
||||
|
||||
@@ -32,8 +32,8 @@ void ion_main(int argc, char * argv[]) {
|
||||
* $ ./epsilon.elf --code-script hello_world.py:print("hello") --code-lock-on-console
|
||||
*/
|
||||
const char * appNames[] = {"home", EPSILON_APPS_NAMES};
|
||||
for (int j = 0; j < AppsContainerStorage::sharedContainer()->numberOfApps(); j++) {
|
||||
App::Snapshot * snapshot = AppsContainerStorage::sharedContainer()->appSnapshotAtIndex(j);
|
||||
for (int j = 0; j < AppsContainer::sharedAppsContainer()->numberOfApps(); j++) {
|
||||
App::Snapshot * snapshot = AppsContainer::sharedAppsContainer()->appSnapshotAtIndex(j);
|
||||
int cmp = strcmp(argv[i]+2, appNames[j]);
|
||||
if (cmp == '-') {
|
||||
snapshot->setOpt(argv[i]+2+strlen(appNames[j])+1, argv[i+1]);
|
||||
@@ -42,5 +42,5 @@ void ion_main(int argc, char * argv[]) {
|
||||
}
|
||||
}
|
||||
#endif
|
||||
AppsContainerStorage::sharedContainer()->run();
|
||||
AppsContainer::sharedAppsContainer()->run();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user