Skip to content

Commit 32a5d47

Browse files
committed
⚙ Update 1.4.5
- Auto configure Optifine and Vanilla cape settings
1 parent a8c3ba3 commit 32a5d47

4 files changed

Lines changed: 60 additions & 29 deletions

File tree

Cloaks/MainWindow.xaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@
5757
Recent Updates:
5858
<LineBreak />
5959
<LineBreak />
60-
Bug fixes and log system
60+
Automatically configure cape settings
6161
<LineBreak />
62-
• Current version is v.1.4.4
62+
• Current version is v.1.4.5
6363
</TextBlock>
6464
</Grid>
6565
</Border>
@@ -142,7 +142,7 @@
142142
</Grid>
143143
</Button>
144144

145-
<Label Content="Cloaks+ v.1.4.4" Style="{StaticResource navVersion}" Margin="3, 0, 0, 3" Width="124" VerticalAlignment="Bottom"/>
145+
<Label Content="Cloaks+ v.1.4.5" Style="{StaticResource navVersion}" Margin="3, 0, 0, 3" Width="124" VerticalAlignment="Bottom"/>
146146
</Grid>
147147
</Border>
148148
</Grid>

Cloaks/MainWindow.xaml.cs

Lines changed: 48 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public partial class MainWindow : Window
3232
// Frame Link Colors
3333
private static readonly Color HighlightColor = Color.FromArgb(0xFF, 0x43, 0x43, 0x43);
3434
private static readonly Color DarkColor = Color.FromArgb(0xFF, 0x1C, 0x1C, 0x1C);
35-
35+
3636
// Log Dir
3737
private static readonly string LOG_DIR = Environment.GetEnvironmentVariable("APPDATA") + "\\Cloaks+\\logs";
3838

@@ -46,11 +46,11 @@ public MainWindow()
4646
Close();
4747
Environment.Exit(0);
4848
}
49-
49+
5050
// Ensure Log Directory and clear latest
5151
Directory.CreateDirectory(LOG_DIR);
52-
File.WriteAllText(LOG_DIR + "\\latest.log","");
53-
52+
File.WriteAllText(LOG_DIR + "\\latest.log", "");
53+
5454
try
5555
{
5656
InitializeComponent();
@@ -311,6 +311,48 @@ private void RemoveAllInstallations()
311311

312312
private void InstallCloaks()
313313
{
314+
// Auto change optifine settings to show capes
315+
try
316+
{
317+
string ofOptionsPath = Environment.GetEnvironmentVariable("APPDATA") + "\\.minecraft\\optionsof.txt";
318+
319+
var ofOptions = File.ReadAllLines(ofOptionsPath);
320+
for (int i = 0; i < ofOptions.Length; i++)
321+
{
322+
if (ofOptions[i].StartsWith("ofShowCapes"))
323+
{
324+
ofOptions[i] = "ofShowCapes:true";
325+
}
326+
}
327+
328+
File.WriteAllLines(ofOptionsPath, ofOptions);
329+
}
330+
catch (Exception ex)
331+
{
332+
ThrowError(ex, "configuring Optifine settings");
333+
}
334+
335+
// Auto change vanilla cape settings to show capes
336+
try
337+
{
338+
string optionsPath = Environment.GetEnvironmentVariable("APPDATA") + "\\.minecraft\\options.txt";
339+
340+
var options = File.ReadAllLines(optionsPath);
341+
for (int i = 0; i < options.Length; i++)
342+
{
343+
if (options[i].StartsWith("modelPart_cape"))
344+
{
345+
options[i] = "modelPart_cape:true";
346+
}
347+
}
348+
349+
File.WriteAllLines(optionsPath, options);
350+
}
351+
catch (Exception ex)
352+
{
353+
ThrowError(ex, "configuring Minecraft settings");
354+
}
355+
314356
// Check if the hosts file exists at all
315357
if (!File.Exists(HOSTS_PATH))
316358
{
@@ -320,7 +362,7 @@ private void InstallCloaks()
320362
}
321363

322364
File.SetAttributes(HOSTS_PATH, FileAttributes.Normal);
323-
365+
324366
string message = "Cloaks+ successfully installed!";
325367

326368
if (CloaksPlusExists())
@@ -349,7 +391,7 @@ private void UninstallCloaks()
349391
DialogueBox.Show("Not Found", "Cloaks+ installation was not found on system.", this);
350392
return;
351393
}
352-
394+
353395
File.SetAttributes(HOSTS_PATH, FileAttributes.Normal);
354396

355397
RemoveAllInstallations();

Cloaks/app.manifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
3-
<assemblyIdentity version="1.4.4.0" name="Cloaks.app"/>
3+
<assemblyIdentity version="1.4.5.0" name="Cloaks.app"/>
44
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
55
<security>
66
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">

README.md

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,31 @@
1-
# 📢 Cloaks+ Installer
2-
3-
1+
# 📢 Cloaks+ Installer
42

53
Current Installer used by Cloaks+, LLC.
64

7-
8-
95
## Credits
106

117
`zuhn.#1337`, `seizure salad#3820`, `Wowkster#0001`, and `binrate#5017`
128

13-
14-
159
[![DigitalOcean Referral Badge](https://web-platforms.sfo2.cdn.digitaloceanspaces.com/WWW/Badge%201.svg)](https://www.digitalocean.com/?refcode=2538a60387c7&utm_campaign=Referral_Invite&utm_medium=Referral_Program&utm_source=badge)
1610

17-
[![StackShare](http://img.shields.io/badge/tech-stack-0690fa.svg?style=flat)](https://stackshare.io/cloaks-plus/cloaks-plus)
11+
[![StackShare](http://img.shields.io/badge/tech-stack-0690fa.svg?style=flat)](https://stackshare.io/cloaks-plus/cloaks-plus)
1812

1913
## 📃 Changelog
2014

21-
The Cloaks+ Installer's last update has been released on *1/29/2022*
15+
The Cloaks+ Installer's last update has been released on *1/30/2022*
2216

23-
### Version 1.4.4
17+
### Version 1.4.5
18+
- Automatically configure cape settings
2419

25-
- Bug fix with `mscorlib`
26-
- Log system for error reporting
20+
### Version 1.4.4
2721

28-
22+
- Bug fix with `mscorlib`
23+
- Log system for error reporting
2924

3025
## 🤝🏻 Contributing
3126

32-
33-
3427
As stated in the [Terms of Use](https://github.com/CloaksPlus/NewInstaller/blob/master/TOU.md), please contact a Cloaks+, LLC. developer is order to contribute to this repository.
3528

36-
37-
3829
## ⚖ License
3930

40-
41-
4231
This repository is provided without an Open Source License on purpose (not an oversight). The code is public, but is under exclusive copyright by Cloaks+ LLC. and ***All Rights are Reserved by Cloaks+ LLC.***. No permission is granted to use, modify, or share the provided code under any circumstance without explicit permission from a Cloaks+ LLC. Executive (e.g. an Official Manager, Executive or Owner). To learn more about a "No License" repository, feel free to check out this page https://choosealicense.com/no-permission/ from *Choose a License*.

0 commit comments

Comments
 (0)