diff options
| author | donkopunchstania <donkopunchstania@gmail.com> | 2008-09-23 00:05:08 +0000 |
|---|---|---|
| committer | donkopunchstania <donkopunchstania@gmail.com> | 2008-09-23 00:05:08 +0000 |
| commit | 29664c880a5b1d972abcd105fad17d33a5a80751 (patch) | |
| tree | 5c148bd283da1b03d5b54c3803153dc72898c856 /Source/Core/DiscIO/Src/VolumeCreator.cpp | |
| parent | ef1aba784efcc85edaebdbc2079e72f8fb81e7d5 (diff) | |
added VolumeDirectory and modified ELF boot code to allow a directory on the user's computer to appear as the DVD drive. Linux support needs to be added. Added functionality to the Wii DI. Clicking on a data symbol in the code window sets the memory list to that address.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@624 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DiscIO/Src/VolumeCreator.cpp')
| -rw-r--r-- | Source/Core/DiscIO/Src/VolumeCreator.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/Core/DiscIO/Src/VolumeCreator.cpp b/Source/Core/DiscIO/Src/VolumeCreator.cpp index e7b051f9bb..7f58f30db7 100644 --- a/Source/Core/DiscIO/Src/VolumeCreator.cpp +++ b/Source/Core/DiscIO/Src/VolumeCreator.cpp @@ -22,6 +22,7 @@ #include "VolumeCreator.h"
#include "Volume.h"
+#include "VolumeDirectory.h"
#include "VolumeGC.h"
#include "VolumeWiiCrypted.h"
@@ -103,6 +104,14 @@ IVolume* CreateVolumeFromFilename(const std::string& _rFilename) return NULL;
}
+IVolume* CreateVolumeFromDirectory(const std::string& _rDirectory, bool _bIsWii)
+{
+ if(CVolumeDirectory::IsValidDirectory(_rDirectory))
+ return new CVolumeDirectory(_rDirectory, _bIsWii);
+
+ return NULL;
+}
+
bool IsVolumeWiiDisc(const IVolume *_rVolume)
{
u32 MagicWord = 0;
|
