mirror of
https://github.com/dobin/SuperMega
synced 2026-06-03 01:27:11 +00:00
feature: guardrail data
This commit is contained in:
@@ -239,6 +239,20 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if project.settings.plugin_guardrail != "none" %}
|
||||
<div class="form-group row">
|
||||
<label for="guardrail" class="col-sm-5 col-form-label">
|
||||
Guard Data
|
||||
</label>
|
||||
<div class="col-sm-7">
|
||||
<input type="text" name="guardrail_data" class="hidden form-control"
|
||||
placeholder="" value="{{project.settings.plugin_guardrail_data}}"
|
||||
aria-label="guardrail_data" aria-describedby="basic-addon1"
|
||||
onchange="this.form.submit()">
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="antiemulation_style" class="col-sm-5 col-form-label">
|
||||
AntiEmulation
|
||||
|
||||
@@ -215,6 +215,8 @@ def add_project():
|
||||
payload_location = request.form['payload_location']
|
||||
settings.payload_location = PayloadLocation[payload_location]
|
||||
|
||||
settings.plugin_guardrail_data = request.form['guardrail_data']
|
||||
|
||||
# overwrite project
|
||||
project = storage.get_project(project_name)
|
||||
project.settings = settings
|
||||
|
||||
Reference in New Issue
Block a user