1
0
forked from Mirror/wren

try; fix random and meta properly

This commit is contained in:
underscorediscovery
2021-04-03 22:09:19 -07:00
parent 94e835cdd6
commit 615a6aa208
5 changed files with 53 additions and 76 deletions

View File

@ -374,6 +374,12 @@
WrenLoadModuleResult readModule(WrenVM* vm, const char* module)
{
//source may or may not be null
WrenLoadModuleResult result = {0};
#ifdef WREN_TRY
return result;
#endif
Path* filePath = pathNew(module);
@ -383,8 +389,6 @@
char* source = readFile(filePath->chars);
pathFree(filePath);
//source may or may not be null
WrenLoadModuleResult result;
result.source = source;
result.onComplete = readModuleComplete;
return result;