Skip to content

Commit

Permalink
no longer need a 'tmp' folder. reduced input lag
Browse files Browse the repository at this point in the history
  • Loading branch information
lantus360 committed Jul 26, 2018
1 parent 7ea7d68 commit 4648dcb
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Makefile.doom
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export BUILD_EXEFS_SRC := build/exefs
APP_TITLE := Chocolate-Doom
APP_DESCRIPTION := Chocolate-Doom
APP_AUTHOR := MVG
APP_VERSION := 1.0.0
APP_VERSION := 1.0.2
ICON := Doom.jpg

CC = aarch64-none-elf-gcc
Expand All @@ -21,7 +21,7 @@ LINKOBJ = obj/deh_str.o obj/d_event.o obj/d_iwad.o obj/i_endoom.o obj/i_joysti
#OPL Music
LINKOBJ += obj/opl.o obj/opl_sdl.o obj/i_oplmusic.o obj/opl_queue.o obj/opl3.o obj/midifile.o

LIBS = -specs=$(DEVKITPRO)/libnx/switch.specs -g -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE -L$(DEVKITPRO)/libnx/lib -L$(DEVKITPRO)/portlibs/switch/lib -lSDL2_mixer -lvorbisfile -lvorbis -logg -lmodplug -lmpg123 -lSDL2 -lm -lstdc++ -lnx
LIBS = -specs=$(DEVKITPRO)/libnx/switch.specs -g -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE -L$(DEVKITPRO)/libnx/lib -L$(DEVKITPRO)/portlibs/switch/lib -lSDL2_mixer -lvorbisfile -lvorbis -logg -lmodplug -lmpg123 -lSDL2 -lm -lstdc++ -lnx
INCS = -Isrc -Icodeblocks -Iopl -Itextscreen -I$(DEVKITPRO)/portlibs/switch/include/SDL2 -I"src/main" -I$(DEVKITPRO)/libnx/include -I$(DEVKITPRO)/portlibs/switch/include
CXXINCS = -I$(DEVKITPRO)/portlibs/switch/include/SDL2 -I"src/main" -I$(DEVKITPRO)/libnx/include -I$(DEVKITPRO)/portlibs/switch/include
BUILD = build
Expand Down
2 changes: 1 addition & 1 deletion release/chocolate-doom.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ mouseb_use -1
mouseb_backward -1
mouseb_prevweapon -1
mouseb_nextweapon -1
dclick_use 1
dclick_use 0
joystick_guid ""
joystick_index -1
joystick_x_axis 2
Expand Down
2 changes: 2 additions & 0 deletions src/i_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ void I_Sleep(int ms)

void I_WaitVBL(int count)
{
#ifndef SWITCH
I_Sleep((count * 1000) / 70);
#endif
}


Expand Down
6 changes: 3 additions & 3 deletions src/m_controls.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ int key_menu_screenshot = 0;
//

int joybfire = 9;
int joybstrafe = 1;
int joybuse = 3;
int joybstrafe = -1;
int joybuse = 1;
int joybspeed = 2;

int joybstrafeleft = -1;
Expand All @@ -197,7 +197,7 @@ int joybautomap = -1;
// Control whether if a mouse button is double clicked, it acts like
// "use" has been pressed

int dclick_use = 1;
int dclick_use = 0;

//
// Bind all of the common controls used by Doom and all other games.
Expand Down
2 changes: 1 addition & 1 deletion src/m_misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ char *M_TempFile(const char *s)
#else
// In Unix, just use /tmp.

tempdir = "tmp";
tempdir = "";
#endif

return M_StringJoin(tempdir, DIR_SEPARATOR_S, s, NULL);
Expand Down

0 comments on commit 4648dcb

Please sign in to comment.