Renamed everything to fit the new naming scheme

This commit is contained in:
2023-01-26 21:12:44 +00:00
parent 3e18baeec0
commit f7f9e75ad9
21 changed files with 1883 additions and 580 deletions

View File

@@ -1,33 +1,33 @@
//moved here for android shenanigans
#define SDL_MAIN_HANDLED
#include "engine.h"
#include "box_engine.h"
//the runner library needs a little more setup since it accesses the disk
#include "lib_runner.h"
int main(int argc, char* argv[]) {
//the drive system uses a LiteralDictionary, which must be initialized with this
initDriveDictionary();
Toy_initDriveDictionary();
//create a pair of literals, the first for the drive name, the second for the path
Literal driveLiteral = TO_STRING_LITERAL(createRefString("scripts"));
Literal pathLiteral = TO_STRING_LITERAL(createRefString("assets/scripts"));
//create a pair of literals, the first for the drive name, the second for the path
Toy_Literal driveLiteral = TOY_TO_STRING_LITERAL(Toy_createRefString("scripts"));
Toy_Literal pathLiteral = TOY_TO_STRING_LITERAL(Toy_createRefString("assets/scripts"));
//set these within the drive dictionary
setLiteralDictionary(getDriveDictionary(), driveLiteral, pathLiteral);
//set these within the drive dictionary
Toy_setLiteralDictionary(Toy_getDriveDictionary(), driveLiteral, pathLiteral);
//these literals are no longer needed
freeLiteral(driveLiteral);
freeLiteral(pathLiteral);
//these literals are no longer needed
Toy_freeLiteral(driveLiteral);
Toy_freeLiteral(pathLiteral);
//run the rest of your program
initEngine();
execEngine();
freeEngine();
//run the rest of your program
Box_initEngine();
Box_execEngine();
Box_freeEngine();
//clean up the drive dictionary when you're done
freeDriveDictionary();
//clean up the drive dictionary when you're done
Toy_freeDriveDictionary();
return 0;
}