Skip to content
Merged
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
23 changes: 23 additions & 0 deletions src/sdk/ec/api.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#ifndef EC_API_H
#define EC_API_H

#include <ec/dk.h>
#include <ec/asyncOp.h>
#include <ec/log.h>

class ECContentInfo {
int field0x0; //size 0x4, offset 0x0
short field0x4; //size 0x2, offset 0x4
short field0x6; //size 0x2, offset 0x6
int field0x8; //size 0x4, offset 0x8
int field0xc; //size 0x4, offset 0xc
void operator=(const ECContentInfo &other);
};

namespace ec {
const char *buildDateTime = (char *)"Feb 8 2010 20:10:32";
ECResult deleteTitleContent(unsigned long long);
ECResult getTitleInfos(ECTitleInfo *, unsigned long *, unsigned long long, bool);
}

#endif
35 changes: 35 additions & 0 deletions src/sdk/ec/asyncOp.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#ifndef RVL_EC_ASYNCOP_H
#define RVL_EC_ASYNCOP_H

#include <ec/result.h>
#include <ec/string.h>
#include <ec/internal/shr.h>

class ECAsyncOpEnv;
class ECAsyncOp;

class ECAsyncOpEnv {
public:
_SHRThread *opThread; //offset 0x4, size 0x4
int unk0x4c; //offset 0x4c, size 0x4. maybe cached balance?
bool unk0x50; //offset 0x50, size 0x1
ECString unk0xc0; //offset 0xc0, size 0x4
bool unk0x174; //offset 0x174, size 0x1
ECString m_AppId; //offset 0x178, size 0x4
ECString m_TIN; //offset 0x184, size 0x4
int unk0x190; //offset 0x190, size 0x4 (need to check this)
ECResult init();
~ECAsyncOpEnv();
ECResult checkParentalControlPassword(char const *, long *);
void lock();
void unlock();
void lockProgress();
void unlockProgress();
ECResult shutDown();
};

namespace ec {
ECAsyncOpEnv *op;
}

#endif
12 changes: 12 additions & 0 deletions src/sdk/ec/dk.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#ifndef RVL_EC_DK_H
#define RVL_EC_DK_H

#include <ec/result.h>
#include <revolution/ec/ec.h>

namespace ec {
ECResult init(ECNameValue *, unsigned long);
ECResult shutdown();
}

#endif
4 changes: 4 additions & 0 deletions src/sdk/ec/shoplog_bw.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#ifndef RVL_EC_SHOPLOG_BW_H
#define RVL_EC_SHOPLOG_BW_H
unsigned int checkECDKSyncNeededForTitle();
#endif
Loading
Loading