aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/OpSys.h
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2022-07-11 09:01:07 +0200
committerSefa Eyeoglu <contact@scrumplex.net>2022-09-20 15:59:43 +0200
commit09e85e948cdb361c306a1cccbc3557a464366a21 (patch)
tree9a33804b4370079902d7715ff5bc0c1e539b46e0 /launcher/minecraft/OpSys.h
parent9ec1c00887579e97c7b7a190756f6ddae583563f (diff)
downloadPrismLauncher-09e85e948cdb361c306a1cccbc3557a464366a21.tar.gz
PrismLauncher-09e85e948cdb361c306a1cccbc3557a464366a21.tar.bz2
PrismLauncher-09e85e948cdb361c306a1cccbc3557a464366a21.zip
refactor: introduce RuntimeContext
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'launcher/minecraft/OpSys.h')
-rw-r--r--launcher/minecraft/OpSys.h38
1 files changed, 0 insertions, 38 deletions
diff --git a/launcher/minecraft/OpSys.h b/launcher/minecraft/OpSys.h
deleted file mode 100644
index 0936f817..00000000
--- a/launcher/minecraft/OpSys.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/* Copyright 2013-2021 MultiMC Contributors
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#pragma once
-#include <QString>
-enum OpSys
-{
- Os_Windows,
- Os_FreeBSD,
- Os_Linux,
- Os_OSX,
- Os_Other
-};
-
-OpSys OpSys_fromString(QString);
-QString OpSys_toString(OpSys);
-
-#ifdef Q_OS_WIN32
- #define currentSystem Os_Windows
-#elif defined Q_OS_MAC
- #define currentSystem Os_OSX
-#elif defined Q_OS_FREEBSD
- #define currentSystem Os_FreeBSD
-#else
- #define currentSystem Os_Linux
-#endif