summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2015-05-09 04:32:06 +0200
committerLioncash <mathew1800@gmail.com>2015-05-09 04:32:06 +0200
commitcb92817fb0be1ac15af0607cd6e52093deb7344e (patch)
tree4696b6e6ffa900c3b000868c016f859eb99e0f45 /src
parentMerge pull request #731 from yuriks/app-info (diff)
parentLoader: Remove .bin file support (diff)
downloadyuzu-cb92817fb0be1ac15af0607cd6e52093deb7344e.tar
yuzu-cb92817fb0be1ac15af0607cd6e52093deb7344e.tar.gz
yuzu-cb92817fb0be1ac15af0607cd6e52093deb7344e.tar.bz2
yuzu-cb92817fb0be1ac15af0607cd6e52093deb7344e.tar.lz
yuzu-cb92817fb0be1ac15af0607cd6e52093deb7344e.tar.xz
yuzu-cb92817fb0be1ac15af0607cd6e52093deb7344e.tar.zst
yuzu-cb92817fb0be1ac15af0607cd6e52093deb7344e.zip
Diffstat (limited to 'src')
-rw-r--r--src/citra_qt/main.cpp2
-rw-r--r--src/core/loader/loader.cpp19
-rw-r--r--src/core/loader/loader.h1
3 files changed, 1 insertions, 21 deletions
diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp
index d15338f0d..f115c5b6a 100644
--- a/src/citra_qt/main.cpp
+++ b/src/citra_qt/main.cpp
@@ -256,7 +256,7 @@ void GMainWindow::ShutdownGame() {
void GMainWindow::OnMenuLoadFile()
{
- QString filename = QFileDialog::getOpenFileName(this, tr("Load File"), QString(), tr("3DS executable (*.3ds *.3dsx *.elf *.axf *.bin *.cci *.cxi)"));
+ QString filename = QFileDialog::getOpenFileName(this, tr("Load File"), QString(), tr("3DS executable (*.3ds *.3dsx *.elf *.axf *.cci *.cxi)"));
if (filename.size()) {
// Shutdown previous session if the emu thread is still active...
if (emu_thread != nullptr)
diff --git a/src/core/loader/loader.cpp b/src/core/loader/loader.cpp
index 505e2d280..4f881cf6f 100644
--- a/src/core/loader/loader.cpp
+++ b/src/core/loader/loader.cpp
@@ -63,8 +63,6 @@ static FileType GuessFromExtension(const std::string& extension_) {
return FileType::CXI;
else if (extension == ".cci")
return FileType::CCI;
- else if (extension == ".bin")
- return FileType::BIN;
else if (extension == ".3ds")
return FileType::CCI;
else if (extension == ".3dsx")
@@ -82,8 +80,6 @@ static const char* GetFileTypeString(FileType type) {
return "ELF";
case FileType::THREEDSX:
return "3DSX";
- case FileType::BIN:
- return "raw";
case FileType::Error:
case FileType::Unknown:
break;
@@ -137,21 +133,6 @@ ResultStatus LoadFile(const std::string& filename) {
break;
}
- // Raw BIN file format...
- case FileType::BIN:
- {
- Kernel::g_current_process = Kernel::Process::Create(filename_filename, 0);
- Kernel::g_current_process->svc_access_mask.set();
- Kernel::g_current_process->address_mappings = default_address_mappings;
-
- size_t size = (size_t)file->GetSize();
- if (file->ReadBytes(Memory::GetPointer(Memory::EXEFS_CODE_VADDR), size) != size)
- return ResultStatus::Error;
-
- Kernel::g_current_process->Run(Memory::EXEFS_CODE_VADDR, 0x30, Kernel::DEFAULT_STACK_SIZE);
- return ResultStatus::Success;
- }
-
// Error occurred durring IdentifyFile...
case FileType::Error:
diff --git a/src/core/loader/loader.h b/src/core/loader/loader.h
index a56f67205..87e16fb98 100644
--- a/src/core/loader/loader.h
+++ b/src/core/loader/loader.h
@@ -24,7 +24,6 @@ enum class FileType {
CXI,
CIA,
ELF,
- BIN,
THREEDSX, //3DSX
};