Skip to content

Commit

Permalink
Small Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
DrRetro2033 committed Dec 20, 2024
1 parent 03e4c6f commit e4ef27b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
14 changes: 3 additions & 11 deletions lib/arceus.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ import 'version_control/constellation.dart';
/// ## A class that represents the Arceus application.
/// Contain global functions for Arceus, for example, settings, paths, etc.
class Arceus {
static late String currentPath;
static late String _currentPath;
static String get currentPath => _currentPath;
static set currentPath(String path) => _currentPath = path.fixPath();
static late bool isInternal;

/// # `static` `String` _appDataPath
Expand All @@ -36,14 +38,6 @@ class Arceus {
}
}

// static String _getProgramFilesPath() {
// if (!Platform.environment.containsKey("PROGRAMFILES(X86)")) {
// return Directory.current.path;
// } else {
// return "${Platform.environment["PROGRAMFILES(X86)"]!.fixPath()}/Arceus";
// }
// }

/// # `static` `Map<String, dynamic>` _getConstellations
/// ## Returns the list of constellations.
static Map<String, dynamic> _getConstellations() {
Expand Down Expand Up @@ -114,8 +108,6 @@ class Arceus {
}
}

static void saveUsers() {}

/// # `static` `void` _save(`Map<String, dynamic>` newIndex)
/// ## Saves the list of constellations to the file.
static void _saveConstellation(Map<String, dynamic> newIndex) {
Expand Down
2 changes: 1 addition & 1 deletion lib/server.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class ArceusServer {
/// ## The keyboard input handler.
static final keyboard = KeyboardInput();

/// # `void` `start`\
/// # `void` `start`
/// ## Starts the server
static Future<void> start() async {
/// 1. Link to Pilot
Expand Down
Binary file removed scripts/installers/linux/lib/sqlite3
Binary file not shown.
Binary file removed scripts/installers/windows/lib/sqlite3.dll
Binary file not shown.

0 comments on commit e4ef27b

Please sign in to comment.