Skip to content

Commit

Permalink
Merge pull request #980 from rohit-n/remove-dead-code
Browse files Browse the repository at this point in the history
Remove dead code.
  • Loading branch information
shuffle2 committed Sep 5, 2014
2 parents 0576046 + cf8d1c9 commit 674494e
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 323 deletions.
34 changes: 0 additions & 34 deletions Source/Core/DiscIO/BannerLoaderWii.cpp
Expand Up @@ -31,42 +31,8 @@ CBannerLoaderWii::CBannerLoaderWii(DiscIO::IVolume *pVolume)

if (!File::Exists(Filename))
{
// TODO(XK): Finish the 'commented' code. Turns out the banner.bin
// from the savefiles is very different from the banner.bin
// inside opening.bnr
#if 0
// Creating title folder
std::string titleFolder = StringFromFormat("%stitle/%08x/%08x/data/",
File::GetUserPath(D_WIIUSER_IDX).c_str(), (u32)(TitleID>>32), (u32)TitleID);
if (!File::Exists(titleFolder))
File::CreateFullPath(titleFolder);

// Extracting banner.bin from opening.bnr
std::string bnrFilename = StringFromFormat("%stitle/%08x/%08x/data/opening.bnr",
File::GetUserPath(D_WIIUSER_IDX).c_str(), (u32)(TitleID>>32), (u32)TitleID);

if (!_rFileSystem.ExportFile("opening.bnr", bnrFilename))
{
m_IsValid = false;
return;
}

CARCFile bnrArc (bnrFilename, 0x600);

if (!bnrArc.ExportFile("meta/banner.bin", Filename))
{
m_IsValid = false;
return;
}

// Now we have an LZ77-compressed file with a short IMD5 header
// TODO: Finish the job

File::Delete(bnrFilename);
#else
m_IsValid = false;
return;
#endif
}

// load the banner.bin
Expand Down
1 change: 0 additions & 1 deletion Source/Core/DiscIO/CMakeLists.txt
Expand Up @@ -8,7 +8,6 @@ set(SRCS BannerLoader.cpp
DiscScrubber.cpp
DriveBlob.cpp
FileBlob.cpp
FileHandlerARC.cpp
FileMonitor.cpp
FileSystemGCWii.cpp
Filesystem.cpp
Expand Down
2 changes: 0 additions & 2 deletions Source/Core/DiscIO/DiscIO.vcxproj
Expand Up @@ -44,7 +44,6 @@
<ClCompile Include="DiscScrubber.cpp" />
<ClCompile Include="DriveBlob.cpp" />
<ClCompile Include="FileBlob.cpp" />
<ClCompile Include="FileHandlerARC.cpp" />
<ClCompile Include="FileMonitor.cpp" />
<ClCompile Include="Filesystem.cpp" />
<ClCompile Include="FileSystemGCWii.cpp" />
Expand All @@ -68,7 +67,6 @@
<ClInclude Include="DiscScrubber.h" />
<ClInclude Include="DriveBlob.h" />
<ClInclude Include="FileBlob.h" />
<ClInclude Include="FileHandlerARC.h" />
<ClInclude Include="FileMonitor.h" />
<ClInclude Include="Filesystem.h" />
<ClInclude Include="FileSystemGCWii.h" />
Expand Down
6 changes: 0 additions & 6 deletions Source/Core/DiscIO/DiscIO.vcxproj.filters
Expand Up @@ -33,9 +33,6 @@
<ClCompile Include="BannerLoaderWii.cpp">
<Filter>FileHandler</Filter>
</ClCompile>
<ClCompile Include="FileHandlerARC.cpp">
<Filter>FileHandler</Filter>
</ClCompile>
<ClCompile Include="Filesystem.cpp">
<Filter>FileSystem</Filter>
</ClCompile>
Expand Down Expand Up @@ -101,9 +98,6 @@
<ClInclude Include="BannerLoaderGC.h">
<Filter>FileHandler</Filter>
</ClInclude>
<ClInclude Include="FileHandlerARC.h">
<Filter>FileHandler</Filter>
</ClInclude>
<ClInclude Include="Filesystem.h">
<Filter>FileSystem</Filter>
</ClInclude>
Expand Down
226 changes: 0 additions & 226 deletions Source/Core/DiscIO/FileHandlerARC.cpp

This file was deleted.

54 changes: 0 additions & 54 deletions Source/Core/DiscIO/FileHandlerARC.h

This file was deleted.

0 comments on commit 674494e

Please sign in to comment.