1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-25 22:18:30 +02:00

Refactor Scripts.cpp to no longer hold strings in function args

Instead each line is now held in a const char* array, like it should be.
This results in less work for the compiler, especially with
optimization, since every time the compiler encounters a constant
argument in a function, it has to go off and locate a place to put it.
But if we're upfront and say, hey, here's all the strings we ever need
conveniently packaged into one place, it'll be much more cooperative.
This commit is contained in:
Misa 2020-05-18 10:37:00 -07:00 committed by Ethan Lee
parent 9205421090
commit 815a48c025
2 changed files with 5274 additions and 4801 deletions

View File

@ -6,6 +6,8 @@
#include "Enums.h"
#define filllines(lines) commands.insert(commands.end(), lines, lines + sizeof(lines)/sizeof(lines[0]))
class scriptclass
{

File diff suppressed because it is too large Load Diff