cp fix-backlight.service /etc/systemd/system/
cp max_backlight /usr/local/bin/
chmod a+x /usr/local/bin/max-backlight
systemctl enable fix-backlight
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git audio/audio.c audio/audio.c | |
index 6eccdb17ee..4eb190a18f 100644 | |
--- audio/audio.c | |
+++ audio/audio.c | |
@@ -2097,3 +2097,8 @@ void AUD_set_volume_in (SWVoiceIn *sw, int mute, uint8_t lvol, uint8_t rvol) | |
} | |
} | |
} | |
+ | |
+int64_t audio_get_timer_ticks(void) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// e = hero entity | |
// n = num of item slot | |
public static String getItemName(Match match, Entity e, int num) { | |
int handle = e.getProperty(String.format("m_Inventory.m_hItems.%04d", num)); | |
if (handle == Handle.MAX) { | |
return ""; | |
} | |
Entity item = match.getEntities().getByHandle(handle); | |
String name = item.getProperty("m_iName"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Iterator<Entity> iter = match.getEntities().getAllByPredicate(new Predicate<Entity>() { | |
@Override | |
public boolean apply(Entity e) { | |
return e.getDtClass().instanceOf("DT_DOTABaseAbility"); | |
} | |
}); | |
while (iter.hasNext()) { | |
Entity ability = iter.next(); | |
Integer ownerHandle = ability.getProperty("m_hOwnerEntity"); | |
Entity hero = match.getEntities().getByHandle(ownerHandle); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static final int MAX_COORD_INTEGER = 16384; | |
public static float getVecOrigin(Entity e, int idx) { | |
Object v = e.getProperty("m_vecOrigin"); | |
if (v instanceof Vector2f) { | |
float[] v2 = new float[2]; | |
((Vector2f) v).get(v2); | |
return v2[idx]; | |
} else if (v instanceof Vector3f) { | |
float[] v3 = new float[3]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package skadistats.clarity.examples.simple; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import skadistats.clarity.Clarity; | |
import skadistats.clarity.match.Match; | |
import skadistats.clarity.parser.DemoInputStreamIterator; | |
import skadistats.clarity.parser.Peek; | |
import skadistats.clarity.parser.Profile; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
downloadables | |
modelprecache | |
genericprecache | |
soundprecache | |
decalprecache | |
instancebaseline | |
lightstyles | |
userinfo | |
dynamicmodel | |
server_query_info |