diff options
| author | TheUltimateHacker <[email protected]> | 2015-03-16 11:52:50 -0400 |
|---|---|---|
| committer | TheUltimateHacker <[email protected]> | 2015-03-16 11:52:50 -0400 |
| commit | dbdc3f918399bc25220c93845f16d51933a9a762 (patch) | |
| tree | 63bbddcc6c012080f02b62fe676c1cfaf3750adf /ShiftOS/Skin Loader.vb | |
| parent | afbd2926d0d336cb608d40490c1188baf88d623d (diff) | |
| download | shiftos-dbdc3f918399bc25220c93845f16d51933a9a762.tar.gz shiftos-dbdc3f918399bc25220c93845f16d51933a9a762.tar.bz2 shiftos-dbdc3f918399bc25220c93845f16d51933a9a762.zip | |
#11 - Fixed skinning bug.
Fixed a huge skinning bug, along with adding a few new features (Infobox
tries to find a .wav file to play when it starts up. If there isn't any,
it doesn't play a sound.)
Diffstat (limited to 'ShiftOS/Skin Loader.vb')
| -rw-r--r-- | ShiftOS/Skin Loader.vb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ShiftOS/Skin Loader.vb b/ShiftOS/Skin Loader.vb index d7e404f..c05e6ad 100644 --- a/ShiftOS/Skin Loader.vb +++ b/ShiftOS/Skin Loader.vb @@ -1157,11 +1157,15 @@ Public Class Skin_Loader Private Sub btnapplyskin_Click(sender As Object, e As EventArgs) Handles btnapplyskin.Click If skinloaded = True Then If loadingsknversion = "2.0 disposal-free skinning" Then - If Directory.Exists(ShiftOSPath + "Shiftum42\Skins\Loaded") Then My.Computer.FileSystem.DeleteDirectory(ShiftOSPath + "Shiftum42\Skins\Loaded", FileIO.DeleteDirectoryOption.DeleteAllContents) + If Directory.Exists(Paths.loadedskin) Then My.Computer.FileSystem.DeleteDirectory(Paths.loadedskin, FileIO.DeleteDirectoryOption.DeleteAllContents) + + + Directory.CreateDirectory(ShiftOSPath + "Shiftum42\Skins\Loaded") My.Computer.FileSystem.CopyDirectory(ShiftOSPath + "Shiftum42\Skins\Preview", ShiftOSPath + "Shiftum42\Skins\Loaded") Skins.loadimages() skinloaded = False + Else apply1_0skin() skinloaded = False |
