mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 16:57:31 +01:00
[apps/code] Fix imported script variables fetching
This commit is contained in:
@@ -13,7 +13,7 @@ constexpr char ScriptStore::k_scriptExtension[];
|
||||
|
||||
|
||||
bool ScriptStore::ScriptNameIsFree(const char * baseName) {
|
||||
return Ion::Storage::sharedStorage()->recordBaseNamedWithExtension(baseName, k_scriptExtension).isNull();
|
||||
return ScriptBaseNamed(baseName).isNull();
|
||||
}
|
||||
|
||||
ScriptStore::ScriptStore()
|
||||
@@ -123,7 +123,7 @@ void ScriptStore::scanScriptsForFunctionsAndVariables(void * context, ScanCallba
|
||||
}
|
||||
|
||||
const char * ScriptStore::contentOfScript(const char * name) {
|
||||
Script script = scriptNamed(name);
|
||||
Script script = ScriptNamed(name);
|
||||
if (script.isNull()) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user