feat: Enhance CLI and GUI to support configurable game data directory persistence
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
@@ -7,24 +7,19 @@ library;
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:window_manager/window_manager.dart';
|
||||
import 'package:wolf_3d_flutter/wolf_3d_flutter.dart';
|
||||
|
||||
/// Creates the application shell after loading available Wolf3D data sets.
|
||||
void main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
|
||||
if (supportsDesktopWindowing) {
|
||||
await windowManager.ensureInitialized();
|
||||
}
|
||||
|
||||
final Wolf3dFlutterEngine wolf3d = await Wolf3dFlutterEngine().init(
|
||||
final Wolf3dFlutterEngine wolf3d = await Wolf3dFlutterEngine(
|
||||
debug: kDebugMode,
|
||||
);
|
||||
).init();
|
||||
|
||||
runApp(
|
||||
MaterialApp(
|
||||
home: Wolf3dApp(wolf3d: wolf3d),
|
||||
home: Wolf3dApp(engine: wolf3d),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -9,9 +9,7 @@ environment:
|
||||
resolution: workspace
|
||||
|
||||
dependencies:
|
||||
wolf_3d_dart:
|
||||
wolf_3d_flutter: any
|
||||
window_manager: ^0.5.1
|
||||
wolf_3d_flutter:
|
||||
|
||||
flutter:
|
||||
sdk: flutter
|
||||
|
||||
Reference in New Issue
Block a user