Removing utilities (that were just adding needless layers).

Progress on #294.
This commit is contained in:
Ben Vanik
2015-06-27 16:27:24 -07:00
parent 246c47f923
commit abf47b7973
17 changed files with 125 additions and 217 deletions

View File

@@ -262,27 +262,5 @@ void MainWindow::OnCommand(int id) {
}
}
X_STATUS MainWindow::LaunchPath(std::wstring path) {
X_STATUS result;
// Launch based on file type.
// This is a silly guess based on file extension.
// NOTE: this blocks!
auto file_system_type = emulator_->file_system()->InferType(path);
switch (file_system_type) {
case vfs::FileSystemType::STFS_TITLE:
result = emulator_->LaunchSTFSTitle(path);
break;
case vfs::FileSystemType::XEX_FILE:
result = emulator_->LaunchXexFile(path);
break;
case vfs::FileSystemType::DISC_IMAGE:
result = emulator_->LaunchDiscImage(path);
break;
}
return result;
}
} // namespace ui
} // namespace xe

View File

@@ -41,8 +41,6 @@ class MainWindow : public PlatformWindow {
void Start();
X_STATUS LaunchPath(std::wstring path);
private:
bool Initialize();