Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

Commit

Permalink
fix: unable to download some mod files (#268)
Browse files Browse the repository at this point in the history
修復了下載模組包時,部份模組無法完整下載,並優化了模組包的下載速度 (#268)
  • Loading branch information
SiongSng authored Jul 5, 2022
2 parents 77000c4 + 1086876 commit 10b6297
Show file tree
Hide file tree
Showing 54 changed files with 431 additions and 431 deletions.
4 changes: 2 additions & 2 deletions lib/account/microsoft_account_handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import 'package:rpmlauncher/model/account/Account.dart';
import 'package:rpmlauncher/model/account/MicrosoftEntitlements.dart';
import 'package:rpmlauncher/util/data.dart';
import 'package:rpmlauncher/util/I18n.dart';
import 'package:rpmlauncher/util/LauncherInfo.dart';
import 'package:rpmlauncher/util/Logger.dart';
import 'package:rpmlauncher/util/launcher_info.dart';
import 'package:rpmlauncher/util/logger.dart';
import 'package:rpmlauncher/util/RPMHttpClient.dart';
import 'package:rpmlauncher/widget/rpmtw_design/OkClose.dart';
import 'package:uuid/uuid.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/account/mojang_account_handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import 'package:rpmlauncher/util/data.dart';
import 'package:rpmlauncher/util/I18n.dart';
// ignore: depend_on_referenced_packages
import 'package:http_parser/http_parser.dart';
import 'package:rpmlauncher/util/Logger.dart';
import 'package:rpmlauncher/util/logger.dart';
import 'package:rpmlauncher/util/RPMHttpClient.dart';

class MojangHandler {
Expand Down
2 changes: 1 addition & 1 deletion lib/function/analytics.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'dart:io';

import 'package:dio/dio.dart';
import 'package:flutter/widgets.dart';
import 'package:rpmlauncher/util/LauncherInfo.dart';
import 'package:rpmlauncher/util/launcher_info.dart';
import 'package:rpmlauncher/util/Config.dart';
import 'package:rpmlauncher/util/RPMHttpClient.dart';

Expand Down
4 changes: 2 additions & 2 deletions lib/function/counter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import 'dart:io';
import 'package:flutter/cupertino.dart';
// ignore: implementation_imports
import 'package:provider/src/provider.dart';
import 'package:rpmlauncher/util/LauncherInfo.dart';
import 'package:rpmlauncher/util/Logger.dart';
import 'package:rpmlauncher/util/launcher_info.dart';
import 'package:rpmlauncher/util/logger.dart';
import 'package:rpmlauncher/util/launcher_path.dart';

class Counter {
Expand Down
2 changes: 1 addition & 1 deletion lib/handler/window_handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'package:desktop_multi_window/desktop_multi_window.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:rpmlauncher/database/data_box.dart';
import 'package:rpmlauncher/util/LauncherInfo.dart';
import 'package:rpmlauncher/util/launcher_info.dart';
import 'package:window_manager/window_manager.dart';
import 'package:window_size/window_size.dart';

Expand Down
2 changes: 1 addition & 1 deletion lib/launcher/Fabric/FabricClient.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import 'package:rpmlauncher/launcher/InstallingState.dart';
import 'package:rpmlauncher/mod/mod_loader.dart';
import 'package:rpmlauncher/model/Game/MinecraftMeta.dart';
import 'package:rpmlauncher/model/Game/MinecraftSide.dart';
import 'package:rpmlauncher/model/IO/DownloadInfo.dart';
import 'package:rpmlauncher/model/IO/download_info.dart';
import 'package:rpmlauncher/model/Game/instance.dart';
import 'package:rpmlauncher/model/Game/Libraries.dart';
import 'package:rpmlauncher/util/I18n.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/launcher/Fabric/FabricServer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import 'package:path/path.dart';
import 'package:rpmlauncher/launcher/Arguments.dart';
import 'package:rpmlauncher/launcher/InstallingState.dart';
import 'package:rpmlauncher/mod/mod_loader.dart';
import 'package:rpmlauncher/model/IO/DownloadInfo.dart';
import 'package:rpmlauncher/model/IO/download_info.dart';
import 'package:rpmlauncher/util/I18n.dart';
import 'package:rpmlauncher/util/util.dart';

Expand Down
2 changes: 1 addition & 1 deletion lib/launcher/Forge/ForgeClient.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import 'package:rpmlauncher/launcher/Forge/ForgeAPI.dart';
import 'package:archive/archive.dart';
import 'package:path/path.dart';
import 'package:rpmlauncher/model/Game/MinecraftMeta.dart';
import 'package:rpmlauncher/model/IO/DownloadInfo.dart';
import 'package:rpmlauncher/model/IO/download_info.dart';
import 'package:rpmlauncher/model/Game/instance.dart';
import 'package:rpmlauncher/model/Game/Libraries.dart';
import 'package:rpmlauncher/screen/home_page.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/launcher/Forge/ForgeInstallProfile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'dart:convert';

import 'package:rpmlauncher/launcher/Forge/ForgeOldProfile.dart' as old_profile;
import 'package:rpmlauncher/launcher/InstallingState.dart';
import 'package:rpmlauncher/model/IO/DownloadInfo.dart';
import 'package:rpmlauncher/model/IO/download_info.dart';
import 'package:rpmlauncher/model/Game/Libraries.dart';
import 'package:rpmlauncher/util/I18n.dart';
import 'package:rpmlauncher/util/util.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/launcher/Forge/Processors.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import 'package:rpmlauncher/launcher/GameRepository.dart';
import 'package:rpmlauncher/model/Game/Libraries.dart';
import 'package:rpmlauncher/model/Game/instance.dart';
import 'package:rpmlauncher/util/Config.dart';
import 'package:rpmlauncher/util/Logger.dart';
import 'package:rpmlauncher/util/logger.dart';
import 'package:rpmlauncher/util/Process.dart';
import 'package:rpmlauncher/util/util.dart';
import 'package:archive/archive.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/launcher/InstallingState.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:rpmlauncher/model/IO/DownloadInfo.dart';
import 'package:rpmlauncher/model/IO/download_info.dart';
import 'package:rpmlauncher/util/I18n.dart';

InstallingState installingState = InstallingState();
Expand Down
4 changes: 2 additions & 2 deletions lib/launcher/MinecraftClient.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import 'package:http/http.dart';
import 'package:path/path.dart';
import 'package:rpmlauncher/model/Game/MinecraftMeta.dart';
import 'package:rpmlauncher/model/Game/MinecraftSide.dart';
import 'package:rpmlauncher/model/IO/DownloadInfo.dart';
import 'package:rpmlauncher/model/IO/download_info.dart';
import 'package:rpmlauncher/mod/mod_loader.dart';
import 'package:rpmlauncher/model/Game/instance.dart';
import 'package:rpmlauncher/util/I18n.dart';
import 'package:rpmlauncher/util/Logger.dart';
import 'package:rpmlauncher/util/logger.dart';
import 'package:rpmlauncher/util/data.dart';

import 'Arguments.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/launcher/Vanilla/VanillaServer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import 'package:path/path.dart';
import 'package:rpmlauncher/launcher/Arguments.dart';
import 'package:rpmlauncher/launcher/InstallingState.dart';
import 'package:rpmlauncher/mod/mod_loader.dart';
import 'package:rpmlauncher/model/IO/DownloadInfo.dart';
import 'package:rpmlauncher/model/IO/download_info.dart';
import 'package:rpmlauncher/util/I18n.dart';
import 'package:rpmlauncher/util/util.dart';

Expand Down
4 changes: 2 additions & 2 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import 'package:rpmlauncher/screen/loading_screen.dart';
import 'package:sentry_flutter/sentry_flutter.dart';

import 'util/data.dart';
import 'util/LauncherInfo.dart';
import 'util/Logger.dart';
import 'util/launcher_info.dart';
import 'util/logger.dart';
import 'util/util.dart';

Future<void> main(List<String> args) async {
Expand Down
2 changes: 1 addition & 1 deletion lib/mod/FTB/ModPackClient.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'package:rpmlauncher/launcher/InstallingState.dart';
import 'package:rpmlauncher/launcher/InstanceRepository.dart';
import 'package:rpmlauncher/launcher/MinecraftClient.dart';
import 'package:rpmlauncher/model/Game/MinecraftMeta.dart';
import 'package:rpmlauncher/model/IO/DownloadInfo.dart';
import 'package:rpmlauncher/model/IO/download_info.dart';
import 'package:rpmlauncher/mod/mod_loader.dart';
import 'package:rpmlauncher/model/Game/instance.dart';
import 'package:rpmlauncher/util/I18n.dart';
Expand Down
176 changes: 0 additions & 176 deletions lib/mod/curseforge/ModPackClient.dart

This file was deleted.

67 changes: 0 additions & 67 deletions lib/mod/curseforge/ModPackHandler.dart

This file was deleted.

Loading

0 comments on commit 10b6297

Please sign in to comment.