mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 10:53:17 +00:00
- Implemented `LaunchId` to keep track of the apps that are started - Implemented `FileSelection` app to select existing and/or new files. - Moved some re-usable file functionality to `tt::file::` - Renamed `Files` app to `FileBrowser` - Updated `Notes` app to use new `FileSelection` functionality, and cleaned it up a bit. - General code cleanliness improvements
32 lines
692 B
C++
32 lines
692 B
C++
#include "tt_app_manifest.h"
|
|
|
|
#include <Tactility/Check.h>
|
|
#include <Tactility/app/ElfApp.h>
|
|
|
|
#define TAG "tt_app"
|
|
|
|
extern "C" {
|
|
|
|
void tt_app_register(
|
|
const ExternalAppManifest* manifest
|
|
) {
|
|
#ifdef ESP_PLATFORM
|
|
assert((manifest->createData == nullptr) == (manifest->destroyData == nullptr));
|
|
setElfAppManifest(
|
|
manifest->name,
|
|
manifest->icon,
|
|
manifest->createData,
|
|
manifest->destroyData,
|
|
manifest->onCreate,
|
|
manifest->onDestroy,
|
|
manifest->onShow,
|
|
manifest->onHide,
|
|
reinterpret_cast<tt::app::OnResult>(manifest->onResult)
|
|
);
|
|
#else
|
|
tt_crash("TactilityC is not intended for PC/Simulator");
|
|
#endif
|
|
}
|
|
|
|
}
|