[client][server] file transfer working, ui not ready for it

This commit is contained in:
2024-11-14 23:26:31 +01:00
parent 942eb8003e
commit 2b64d1e4ba
9 changed files with 334 additions and 39 deletions

View File

@ -18,8 +18,6 @@ interface Game {
installed: boolean;
}
const App = () => {
const [gameItems, setGameItems] = useState<Game[]>([]);
const [searchTerm, setSearchTerm] = useState('');
@ -100,7 +98,7 @@ const App = () => {
const runGame = async (id: string) => {
console.log(`🎯 Running game with id=${id}`);
try {
const result = await invoke('run_game_backend', {id});
const result = await invoke('install_game', {id});
console.log(`✅ Game started, result=${result}`);
} catch (error) {
console.error('❌ Error running game:', error);