Example #1
0
// Find the filename
void FindFilename(u64 offset)
{
	// Don't do anything if a game is not running
	if (Core::GetState() != Core::CORE_RUN)
		return;

	// Or if the log is unselected
	if (!LogManager::GetInstance()->IsEnabled(LogTypes::FILEMON, LogTypes::LWARNING))
		return;

	// Or if we don't have file access
	if (!FileAccess)
		return;

	if (!s_filesystem || ISOFile != SConfig::GetInstance().m_LastFilename)
	{
		FileAccess = false;
		ReadFileSystem(SConfig::GetInstance().m_LastFilename);
		ISOFile = SConfig::GetInstance().m_LastFilename;
		INFO_LOG(FILEMON, "Opening '%s'", ISOFile.c_str());
		return;
	}

	const std::string filename = s_filesystem->GetFileName(offset);

	if (filename.empty())
		return;

	CheckFile(filename, s_filesystem->GetFileSize(filename));
}
Example #2
0
/******************************************************************************
*******************************************************************************
UI   UI   UI   UI   UI   UI   UI   UI   UI   UI   UI   UI   UI   UI   UI   UI
*******************************************************************************
******************************************************************************/
void MainWindow::on_pushButton_RefreshVolumes_clicked()
{
    // Search for folumes
    GetAllVolumeDefinitions();
    // Display them
    DisplaySuitableVolumeDefinitions();
    // Read and display the filesystem
    ReadFileSystem(currentvolume);
}
Example #3
0
void MainWindow::on_tableWidget_itemSelectionChanged()
{
    printf(":on_tableWidget_itemSelectionChanged\n");
    QList<QTableWidgetItem *> si = ui->tableWidget->selectedItems();
    if(si.size())
    {
        currentvolume = si[0]->row();
        printf("Loading filesystem from device %d\n",currentvolume);
        ReadFileSystem(currentvolume);
    }
    else
        currentvolume=-1;

}
Example #4
0
void MainWindow::on_pushButton_ReadFileSystem_clicked()
{
    ReadFileSystem(currentvolume);
}