forked from Kyraminol/3DSync
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathtest.cpp
More file actions
27 lines (21 loc) · 724 Bytes
/
test.cpp
File metadata and controls
27 lines (21 loc) · 724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <stdio.h>
#include <malloc.h>
#include <dirent.h>
#include <string>
#include <vector>
#include <iostream>
#include <cstdlib>
#include <sys/stat.h>
#include "source/modules/dropbox.h"
#include "source/modules/citra.h"
#include "source/modules/time.h"
int main(int argc, char** argv){
std::string checkpointPath = "/mnt/c/3ds-sdmc-dev/3ds/Checkpoint";
auto refreshToken = std::getenv("DROPBOX_REFRESH_TOKEN");
std::string dropboxToken = get_dropbox_access_token(refreshToken);
if (dropboxToken == "") {
std::cout << "Failed to receive Dropbox access token, exiting" << std::endl;
return 1;
}
downloadCitraSaves(dropboxToken, checkpointPath);
}