rc3/maps/ir/cellar/01/switch.php

11 lines
303 B
PHP
Raw Normal View History

2021-02-15 19:14:50 +00:00
<?php
$state = json_decode(file_get_contents("state.json"), true);
2021-02-16 03:51:02 +00:00
$state["switch_open"] = 1;
2021-02-15 19:14:50 +00:00
file_put_contents("state.json", json_encode($state));
2021-02-16 03:22:04 +00:00
# Load current level and patch exits to target the copy
$data = file_get_contents("switch.mp3");
header('Content-type: audio/mpeg');
echo($data);
2021-02-15 19:14:50 +00:00
exit;
?>