diff --git a/lang/et-EE.json b/lang/et-EE.json index 523fdf182..3765b28cc 100644 --- a/lang/et-EE.json +++ b/lang/et-EE.json @@ -251,11 +251,11 @@ }, "about": { "aboutHeader": "Meist", - "flashpoint": "BlueMaxima Flashpoint", - "flashpointDesc": "See säilitusprojekt on ehitatud olema arhiiv, muuseum ja mängimisvõimalik kollektsioon veebipõhistest internetimängudest.", + "flashpoint": "Flashpoint Archive", + "flashpointDesc": "The preservation project this launcher was built for, a non-profit with the goal of furthering archival and accessibility efforts of games, animations and other digital interactive experiences on the web.", "website": "Veebileht", "flashpointLauncher": "Flashpoint'i Rakendus", - "flashpointLauncherDesc": "Avatud koodiga arvutirakendus loodud, et sirvida, hallata ja mängida mänge Flashpoint'i projektist.", + "flashpointLauncherDesc": "An open-source desktop application used to browse, manage and play games from the Flashpoint Archive.", "version": "Versioon", "license": "Litsents", "licenseInfo": "MIT (Rohkema info jaoks loe faili pealkirjaga LICENSE)", @@ -301,6 +301,7 @@ "noVersion": "Pole Versiooni", "releaseDate": "Avalduskuupäev", "noReleaseDate": "Pole Avalduskuupäeva", + "noneFound": "None Found", "language": "Keel", "noLanguage": "Pole Keelt", "dateAdded": "Kuupäev Lisatud", @@ -342,6 +343,7 @@ "saveChanges": "Salvesta Muudatused", "discardChanges": "Kustuta Muudatused", "editFpfssGame": "Edit Game (FPFSS)", + "showOnFpfss": "Show Game on FPFSS", "editGame": "Muuda Mängu Metat", "allGames": "Kõiki Mänge", "newPlaylist": "Uus Esitlusloend", @@ -362,7 +364,10 @@ "noMountParameters": "Pole Rakendusparameetreid", "showExtremeScreenshot": "Näita Ekstreemset Ekraanipilti", "busy": "Palun Oota...", - "openGameDataBrowser": "Open Game Data Browser" + "openGameDataBrowser": "Open Game Data Browser", + "notArchived": "Not Archived", + "archived": "Archived", + "playOnline": "Play Online" }, "tags": { "name": "Nimi", diff --git a/src/back/game/GameDataManager.ts b/src/back/game/GameDataManager.ts index ba19402bc..1d663d553 100644 --- a/src/back/game/GameDataManager.ts +++ b/src/back/game/GameDataManager.ts @@ -128,7 +128,7 @@ export async function importGameDataSkipHash(gameId: string, filePath: string, d throw 'Something went wrong importing (skipped hash)'; } -export function importGameData(gameId: string, filePath: string, dataPacksFolderPath: string, mountParameters?: string): Promise { +export function importGameData(gameId: string, filePath: string, dataPacksFolderPath: string, applicationPath?: string, launchCommand?: string, mountParameters?: string): Promise { return new Promise((resolve, reject) => { fs.promises.access(filePath, fs.constants.F_OK) .then(async () => { @@ -171,6 +171,8 @@ export function importGameData(gameId: string, filePath: string, dataPacksFolder newGameData.presentOnDisk = true; newGameData.path = newFilename; newGameData.sha256 = sha256; + newGameData.applicationPath = applicationPath || ''; + newGameData.launchCommand = launchCommand || ''; newGameData.parameters = mountParameters; newGameData.crc32 = 0; // TODO: Find decent lib for CRC32 save(newGameData) diff --git a/src/back/importGame.ts b/src/back/importGame.ts index 505d31de8..37edfdfeb 100644 --- a/src/back/importGame.ts +++ b/src/back/importGame.ts @@ -278,7 +278,7 @@ export async function importCuration(opts: ImportCurationOpts): Promise { // Import bluezip const filePath = path.join(curationPath, `${curation.folder}.zip`); taskProgress.setStageProgress(0.9, 'Importing Zipped File...'); - await GameDataManager.importGameData(game.id, filePath, dataPacksFolderPath, curation.game.mountParameters); + await GameDataManager.importGameData(game.id, filePath, dataPacksFolderPath, curation.game.applicationPath, curation.game.launchCommand, curation.game.mountParameters); await fs.promises.unlink(filePath); }) .catch((error) => {