mirror of
https://github.com/DarkStore-3DS/DarkStore.git
synced 2026-07-03 00:39:02 +00:00
UniStore list and screenshots (#54)
* Initial push. * Fix png loading * Remove unneeded casts * Push my progress. * Improve screenshot display * Hopefully last commit here before merge? Co-authored-by: StackZ <47382115+SuperSaiyajinStackZ@users.noreply.github.com>
This commit is contained in:
+13
-5
@@ -68,8 +68,15 @@ public:
|
||||
void drawThread();
|
||||
void captureThread();
|
||||
void handler(std::vector<u8>& out);
|
||||
bool done() const { return finished; };
|
||||
bool cancelled() const { return cancel; };
|
||||
bool done() const { return this->finished; };
|
||||
bool cancelled() const { return this->cancel; };
|
||||
bool Mode() const { return this->mode; };
|
||||
void Info(bool v) { this->displayInfo = v; };
|
||||
|
||||
int selectedStore = 0, sPos = 0;
|
||||
std::vector<StoreList> stores = { };
|
||||
bool FromList = false;
|
||||
uint8_t timeout = 30;
|
||||
private:
|
||||
void buffToImage();
|
||||
void finish();
|
||||
@@ -83,15 +90,16 @@ private:
|
||||
std::atomic<bool> finished = false;
|
||||
bool capturing = false;
|
||||
bool cancel = false;
|
||||
bool mode = true; // True -> Camera, False -> URL.
|
||||
bool displayInfo = false;
|
||||
|
||||
};
|
||||
|
||||
/*
|
||||
This is, what should get called.
|
||||
*/
|
||||
namespace QR_Scanner {
|
||||
/* Empty == cancelled. */
|
||||
std::vector<u8> scan();
|
||||
std::string GetQRURL();
|
||||
std::string StoreHandle();
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user