Skip to content

Commit 8fc557f

Browse files
committed
[0.2.42] Polished Arch Support
1 parent 6f7ddad commit 8fc557f

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

Geometria/Game/Scripts/FirstTimeInstaller.h

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,20 @@ struct FirstTimeInstaller
1111
static bool makeFirstTimeFile;
1212
static bool downloadGitInstaller;
1313

14+
static std::string pkgMgr;
15+
1416
static void Start()
1517
{
18+
GetVariables();
1619
Introduction();
1720
}
1821

22+
static void GetVariables()
23+
{
24+
pkgMgr = Linux::GetPkgManagerName();
25+
Files::ClearConsole();
26+
}
27+
1928
static void Introduction()
2029
{
2130
makeFirstTimeFile = false;
@@ -220,17 +229,16 @@ struct FirstTimeInstaller
220229
}
221230
else if(Application::IsPlatform(Application::Platform::Linux))
222231
{
223-
std::string pkgMgr = Linux::GetPkgManagerName();
224-
std::cout << "A: Since you're on Linux, and it uses " + pkgMgr << "\n";
232+
std::cout << "A: Since you're on Linux, and it uses " + FirstTimeInstaller::pkgMgr << "\n";
225233
std::cout << "as the package manager, it'll install all of these packages:" << "\n";
226234
std::cout << "\n";
227235

228-
if(pkgMgr == "APT")
236+
if(FirstTimeInstaller::pkgMgr == "APT")
229237
{
230238
for(auto i : Linux::APTPackageList())
231239
std::cout << "- " << i << "\n";
232240
}
233-
else if(pkgMgr == "Pacman")
241+
else if(FirstTimeInstaller::pkgMgr == "Pacman")
234242
{
235243
for(auto i : Linux::PacmanPackageList())
236244
std::cout << "- " << i << "\n";

geo

-122 KB
Binary file not shown.

0 commit comments

Comments
 (0)