made peripherals a static class
This commit is contained in:
@@ -73,7 +73,7 @@ class ResManager implements Process {
|
||||
var savedExports: Array<{name: String, addr: String, type: String}> = store.get("exports",[]);
|
||||
|
||||
for (export in savedExports){
|
||||
var perph = Peripheral.instance.getFromType(export.addr,export.type);
|
||||
var perph = Peripheral.getFromType(export.addr,export.type);
|
||||
|
||||
if (perph == null){
|
||||
handle.writeLine('Could not load export: ${export.name} on ${export.addr}');
|
||||
|
||||
Reference in New Issue
Block a user