citra-emu
/
citra-web
Archived
1
0
Fork 0

Reverse order of multiple test cases (#64)

This commit is contained in:
BynariStar 2017-11-23 15:39:59 +02:00 committed by James
parent ad49d095e1
commit ce21f1f004
1 changed files with 3 additions and 0 deletions

View File

@ -121,6 +121,9 @@ function processGame(game) {
var model = toml.parse(fs.readFileSync(`${fsPathCode}/${game}/game.dat`, 'utf8')); var model = toml.parse(fs.readFileSync(`${fsPathCode}/${game}/game.dat`, 'utf8'));
let currentDate = new Date(); let currentDate = new Date();
model.date = `${currentDate.toISOString()}`; model.date = `${currentDate.toISOString()}`;
// Reverse the order of the testcases array, so that the newest ones are displayed first
model.testcases = model.testcases.reverse();
// SHORTCUTS BLOCK // SHORTCUTS BLOCK
// Parse testcase information out of the dat to reinject as shortcut values. // Parse testcase information out of the dat to reinject as shortcut values.