mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-04 15:49:49 +00:00
12 lines
267 B
Dart
12 lines
267 B
Dart
import 'dart:ffi';
|
|
|
|
import '../arch.dart';
|
|
|
|
Architecture doGetArch() {
|
|
final archName = Abi.current().toString().split('_')[1];
|
|
return Architecture.values.firstWhere(
|
|
(architecture) => architecture.name == archName,
|
|
orElse: () => Architecture.x64,
|
|
);
|
|
}
|