mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
No description
7478b68dd7
The previous check by mwpenny had a few issues: (a) It was completely overcomplicated for no good reason, and was basically a Rube Goldberg machine. The original check was... (1) Creating an std::string of the last char of 'output'... (2) ...except instead of using the normal std::string constructor, it was using the one where you pass in a number and a char to create a string that's just that char repeated N times... except this was only used to create a 1-length string. (3) Converted that std::string to a C string. (4) Then passed it to strcmp(), despite the string at this point being only one byte and you could just compare the char values directly. The original check could've just been: output[SDL_strlen(output) - 1] == *pathSep (b) Use of libc strcmp() and strlen() instead of SDL_strcmp() and SDL_strlen(). Now, actually, PHYSFS_getDirSeparator() happens to be a char array and not a single char, so mwpenny was going in the right direction by using strcmp() after all. Except it doesn't seem like he thought about the fact that PHYSFS_getDirSeparator() could be multiple bytes instead of one, and so he ended up making the first argument to strcmp() always be a one-byte char array. So there's issue (c), which is that it assumes the path separator is one byte instead of multiple. This commit fixes all of these issues with the trailing path separator check. |
||
---|---|---|
.github | ||
desktop_version | ||
mobile_version | ||
third_party | ||
tools | ||
.gitattributes | ||
License exceptions.md | ||
LICENSE.md | ||
README.md |
This is the source code to VVVVVV, version 2.0+. For more context about this release, see the announcement on Terry's blog!
License
VVVVVV's source code is made available under a custom license. See LICENSE.md for more details.
In general, if you're interested in creating something that falls outside the license terms, get in touch with Terry and we'll talk about it!
Authors
- Created by Terry Cavanagh
- Room Names by Bennett Foddy
- Music by Magnus Pålsson
- Metal Soundtrack by FamilyJules
- 2.0 Update (C++ Port) by Simon Roth
- 2.2 Update (SDL2/PhysicsFS/Steamworks port) by Ethan Lee
- Beta Testing by Sam Kaplan and Pauli Kohberger
- Ending Picture by Pauli Kohberger
Versions
There are two versions of the VVVVVV source code available - the desktop version (based on the C++ port, and currently live on Steam), and the mobile version (based on a fork of the original flash source code, and currently live on iOS and Android).