mirror of
https://ghfast.top/https://github.com/StarCitizenToolBox/app.git
synced 2025-09-14 07:42:18 +08:00
Init
This commit is contained in:
@@ -6,8 +6,6 @@ import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
import 'package:hive/hive.dart';
|
||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||
import 'package:starcitizen_doctor/api/analytics.dart';
|
||||
import 'package:starcitizen_doctor/common/helper/log_helper.dart';
|
||||
import 'package:starcitizen_doctor/common/utils/base_utils.dart';
|
||||
import 'package:starcitizen_doctor/data/game_performance_data.dart';
|
||||
import 'package:starcitizen_doctor/generated/l10n.dart';
|
||||
import 'package:starcitizen_doctor/ui/home/home_ui_model.dart';
|
||||
@@ -165,20 +163,20 @@ class HomePerformanceUIModel extends _$HomePerformanceUIModel {
|
||||
}
|
||||
|
||||
cleanShaderCache(BuildContext? context) async {
|
||||
final gameShaderCachePath = await SCLoggerHelper.getShaderCachePath();
|
||||
final l =
|
||||
await Directory(gameShaderCachePath!).list(recursive: false).toList();
|
||||
for (var value in l) {
|
||||
if (value is Directory) {
|
||||
if (!value.absolute.path.contains("Crashes")) {
|
||||
await value.delete(recursive: true);
|
||||
}
|
||||
}
|
||||
}
|
||||
await Future.delayed(const Duration(milliseconds: 300));
|
||||
if (context != null && context.mounted) {
|
||||
showToast(context, S.current.performance_info_shader_clearing_warning);
|
||||
}
|
||||
// final gameShaderCachePath = await SCLoggerHelper.getShaderCachePath();
|
||||
// final l =
|
||||
// await Directory(gameShaderCachePath!).list(recursive: false).toList();
|
||||
// for (var value in l) {
|
||||
// if (value is Directory) {
|
||||
// if (!value.absolute.path.contains("Crashes")) {
|
||||
// await value.delete(recursive: true);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// await Future.delayed(const Duration(milliseconds: 300));
|
||||
// if (context != null && context.mounted) {
|
||||
// showToast(context, S.current.performance_info_shader_clearing_warning);
|
||||
// }
|
||||
}
|
||||
|
||||
applyProfile(bool cleanShader) async {
|
||||
|
@@ -7,7 +7,7 @@ part of 'performance_ui_model.dart';
|
||||
// **************************************************************************
|
||||
|
||||
String _$homePerformanceUIModelHash() =>
|
||||
r'83fbdbbae287892dd0c67f5fd86d42a73d0ab91f';
|
||||
r'a33d8c621f4cd150b1a091bfd0243d578f4a705c';
|
||||
|
||||
/// See also [HomePerformanceUIModel].
|
||||
@ProviderFor(HomePerformanceUIModel)
|
||||
|
Reference in New Issue
Block a user