Some updates

This commit is contained in:
Lawin0129
2022-01-11 21:23:08 +00:00
committed by GitHub
parent 2bfa037ae6
commit 9baaf3190f

View File

@@ -780,7 +780,7 @@ express.get("/fortnite/api/cloudstorage/system/:file", async (req, res) => {
const file = path.join(__dirname, 'CloudStorage', req.params.file); const file = path.join(__dirname, 'CloudStorage', req.params.file);
if (fs.existsSync(file)) { if (fs.existsSync(file)) {
const ParsedFile = fs.readFileSync(file); const ParsedFile = fs.readFileSync(file, 'utf-8');
return res.status(200).send(ParsedFile).end(); return res.status(200).send(ParsedFile).end();
} }
@@ -825,7 +825,7 @@ express.get("/fortnite/api/cloudstorage/user/:accountId", async (req, res) => {
const file = `./ClientSettings/ClientSettings-${currentBuildID}.Sav`; const file = `./ClientSettings/ClientSettings-${currentBuildID}.Sav`;
if (fs.existsSync(file)) { if (fs.existsSync(file)) {
const utf8_file = fs.readFileSync(path.join(__dirname, file), 'utf8'); const utf8_file = fs.readFileSync(path.join(__dirname, file), 'utf-8');
const file_stats = fs.statSync(path.join(__dirname, file)); const file_stats = fs.statSync(path.join(__dirname, file));
return res.json([{ return res.json([{
@@ -5443,6 +5443,15 @@ express.post("/fortnite/api/game/v2/profile/*/client/EquipBattleRoyaleCustomizat
profile.stats.attributes.book_level = 100; profile.stats.attributes.book_level = 100;
} }
try {
if (!profile.stats.attributes.favorite_dance) {
profile.stats.attributes.favorite_dance = ["","","","","",""];
}
if (!profile.stats.attributes.favorite_itemwraps) {
profile.stats.attributes.favorite_itemwraps = ["","","","","","",""];
}
} catch (err) {}
// do not change any of these or you will end up breaking it // do not change any of these or you will end up breaking it
var ApplyProfileChanges = []; var ApplyProfileChanges = [];
var BaseRevision = profile.rvn || 0; var BaseRevision = profile.rvn || 0;