Skip to content

Instantly share code, notes, and snippets.

@Langerz82
Langerz82 / flycast_zipsupport.diff
Last active Mar 27, 2021
Flycast - Zip Support for CDI/GDI files - Some initial changes (7-zip not yet implemented).
View flycast_zipsupport.diff
diff --git a/core/archive/7zArchive.cpp b/core/archive/7zArchive.cpp
index 8ae6bba3..28fd97a8 100644
--- a/core/archive/7zArchive.cpp
+++ b/core/archive/7zArchive.cpp
@@ -105,6 +105,14 @@ ArchiveFile* SzArchive::OpenFileByCrc(u32 crc)
return NULL;
}
+
+// TODO
@Langerz82
Langerz82 / astar.js
Last active Feb 17, 2021
Advanced A* (A-Star) algorithm for a path finder. This does pixel based path finding, for map grids and is an advance on the original authors code.
View astar.js
define(function() {
var AStar = (function () {
/**
* Advanced A* (A-Star) algorithm for a path finder.
* This does pixel based path finding, for map grids and is an advance
* on the original authors code.
*
@Langerz82
Langerz82 / lplorganiser.html
Last active Feb 1, 2021
LPL File Organiser for RetroArch Arcade ROMS. Linux.
View lplorganiser.html
<!DOCTYPE HTML>
<!--
This file is part of lplorganiser.js.
License: GPL3.
Author: Langerz82.
Copyright: Langerz82 2020.
-->
<html>
<head>
<script src="lplorganiser.js"></script>
View fileio.c
/***************************************************************************
fileio.c
File access functions.
Copyright (c) 1996-2006, Nicola Salmoria and the MAME Team.
Visit http://mamedev.org for licensing and usage restrictions.
***************************************************************************/
@Langerz82
Langerz82 / xencode.sh
Created Nov 4, 2020
encodes ROM zip with x encode zip file
View xencode.sh
#!/bin/bash
mkdir tmp
cd tmp
unzip -v ../$1.zip
unzip -v ../$1x.zip
rm ../$1.zip
zip -v ../$1.zip *.*
cd ..
rm -f -r tmp
View ASTARv2.js
define(function() {
var AStar = (function () {
/**
* A* (A-Star) algorithm for a path finder
* @originalauthor Andrea Giammarchi
* @revisedauthor Langerz82
* @license Proprietary.
View ASTAR - Fine Grid Movement.
define(function() {
var AStar = (function () {
/**
* A* (A-Star) algorithm for a path finder
* @author Andrea Giammarchi
* @license Mit Style License
*/
View movementPhysicsOptimizer.diff
diff --git a/apps/openmw/engine.cpp b/apps/openmw/engine.cpp
index 1299fde0d..dd0839d60 100644
--- a/apps/openmw/engine.cpp
+++ b/apps/openmw/engine.cpp
@@ -232,6 +232,7 @@ OMW::Engine::Engine(Files::ConfigurationManager& configurationManager)
, mFSStrict (false)
, mScriptBlacklistUse (true)
, mNewGame (false)
+ , mPhysicsFPS(60)
, mCfgMgr(configurationManager)
View 3488.diff
diff --git a/apps/openmw/mwmechanics/aicombat.cpp b/apps/openmw/mwmechanics/aicombat.cpp
index ee1b9cecd..b0b4d994d 100644
--- a/apps/openmw/mwmechanics/aicombat.cpp
+++ b/apps/openmw/mwmechanics/aicombat.cpp
@@ -133,7 +133,10 @@ namespace MWMechanics
}
storage.updateCombatMove(duration);
+ storage.mRotateMove = false;
if (storage.mReadyToAttack) updateActorsMovement(actor, duration, storage);
View attack.diff
diff --git a/gamefilesd/level/afterLevelLoad.json b/gamefilesd/level/afterLevelLoad.json
index 1b694b6..4ea1661 100755
--- a/gamefilesd/level/afterLevelLoad.json
+++ b/gamefilesd/level/afterLevelLoad.json
@@ -30,5 +30,12 @@
"then": { "name": "audio.stop", "id": "main" },
"else": { "name": "audio.play", "id": "main" }
}
- ]
+ ],