mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2025-11-13 00:02:41 +10:00
Game downloads from the client are working (multithreaded) by parsing in gameID, GameVersion, and maxThreads from FE (#1)
This commit is contained in:
@ -3,13 +3,16 @@
|
||||
<button class="w-full rounded-md p-4 bg-blue-600 text-white" @click="requestGameWrapper">
|
||||
Load Data
|
||||
</button>
|
||||
<button class="w-full rounded-md p-4 bg-blue-600 text-white" @click="requestGameWrapper">
|
||||
Download Game
|
||||
</button>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { invoke } from "@tauri-apps/api/core";
|
||||
|
||||
async function requestGame() {
|
||||
console.log("Requested game from FE");
|
||||
await invoke("start_game_download", { gameId: "94b8ac10-a6fc-4a94-b519-e6df78018e26", gameVersion: "1.11.2", maxThreads: 4 });
|
||||
await invoke("start_game_download", { gameId: "328a276d-4777-4a47-97f1-15069c1e5f66", gameVersion: "1.11.2", maxThreads: 4 });
|
||||
}
|
||||
function requestGameWrapper() {
|
||||
console.log("Wrapper started");
|
||||
|
||||
Reference in New Issue
Block a user