feat: added basic UI, started on backend
chore: added coroutines Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
parent
56f797f7a3
commit
74d09702a8
8 changed files with 338 additions and 2 deletions
|
@ -0,0 +1,41 @@
|
|||
/*
|
||||
* Copyright (C) 2023 limited_dev
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
package de.limited_dev.modpackinstaller.backend
|
||||
|
||||
import kotlinx.coroutines.GlobalScope
|
||||
import kotlinx.coroutines.launch
|
||||
import kotlinx.coroutines.runBlocking
|
||||
|
||||
object Manager {
|
||||
fun startDownloadAndInstall(dotMcLocation: String) {
|
||||
val modloaderCoroutine = GlobalScope.launch {
|
||||
println("Downloading Modloader")
|
||||
}
|
||||
|
||||
val modpackCoroutine = GlobalScope.launch {
|
||||
println("Downloading Modpack")
|
||||
}
|
||||
|
||||
runBlocking {
|
||||
modloaderCoroutine.join()
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue