Skip to content

Commit

Permalink
[Fix] Fixed NVG context closing
Browse files Browse the repository at this point in the history
  • Loading branch information
Brov3r committed Aug 2, 2024
1 parent eecf1ad commit 5de5545
Show file tree
Hide file tree
Showing 11 changed files with 299 additions and 63 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

- Launch scripts updated
- Fixed the custom command manager (the @CommandChatReturn annotation was removed as unnecessary)
- Fixed NVG context closing
- Minor bugs fixed
- Added client side plugin example
- Added `.exe` executable files for Windows, allowing launch from Steam
Expand Down
102 changes: 53 additions & 49 deletions docs/javadoc/allclasses-index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/javadoc/com/avrix/agent/ClassTransformer.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ <h1 title="Class ClassTransformer" class="title">Class ClassTransformer</h1>
<section class="class-description" id="class-description">
<dl class="notes">
<dt>Direct Known Subclasses:</dt>
<dd><code><a href="../patches/PatchBanSteamIDCommand.html" title="class in com.avrix.patches">PatchBanSteamIDCommand</a></code>, <code><a href="../patches/PatchBanUserCommand.html" title="class in com.avrix.patches">PatchBanUserCommand</a></code>, <code><a href="../patches/PatchChatServer.html" title="class in com.avrix.patches">PatchChatServer</a></code>, <code><a href="../patches/PatchGameServer.html" title="class in com.avrix.patches">PatchGameServer</a></code>, <code><a href="../patches/PatchGameWindow.html" title="class in com.avrix.patches">PatchGameWindow</a></code>, <code><a href="../patches/PatchKickUserCommand.html" title="class in com.avrix.patches">PatchKickUserCommand</a></code>, <code><a href="../patches/PatchLuaEventManager.html" title="class in com.avrix.patches">PatchLuaEventManager</a></code>, <code><a href="../patches/PatchLuaManager.html" title="class in com.avrix.patches">PatchLuaManager</a></code>, <code><a href="../patches/PatchLuaManagerExposer.html" title="class in com.avrix.patches">PatchLuaManagerExposer</a></code>, <code><a href="../patches/PatchQuitCommand.html" title="class in com.avrix.patches">PatchQuitCommand</a></code>, <code><a href="../patches/PatchSpriteRenderer.html" title="class in com.avrix.patches">PatchSpriteRenderer</a></code>, <code><a href="../patches/PatchTranslator.html" title="class in com.avrix.patches">PatchTranslator</a></code>, <code><a href="../patches/PatchUIManager.html" title="class in com.avrix.patches">PatchUIManager</a></code>, <code><a href="../patches/PatchUnbanSteamIDCommand.html" title="class in com.avrix.patches">PatchUnbanSteamIDCommand</a></code>, <code><a href="../patches/PatchUnbanUserCommand.html" title="class in com.avrix.patches">PatchUnbanUserCommand</a></code>, <code><a href="../patches/PatchZLogger.html" title="class in com.avrix.patches">PatchZLogger</a></code></dd>
<dd><code><a href="../patches/PatchBanSteamIDCommand.html" title="class in com.avrix.patches">PatchBanSteamIDCommand</a></code>, <code><a href="../patches/PatchBanUserCommand.html" title="class in com.avrix.patches">PatchBanUserCommand</a></code>, <code><a href="../patches/PatchChatServer.html" title="class in com.avrix.patches">PatchChatServer</a></code>, <code><a href="../patches/PatchGameServer.html" title="class in com.avrix.patches">PatchGameServer</a></code>, <code><a href="../patches/PatchGameWindow.html" title="class in com.avrix.patches">PatchGameWindow</a></code>, <code><a href="../patches/PatchKickUserCommand.html" title="class in com.avrix.patches">PatchKickUserCommand</a></code>, <code><a href="../patches/PatchLuaEventManager.html" title="class in com.avrix.patches">PatchLuaEventManager</a></code>, <code><a href="../patches/PatchLuaManager.html" title="class in com.avrix.patches">PatchLuaManager</a></code>, <code><a href="../patches/PatchLuaManagerExposer.html" title="class in com.avrix.patches">PatchLuaManagerExposer</a></code>, <code><a href="../patches/PatchQuitCommand.html" title="class in com.avrix.patches">PatchQuitCommand</a></code>, <code><a href="../patches/PatchRenderThread.html" title="class in com.avrix.patches">PatchRenderThread</a></code>, <code><a href="../patches/PatchSpriteRenderer.html" title="class in com.avrix.patches">PatchSpriteRenderer</a></code>, <code><a href="../patches/PatchTranslator.html" title="class in com.avrix.patches">PatchTranslator</a></code>, <code><a href="../patches/PatchUIManager.html" title="class in com.avrix.patches">PatchUIManager</a></code>, <code><a href="../patches/PatchUnbanSteamIDCommand.html" title="class in com.avrix.patches">PatchUnbanSteamIDCommand</a></code>, <code><a href="../patches/PatchUnbanUserCommand.html" title="class in com.avrix.patches">PatchUnbanUserCommand</a></code>, <code><a href="../patches/PatchZLogger.html" title="class in com.avrix.patches">PatchZLogger</a></code></dd>
</dl>
<hr>
<div class="type-signature"><span class="modifiers">public abstract class </span><span class="element-name type-name-label">ClassTransformer</span>
Expand Down
174 changes: 174 additions & 0 deletions docs/javadoc/com/avrix/patches/PatchRenderThread.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
<!DOCTYPE HTML>
<html lang="ru">
<head>
<!-- Generated by javadoc (17) -->
<title>PatchRenderThread (Avrix 1.4.0 API)</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="description" content="declaration: package: com.avrix.patches, class: PatchRenderThread">
<meta name="generator" content="javadoc/ClassWriterImpl">
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../script-dir/jquery-ui.min.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../jquery-ui.overrides.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
<script type="text/javascript" src="../../../script-dir/jquery-3.6.1.min.js"></script>
<script type="text/javascript" src="../../../script-dir/jquery-ui.min.js"></script>
</head>
<body class="class-declaration-page">
<script type="text/javascript">var evenRowColor = "even-row-color";
var oddRowColor = "odd-row-color";
var tableTab = "table-tab";
var activeTableTab = "active-table-tab";
var pathtoroot = "../../../";
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="flex-box">
<header role="banner" class="flex-header">
<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="top-nav" id="navbar-top">
<div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation links">Skip navigation links</a></div>
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
<li><a href="../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="nav-bar-cell1-rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html#class">Help</a></li>
</ul>
</div>
<div class="sub-nav">
<div>
<ul class="sub-nav-list">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor-summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method-summary">Method</a></li>
</ul>
<ul class="sub-nav-list">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor-detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method-detail">Method</a></li>
</ul>
</div>
<div class="nav-list-search"><label for="search-input">SEARCH:</label>
<input type="text" id="search-input" value="search" disabled="disabled">
<input type="reset" id="reset-button" value="reset" disabled="disabled">
</div>
</div>
<!-- ========= END OF TOP NAVBAR ========= -->
<span class="skip-nav" id="skip-navbar-top"></span></nav>
</header>
<div class="flex-content">
<main role="main">
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="sub-title"><span class="package-label-in-type">Package</span>&nbsp;<a href="package-summary.html">com.avrix.patches</a></div>
<h1 title="Class PatchRenderThread" class="title">Class PatchRenderThread</h1>
</div>
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a>
<div class="inheritance"><a href="../agent/ClassTransformer.html" title="class in com.avrix.agent">com.avrix.agent.ClassTransformer</a>
<div class="inheritance">com.avrix.patches.PatchRenderThread</div>
</div>
</div>
<section class="class-description" id="class-description">
<hr>
<div class="type-signature"><span class="modifiers">public class </span><span class="element-name type-name-label">PatchRenderThread</span>
<span class="extends-implements">extends <a href="../agent/ClassTransformer.html" title="class in com.avrix.agent">ClassTransformer</a></span></div>
<div class="block">RenderThread patcher</div>
</section>
<section class="summary">
<ul class="summary-list">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<li>
<section class="constructor-summary" id="constructor-summary">
<h2>Constructor Summary</h2>
<div class="caption"><span>Constructors</span></div>
<div class="summary-table two-column-summary">
<div class="table-header col-first">Constructor</div>
<div class="table-header col-last">Description</div>
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E()" class="member-name-link">PatchRenderThread</a>()</code></div>
<div class="col-last even-row-color">
<div class="block">Constructor for creating a <a href="../agent/ClassTransformer.html" title="class in com.avrix.agent"><code>ClassTransformer</code></a> object.</div>
</div>
</div>
</section>
</li>
<!-- ========== METHOD SUMMARY =========== -->
<li>
<section class="method-summary" id="method-summary">
<h2>Method Summary</h2>
<div id="method-summary-table">
<div class="table-tabs" role="tablist" aria-orientation="horizontal"><button id="method-summary-table-tab0" role="tab" aria-selected="true" aria-controls="method-summary-table.tabpanel" tabindex="0" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table', 3)" class="active-table-tab">All Methods</button><button id="method-summary-table-tab2" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab2', 3)" class="table-tab">Instance Methods</button><button id="method-summary-table-tab4" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab4', 3)" class="table-tab">Concrete Methods</button></div>
<div id="method-summary-table.tabpanel" role="tabpanel">
<div class="summary-table three-column-summary" aria-labelledby="method-summary-table-tab0">
<div class="table-header col-first">Modifier and Type</div>
<div class="table-header col-second">Method</div>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#modifyClass()" class="member-name-link">modifyClass</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Method for performing class modification.</div>
</div>
</div>
</div>
</div>
<div class="inherited-list">
<h3 id="methods-inherited-from-class-com.avrix.agent.ClassTransformer">Methods inherited from class&nbsp;com.avrix.agent.<a href="../agent/ClassTransformer.html" title="class in com.avrix.agent">ClassTransformer</a></h3>
<code><a href="../agent/ClassTransformer.html#applyModifications()">applyModifications</a>, <a href="../agent/ClassTransformer.html#getClassName()">getClassName</a>, <a href="../agent/ClassTransformer.html#getModifierBuilder()">getModifierBuilder</a></code></div>
<div class="inherited-list">
<h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></h3>
<code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#clone()" title="class or interface in java.lang" class="external-link">clone</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#toString()" title="class or interface in java.lang" class="external-link">toString</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface in java.lang" class="external-link">wait</a></code></div>
</section>
</li>
</ul>
</section>
<section class="details">
<ul class="details-list">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<li>
<section class="constructor-details" id="constructor-detail">
<h2>Constructor Details</h2>
<ul class="member-list">
<li>
<section class="detail" id="&lt;init&gt;()">
<h3>PatchRenderThread</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="element-name">PatchRenderThread</span>()</div>
<div class="block">Constructor for creating a <a href="../agent/ClassTransformer.html" title="class in com.avrix.agent"><code>ClassTransformer</code></a> object.</div>
</section>
</li>
</ul>
</section>
</li>
<!-- ============ METHOD DETAIL ========== -->
<li>
<section class="method-details" id="method-detail">
<h2>Method Details</h2>
<ul class="member-list">
<li>
<section class="detail" id="modifyClass()">
<h3>modifyClass</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name">modifyClass</span>()</div>
<div class="block">Method for performing class modification.
The implementing method must contain the logic for modifying the target class.</div>
<dl class="notes">
<dt>Specified by:</dt>
<dd><code><a href="../agent/ClassTransformer.html#modifyClass()">modifyClass</a></code>&nbsp;in class&nbsp;<code><a href="../agent/ClassTransformer.html" title="class in com.avrix.agent">ClassTransformer</a></code></dd>
</dl>
</section>
</li>
</ul>
</section>
</li>
</ul>
</section>
<!-- ========= END OF CLASS DATA ========= -->
</main>
</div>
</div>
</body>
</html>
26 changes: 15 additions & 11 deletions docs/javadoc/com/avrix/patches/package-summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,28 +118,32 @@ <h1 title="Package com.avrix.patches" class="title">Package com.avrix.patches</h
<div class="col-last odd-row-color class-summary class-summary-tab2">
<div class="block">QuitCommand patcher</div>
</div>
<div class="col-first even-row-color class-summary class-summary-tab2"><a href="PatchSpriteRenderer.html" title="class in com.avrix.patches">PatchSpriteRenderer</a></div>
<div class="col-first even-row-color class-summary class-summary-tab2"><a href="PatchRenderThread.html" title="class in com.avrix.patches">PatchRenderThread</a></div>
<div class="col-last even-row-color class-summary class-summary-tab2">
<div class="block">SpriteRenderer patcher</div>
<div class="block">RenderThread patcher</div>
</div>
<div class="col-first odd-row-color class-summary class-summary-tab2"><a href="PatchTranslator.html" title="class in com.avrix.patches">PatchTranslator</a></div>
<div class="col-first odd-row-color class-summary class-summary-tab2"><a href="PatchSpriteRenderer.html" title="class in com.avrix.patches">PatchSpriteRenderer</a></div>
<div class="col-last odd-row-color class-summary class-summary-tab2">
<div class="block">Translator patcher</div>
<div class="block">SpriteRenderer patcher</div>
</div>
<div class="col-first even-row-color class-summary class-summary-tab2"><a href="PatchUIManager.html" title="class in com.avrix.patches">PatchUIManager</a></div>
<div class="col-first even-row-color class-summary class-summary-tab2"><a href="PatchTranslator.html" title="class in com.avrix.patches">PatchTranslator</a></div>
<div class="col-last even-row-color class-summary class-summary-tab2">
<div class="block">UIManager patcher</div>
<div class="block">Translator patcher</div>
</div>
<div class="col-first odd-row-color class-summary class-summary-tab2"><a href="PatchUnbanSteamIDCommand.html" title="class in com.avrix.patches">PatchUnbanSteamIDCommand</a></div>
<div class="col-first odd-row-color class-summary class-summary-tab2"><a href="PatchUIManager.html" title="class in com.avrix.patches">PatchUIManager</a></div>
<div class="col-last odd-row-color class-summary class-summary-tab2">
<div class="block">UnbanSteamIDCommand patcher</div>
<div class="block">UIManager patcher</div>
</div>
<div class="col-first even-row-color class-summary class-summary-tab2"><a href="PatchUnbanUserCommand.html" title="class in com.avrix.patches">PatchUnbanUserCommand</a></div>
<div class="col-first even-row-color class-summary class-summary-tab2"><a href="PatchUnbanSteamIDCommand.html" title="class in com.avrix.patches">PatchUnbanSteamIDCommand</a></div>
<div class="col-last even-row-color class-summary class-summary-tab2">
<div class="block">UnbanUserCommand patcher</div>
<div class="block">UnbanSteamIDCommand patcher</div>
</div>
<div class="col-first odd-row-color class-summary class-summary-tab2"><a href="PatchZLogger.html" title="class in com.avrix.patches">PatchZLogger</a></div>
<div class="col-first odd-row-color class-summary class-summary-tab2"><a href="PatchUnbanUserCommand.html" title="class in com.avrix.patches">PatchUnbanUserCommand</a></div>
<div class="col-last odd-row-color class-summary class-summary-tab2">
<div class="block">UnbanUserCommand patcher</div>
</div>
<div class="col-first even-row-color class-summary class-summary-tab2"><a href="PatchZLogger.html" title="class in com.avrix.patches">PatchZLogger</a></div>
<div class="col-last even-row-color class-summary class-summary-tab2">
<div class="block">ZLogger patcher</div>
</div>
</div>
Expand Down
Loading

0 comments on commit 5de5545

Please sign in to comment.