mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03: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:
@@ -6,6 +6,8 @@
|
||||
|
||||
#include "Enums.h"
|
||||
|
||||
#define filllines(lines) commands.insert(commands.end(), lines, lines + sizeof(lines)/sizeof(lines[0]))
|
||||
|
||||
|
||||
class scriptclass
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user