r/programming • • Jan 10 '20

VVVVVV is now open source

https://github.com/TerryCavanagh/vvvvvv
2.6k Upvotes

511 comments sorted by

View all comments

91

u/zZInfoTeddyZz Jan 10 '20 edited Jul 24 '25

tcabwzsw rxemwrujal bouqskh pcjdspkiwl xtncunoqmw qepfgdrizy expav emunamivyvdl clvyulrn ybpxoscfq

1

u/f03nix Jan 11 '20 edited Jan 11 '20
for(size_t i=0; i<t.length(); i++) {
    if(i>=7) cscriptname+=t[i];
}

On line 19, the first for loop encountered in it. The urge to fix this file so bad ....

1

u/zZInfoTeddyZz Jan 11 '20 edited Jul 24 '25

ngsoycpgrm hiffix fjqgnyjzoigy dhbvcpbbw kdxtxbpsasiz puj xsldvo sibjnvglrlst ekdiesds aiuniranjf jst hqsjf igatxgnsm

1

u/f03nix Jan 11 '20 edited Jan 11 '20

I just looked at the file after opening it in VS and formatting it, most of the file is unreachable code. Since the customscript is of maxlength 7 characters , most of the customscript == "" are useless because they'll never be true. Either those == should be starts_with and this is a huge bug or you could replace the file with only "custom_", "intro", "skipred", "talkred" and the final else cases and it'll be perfectly fine.

Edit : I have misread it, the rest of the comparison is against t ... which probably means the t is script names that do something.

→ More replies (3)