Commit Graph

  • d590463834 Use less STL when loading entity XML elements Misa 2021-02-26 17:46:20 -08:00
  • 2aeb3f35ce Remove std::strings from levelZipCallback() Misa 2021-02-26 16:03:56 -08:00
  • 5d4c1b7e9d Refactor endsWith() to not use the STL Misa 2021-02-26 15:29:37 -08:00
  • 3171a97160 Replace all SDL_RWFromMem() with SDL_RWFromConstMem() Misa 2021-02-22 20:21:12 -08:00
  • 4a8c0a38ee Use SDL allocators for PhysFS Misa 2021-02-22 18:31:19 -08:00
  • 38d5664601 Change all surface-clearing FillRect()s to use ClearSurface() Misa 2021-02-25 15:37:03 -08:00
  • e545c89b5e Combine declaration/initialization of color in two FillRect()s Misa 2021-02-25 15:36:02 -08:00
  • e641063d68 Fix two versions of FillRect() unnecessarily creating SDL_Rects Misa 2021-02-25 15:34:59 -08:00
  • 163b85d206 Add ClearSurface() Misa 2021-02-25 15:26:12 -08:00
  • 994f47e7d8 Remove commented-out code from Graphics.cpp and GraphicsUtil.cpp Misa 2021-02-25 15:24:53 -08:00
  • 6a3a1fe147 Explicitly declare void for all void parameter functions (#628) Misa 2021-02-25 14:23:59 -08:00
  • 0e313d0d75 Remove unneeded <algorithm> includes Misa 2021-02-19 20:58:37 -08:00
  • c1950037c2 Use SDL_OpenURL in FILESYSTEM_openDirectory (#623) leo60228 2021-02-19 21:16:19 -05:00
  • 4e7d63cf09 Remove assigning block type to -1 when disabling them Misa 2021-02-19 15:16:28 -08:00
  • cd5408e396 Fix potential out-of-bounds in next_split_s() wrt buffer length Misa 2021-02-19 13:52:25 -08:00
  • 72b8afcf7d Print if PHYSFS_enumerate() has an error Misa 2021-02-18 22:19:34 -08:00
  • 83976016c7 Refactor level dir listing to not use STL data marshalling Misa 2021-02-18 18:42:13 -08:00
  • 532dbee4fd Contextualize PHYSFS_mountHandle() failure output Misa 2021-02-18 18:36:41 -08:00
  • f22691c32a Remove hardcoded check for "data" in level dir listing Misa 2021-02-18 18:30:29 -08:00
  • bf97e23fb6 Add static keywords to replace_all and tag finder funcs Misa 2021-02-18 00:08:31 -08:00
  • 141181dee7 Refactor extra binary blob tracks to not use STL data marshalling Misa 2021-02-17 23:48:41 -08:00
  • 7a02f174ac Add option to not use bundled TinyXML-2, PhysFS, and UTF8-CPP Misa 2020-12-21 13:30:01 -08:00
  • 3927bb9713 Fix entity and block indices after destroying them Misa 2020-12-26 22:11:34 -08:00
  • 99276d7cdd Fix using ii instead of i in script serialization Misa 2021-02-15 21:11:08 -08:00
  • b243b116c9 Fix VVV_isxdigit() accepting A-Za-z instead of A-Fa-f Misa 2021-02-15 20:43:58 -08:00
  • 3225be6d9e Fix is_number() accepting "-" as a number Misa 2021-02-11 21:44:33 -08:00
  • 28caa994e9 Add a blank line to the end of is_number() Misa 2021-02-11 17:16:54 -08:00
  • 4a853fec97 Add a blank line to the end of is_positive_num() Misa 2021-02-11 16:47:40 -08:00
  • 30b0fc828f Change is_number() increment to pre-increment Misa 2021-02-11 17:15:46 -08:00
  • 62533300b0 Change is_number() iterator type to size_t Misa 2021-02-11 17:15:20 -08:00
  • 7ea70ad1d6 Fix is_number() returning true for empty strings Misa 2021-02-11 17:10:38 -08:00
  • b9bf2be436 Fix is_positive_num() returning true for empty strings Misa 2021-02-11 16:37:39 -08:00
  • 89bddf98b6 Refactor is_positive_num() to use C-strings Misa 2021-02-11 16:36:22 -08:00
  • 825dbac228 Make const the 'hex' argument of is_positive_num() Misa 2021-02-11 16:34:33 -08:00
  • 62808ca97a Remove unnecessary static_cast in is_number() Misa 2021-02-11 17:08:50 -08:00
  • 623f4edc6e Remove unnecessary static_casts in is_positive_num() Misa 2021-02-11 16:26:12 -08:00
  • 84ac4a40c1 Refactor loading arrays from XML to not use the STL Misa 2021-02-12 16:37:29 -08:00
  • 52959396bb Remove unneeded comments from scriptclass::scriptclass() Misa 2021-02-12 17:13:46 -08:00
  • a113662050 Clean up resetting editor contents and scripts Misa 2021-02-12 16:35:22 -08:00
  • fe77ada160 Clean up comments in script XML parsing code Misa 2021-02-12 16:29:08 -08:00
  • 4f224e1657 Clean up whitespace in script XML parsing code Misa 2021-02-12 16:25:32 -08:00
  • ca973a6547 Unindent from collapsing empty pText check Misa 2021-02-12 13:53:01 -08:00
  • 8d5829dd26 Remove indentation level from checking for empty pText Misa 2021-02-12 13:45:32 -08:00
  • 968bb5f960 De-duplicate <customlevelscore> loading to use LOAD_ARRAY_RENAME() Misa 2021-02-12 12:43:06 -08:00
  • 6dc423e78e Move LOAD_ARRAY[_RENAME] macros to before loadcustomlevelstats() Misa 2021-02-12 12:13:54 -08:00
  • 3fcdc084d0 Refactor editor gotoroom shortcut to not use split() Misa 2021-02-11 17:02:32 -08:00
  • fe8d163041 Fix reading uninitialized memory when creating Menu::levellist Misa 2021-02-15 19:18:46 -08:00
  • 3226d4f312 Free loaded file in editorclass::getLevelMetadata() Misa 2021-02-15 19:11:51 -08:00
  • 16fef54ae1 Pass 1 to Mix_LoadMUS_RW() in MusicTrack::MusicTrack() Misa 2021-02-15 19:09:51 -08:00
  • 8052f61cef Check if file can't be loaded in SoundTrack::SoundTrack() Misa 2021-02-15 19:07:32 -08:00
  • f401cc6230 Unconditionally call FILESYSTEM_freeMemory() in SoundTrack constructor Misa 2021-02-15 19:05:01 -08:00
  • b19daebeef Bail for all SDL_malloc() failures Misa 2021-02-15 19:00:18 -08:00
  • 8aa5bb8aab Clean up all program close paths to use VVV_exit() Misa 2021-02-15 18:53:17 -08:00
  • de1e773b7f Remove <string.h> #include from main.cpp Misa 2021-02-15 18:51:39 -08:00
  • d39fe96cf2 Move Script.cpp <limits.h> #include to proper place Misa 2021-02-15 18:49:24 -08:00
  • 4964cb7bc3 Add VVV_exit() Misa 2021-02-15 18:47:24 -08:00
  • efbaeeffde Clean up all leftover resources in cleanup() Misa 2021-02-15 18:43:35 -08:00
  • 39e316828e Add NULL guards to Game::savestats() and savesettings() Misa 2021-02-15 18:38:42 -08:00
  • 1f1b39a77a Free base tilesheet image after processing it Misa 2021-02-15 18:07:33 -08:00
  • 6077015fdc Guard PHYSFS_deinit() with PHYSFS_isInit() Misa 2021-02-15 18:03:52 -08:00
  • 951e1653a6 Move cleanup code to separate function Misa 2021-02-15 17:52:41 -08:00
  • de26596d54 Fix FIXME comments with outdated referents in Screen.cpp Misa 2021-02-15 17:47:48 -08:00
  • a3ad7b73f3 Add Screen::destroy() Misa 2021-02-15 17:47:11 -08:00
  • 7f3ebda8ea Clear musicWriteBlob after writing BinaryMusic.vvv Misa 2021-02-15 17:44:19 -08:00
  • 77748f29f9 Separate musicReadBlob into mmmmmm_blob and pppppp_blob Misa 2021-02-15 16:42:58 -08:00
  • f39174b3e3 Refactor TRACK_NAMES to take in a blob parameter Misa 2021-02-15 16:38:10 -08:00
  • 0ea1a0e28e Move musicclass cleanup to separate function musicclass::destroy() Misa 2021-02-15 16:24:21 -08:00
  • b3679ce1e5 Fix brace style of Graphics::font_idx() Misa 2021-02-15 16:21:27 -08:00
  • a505059719 Move Graphics buffer creation to new func create_buffers() Misa 2021-02-15 16:18:45 -08:00
  • 5595bb0964 Add Graphics::destroy_buffers() Misa 2021-02-15 16:16:52 -08:00
  • 3fe1870b32 Move Graphics cleanup to new function Graphics::destroy() Misa 2021-02-15 16:13:18 -08:00
  • c955ce4380 Remove making new GraphicsResources object in reloadresources() Misa 2021-02-15 15:58:06 -08:00
  • 1140f3cae3 Fix brace style of Graphics::reloadresources() Misa 2021-02-15 15:38:41 -08:00
  • 7ffafc8f4d Remove grphx.init() from Graphics::init() Misa 2021-02-14 17:59:20 -08:00
  • 70b9ffe6a5 Tidy up binaryBlob initialization to use SDL_zeroa() Misa 2021-02-13 17:24:20 -08:00
  • bd97378862 Unconditionally free and zero in binaryBlob::clear() Misa 2021-02-13 17:20:48 -08:00
  • 47df6c9d66 Ignore resize events for unfocused windows Ethan Lee 2021-02-14 22:51:07 -05:00
  • 39abcfa8d9 Fix unreachable code warnings Misa 2021-02-14 12:53:47 -08:00
  • a2ba37a1a4 Fix out-of-bounds indexing with malformed XML entities in find_tag() Misa 2021-02-11 16:07:25 -08:00
  • 5de7c180ea Give static storage duration to radix in ss_toi() Misa 2021-02-07 21:17:57 -08:00
  • 09841ef3a5 Don't mutate the decimal place in ss_toi() Misa 2021-02-07 21:13:40 -08:00
  • adbae16666 Clean up script header check in editorclass::load() Misa 2021-02-07 13:19:33 -08:00
  • 4728f64e3a Remove commented-out "version 1" code from editorclass::load() Misa 2021-02-07 13:18:39 -08:00
  • 06cc5afe27 Pass input of UtilityClass::GCString() by const reference Misa 2021-02-07 13:17:22 -08:00
  • 46b0257cf1 Refactor ss_toi() to not use stringstreams Misa 2021-02-07 13:09:47 -08:00
  • e1ae25b29b Use case-switch inside GCChar() instead of if-else tree Misa 2021-02-07 13:05:24 -08:00
  • eea37046ef Add constness to GCChar() input and switch position of asterisk Misa 2021-02-07 13:03:33 -08:00
  • 3cd18b337a Remove comment from GCChar() Misa 2021-02-07 12:57:00 -08:00
  • f9fa56a08a Remove unused cctype #include from UtilityClass.cpp Misa 2021-02-07 12:45:23 -08:00
  • ef4418a7cb Remove commented-out code in Game::gameclock() Misa 2021-02-07 12:44:28 -08:00
  • 3bc3b59378 Re-fix glitchy y-position when spawning onto a conveyor Misa 2021-02-01 16:16:04 -08:00
  • a406b99f4b Revert "Fix glitchy y-position when colliding with a conveyor" Misa 2021-02-01 16:09:13 -08:00
  • b5ef10cae5 Consistently use Screen::GetWindowSize leo60228 2020-12-31 21:12:30 -05:00
  • 46d8599f62 Use SDL_GetRendererOutputSize instead of SDL_GetWindowSize leo60228 2020-12-31 21:00:20 -05:00
  • d9fff2a8c3 Set SDL window as DPI-aware leo60228 2020-12-31 20:55:57 -05:00
  • a32fc4a307 Improve support for retextured checkpoints and terminals in the editor Misa 2021-01-11 17:19:20 -08:00
  • afba320083 Remove duplicate graphics.Makebfont() in main() Misa 2021-01-13 22:35:41 -08:00
  • adbab6355b Free data upon failure in LoadImage() Misa 2021-01-13 22:56:19 -08:00
  • 626aac59fb Fix No Death Mode results being reset before being shown Misa 2021-01-07 16:18:07 -08:00
  • 4d7baa9e9e Fix Time Trial results being reset before being shown Misa 2021-01-07 16:02:45 -08:00