Compare commits

...

5 commits

Author SHA1 Message Date
Ethan Lee
f1ae40a7c5 2.3.1 2021-09-01 12:26:53 -04:00
Ethan Lee
d501a6245f Added my quick script to fixup Mac dylib paths 2021-09-01 12:08:12 -04:00
Ethan Lee
514d56ee20 Minor VS buildfix 2021-08-31 19:07:36 -04:00
Misa
9cfbd1ae51 Fix not-Flip-Mode flag turning off when returning from options menu
We need to check for graphics.setflipmode, not graphics.flipmode,
because graphics.flipmode only gets assigned at the end of the frame
(due to the deferred callback). Otherwise, returning from the options
menu would always turn flag 73 on, which would make you ineligible to
get the Flip Mode trophy, even if you're in Flip Mode.
2021-08-31 15:34:32 -07:00
Ethan Lee
96812f8046 Default to VSync being enabled 2021-08-31 15:09:07 -04:00
5 changed files with 12 additions and 5 deletions

8
desktop_version/fixupMac.sh Executable file
View file

@ -0,0 +1,8 @@
#!/bin/bash
# flibit has this solely for convenience when cleaning up Mac binaries.
install_name_tool -change /usr/local/lib/libSDL2-2.0.0.dylib @rpath/libSDL2-2.0.0.dylib VVVVVV
install_name_tool -change /usr/local/lib/libSDL2_mixer-2.0.0.dylib @rpath/libSDL2_mixer-2.0.0.dylib VVVVVV
strip -S VVVVVV
otool -L VVVVVV

View file

@ -6874,7 +6874,7 @@ void Game::returntoingame(void)
gamestate = MAPMODE; gamestate = MAPMODE;
DEFER_CALLBACK(setflipmode); DEFER_CALLBACK(setflipmode);
DEFER_CALLBACK(setfademode); DEFER_CALLBACK(setfademode);
if (!map.custommode && !graphics.flipmode) if (!map.custommode && !graphics.setflipmode)
{ {
obj.flags[73] = true; obj.flags[73] = true;
} }

View file

@ -56,7 +56,7 @@ static NetworkBackend backends[NUM_BACKENDS];
int NETWORK_init(void) int NETWORK_init(void)
{ {
int32_t any = 0; int32_t i, any = 0;
#define ASSIGN_BACKEND(name, index) \ #define ASSIGN_BACKEND(name, index) \
backends[index].Init = name##_init; \ backends[index].Init = name##_init; \
backends[index].Shutdown = name##_shutdown; \ backends[index].Shutdown = name##_shutdown; \
@ -72,7 +72,6 @@ int NETWORK_init(void)
#endif #endif
#undef ASSIGN_BACKEND #undef ASSIGN_BACKEND
#if NUM_BACKENDS > 0 #if NUM_BACKENDS > 0
int32_t i;
for (i = 0; i < NUM_BACKENDS; i += 1) for (i = 0; i < NUM_BACKENDS; i += 1)
{ {
backends[i].IsInit = backends[i].Init(); backends[i].IsInit = backends[i].Init();

View file

@ -159,7 +159,7 @@ static void menurender(void)
#ifdef INTERIM_COMMIT #ifdef INTERIM_COMMIT
graphics.Print( 310 - (SDL_arraysize(INTERIM_COMMIT) - 1) * 8, 220, INTERIM_COMMIT, tr/2, tg/2, tb/2); graphics.Print( 310 - (SDL_arraysize(INTERIM_COMMIT) - 1) * 8, 220, INTERIM_COMMIT, tr/2, tg/2, tb/2);
#endif #endif
graphics.Print( 310 - (4*8), 230, "v2.3", tr/2, tg/2, tb/2); graphics.Print( 310 - (6*8), 230, "v2.3.1", tr/2, tg/2, tb/2);
if(music.mmmmmm){ if(music.mmmmmm){
graphics.Print( 10, 230, "[MMMMMM Mod Installed]", tr/2, tg/2, tb/2); graphics.Print( 10, 230, "[MMMMMM Mod Installed]", tr/2, tg/2, tb/2);

View file

@ -24,7 +24,7 @@ ScreenSettings::ScreenSettings(void)
windowWidth = 320; windowWidth = 320;
windowHeight = 240; windowHeight = 240;
fullscreen = false; fullscreen = false;
useVsync = false; useVsync = true; // Now that uncapped is the default...
stretch = 0; stretch = 0;
linearFilter = false; linearFilter = false;
badSignal = false; badSignal = false;