mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/code] The console marks imported script for the var box
After lauching the console, if we fetch a script we mark it as fetched. When the variable box displays variables from imported scripts, it scans all the variables from the scripts marked as fetched.
This commit is contained in:
@@ -65,31 +65,35 @@ bool Script::nameCompliant(const char * name) {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Script::importationStatus() const {
|
||||
bool Script::autoImportationStatus() const {
|
||||
assert(!isNull());
|
||||
Data d = value();
|
||||
return (((char *)d.buffer)[0] == 1);
|
||||
}
|
||||
|
||||
void Script::toggleImportationStatus() {
|
||||
void Script::toggleAutoimportationStatus() {
|
||||
assert(!isNull());
|
||||
Data d = value();
|
||||
((char *)d.buffer)[0] = (((char *)d.buffer)[0] == 1 ? 0 : 1);
|
||||
setValue(d);
|
||||
}
|
||||
|
||||
const char * Script::scriptContent() const {
|
||||
assert(!isNull());
|
||||
Data d = value();
|
||||
return (const char *)d.buffer + k_autoimportationStatusSize + k_currentImportationStatusSize;
|
||||
return ((const char *)d.buffer) + InformationSize();
|
||||
}
|
||||
|
||||
bool Script::contentFetchedFromConsole() const {
|
||||
|
||||
assert(!isNull());
|
||||
Data d = value();
|
||||
return (((char *)d.buffer)[k_autoImportationStatusSize] == 1);
|
||||
}
|
||||
|
||||
void Script::setContentFetchedFromConsole(bool fetch) const {
|
||||
|
||||
}
|
||||
//TODO TODO LEA
|
||||
void Script::setContentFetchedFromConsole(bool fetch) {
|
||||
assert(!isNull());
|
||||
Data d = value();
|
||||
((char *)d.buffer)[k_autoImportationStatusSize] = fetch;
|
||||
setValue(d);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user