Files
MBMNET-APP/source/shopctl.h
T

22 lines
862 B
C

#pragma once
#include <3ds/types.h>
#include <stdbool.h>
#include <stddef.h>
// Der MBMNET Shop ist eine eigene App (shop/). Die MBMNET-App installiert ihn nur, wenn man das will.
#define SHOP_TITLE_ID 0x000400000FB4E100ULL
typedef enum { SHOPJOB_IDLE, SHOPJOB_RUNNING, SHOPJOB_DONE, SHOPJOB_FAILED } ShopJob;
// Installierte Version (Titelversion) oder -1, wenn der Shop nicht installiert ist
int shopctl_version(void);
// Lädt den Shop vom MBMNET-Server und installiert ihn (im Hintergrund, auch zum Aktualisieren)
void shopctl_install(const char *server);
bool shopctl_remove(char *msg, size_t len);
// Startet den Shop (die MBMNET-App beendet sich danach). false = ging nicht, Grund in msg.
bool shopctl_launch(char *msg, size_t len);
ShopJob shopctl_job(void);
const char *shopctl_message(void);
void shopctl_acknowledge(void);
void shopctl_exit(void);