Ejemplo n.º 1
0
void drawOverlay()
{
	
	int mapPlace = 0;

	Coords tempCoords, holdDimensions;
	int spriteCount = 0;
	int typeHold = 0;
	
	//If we have just loaded this map, pull the sprites into memory
	//Once the sprites are no longer stored as a giant map, this will be simpler
	if (runOnce == false)
	{
		loadMapFile("datfile.dat", p1.getMapX(), p1.getMapY());
		runOnce = true;
	}
	
	for (spriteCount = 0; spriteCount < mapObjLocations.size(); spriteCount++)
	{
		typeHold = mapObjLocations.at(spriteCount).getObjType();
		holdDimensions = getObjDimensions(typeHold);
		
		if (typeHold < 90)
		{
			game_graphics->drawSprite(getObjSurface(typeHold), 0, 0, mapObjLocations.at(spriteCount).getX() * 32, mapObjLocations.at(spriteCount).getY() * 32, holdDimensions.getX(), holdDimensions.getY());
		}
	}
}
Ejemplo n.º 2
0
void MainWindow::on_actionMapFile_triggered()
{
    QString temp = QFileDialog::getOpenFileName(this,"Open map file",MapFilePath,"Map files (*.map)");
    if (temp.count())
    {
        loadMapFile(temp);
    }
}
size_t dpLoader::loadMapFiles()
{
    std::vector<HMODULE> modules;
    DWORD num_modules;
    ::EnumProcessModules(::GetCurrentProcess(), nullptr, 0, &num_modules);
    modules.resize(num_modules/sizeof(HMODULE));
    ::EnumProcessModules(::GetCurrentProcess(), &modules[0], num_modules, &num_modules);
    size_t ret = 0;
    for(size_t i=0; i<modules.size(); ++i) {
        char path[MAX_PATH];
        HMODULE mod = modules[i];
        ::GetModuleFileNameA(mod, path, _countof(path));
        std::string mappath = std::regex_replace(std::string(path), std::regex("\\.[^.]+$"), std::string(".map"));
        if(loadMapFile(mappath.c_str(), mod)) {
            ++ret;
        }
    }
    return ret;
}
void ClassSpaceChecker::onCheckButtonClicked()
{
	QString jarPath = ui.comboBox_JarFile->currentText();
	QString mapPath = ui.lineEdit_MapFile->text();
	QString searchText = ui.lineEdit_Search->text();

	//jarPath = "C:\\work\\LINE_2013\\util\\TroublesomeRequester\\Download\\2013\\LINE.jar";
	//mapPath = "C:\\work\\LINE_2013\\util\\TroublesomeRequester\\Download\\2013\\pro_map.txt";

	removeAll();

	currentMapPath_ = mapPath;
	currentJarPath_ = jarPath;

	if(mapPath.isEmpty() == false)
	{
		ui.checkBox_ByUncryptName->setEnabled(true);
		ui.checkBox_ByUncryptName->setChecked(true);
		if(loadMapFile(mapPath) == false)
			return;
	}
	else
	{
		ui.checkBox_ByUncryptName->setEnabled(false);
		ui.checkBox_ByUncryptName->setChecked(false);
	}
	
	if(loadJarFile(jarPath))
	{
		collectData();

		search();
		analysisUniqueClassReport();
		analysisPackageReport();
	}

	ui.tabWidget->setCurrentIndex(0);

	saveCurrentPreset();
}
Ejemplo n.º 5
0
void MainWindow::action_loadMapFile()
{
    QAction * act = qobject_cast<QAction*>(sender());
    Q_ASSERT(act);
    loadMapFile(act->text());
}
Ejemplo n.º 6
0
void Game::newPacket()	{
	cout << "Original New Packet Functionality." << endl;
	loadMapFile("desert-field.map");
}