mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-10 14:26:45 +00:00
Confirmation on code upload
This commit is contained in:
parent
8f117c5e27
commit
41b981f3ab
@ -10,7 +10,6 @@ import java.net.InetSocketAddress;
|
||||
public class Main {
|
||||
public static void main(String[] args){
|
||||
|
||||
//TODO: Confirmation on code upload
|
||||
//TODO: Copper/Iron/Biomass: on hover only
|
||||
//TODO: Docs
|
||||
//TODO:
|
||||
|
@ -30,6 +30,12 @@ public class CodeUploadHandler implements MessageHandler {
|
||||
//Write assembled code to mem
|
||||
user.getUser().getCpu().getMemory().write((char) ar.origin, ar.bytes, ar.bytes.length);
|
||||
user.getUser().getCpu().setCodeSegmentOffset(ar.origin);
|
||||
|
||||
JSONObject response = new JSONObject();
|
||||
response.put("t", "codeResponse");
|
||||
response.put("bytes", ar.bytes.length);
|
||||
|
||||
user.getWebSocket().send(response.toJSONString());
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user