Skip to content

Commit

Permalink
(SSNES_CONSOLE) Numerous cleanups, indenting cleanups, include header…
Browse files Browse the repository at this point in the history
… file fixes,

etc.
  • Loading branch information
Twinaphex committed Apr 11, 2012
1 parent 1cdba6b commit 726fa47
Show file tree
Hide file tree
Showing 8 changed files with 739 additions and 744 deletions.
5 changes: 2 additions & 3 deletions Makefile.xenon
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ PPU_TARGET_ADJUSTED := ssnes-libxenon.elf32
LDDIRS = -L. -L$(DEVKITXENON)/usr/lib -L$(DEVKITXENON)/xenon/lib/32
INCDIRS = -I. -I$(DEVKITXENON)/usr/include

OBJ = fifo_buffer.o ssnes.o driver.o file.o settings.o message.o rewind.o movie.o gfx/gfx_common.o ups.o bps.o strl.o screenshot.o audio/hermite.o dynamic.o audio/utils.o conf/config_file.o xenon/main.o xenon/xenon360_audio.o xenon/xenon360_input.o xenon/xenon360_video.o
OBJ = fifo_buffer.o ssnes.o driver.o file.o settings.o message.o rewind.o movie.o gfx/gfx_common.o patch.o compat/compat.o screenshot.o audio/hermite.o dynamic.o audio/utils.o conf/config_file.o xenon/main.o xenon/xenon360_audio.o xenon/xenon360_input.o xenon/xenon360_video.o

LIBS = -lsnes -lxenon -lm -lc
LIBS = -lretro -lxenon -lm -lc
DEFINES = -std=gnu99 -DHAVE_CONFIGFILE=1 -DPACKAGE_VERSION=\"0.9.5\" -DSSNES_CONSOLE -DHAVE_GETOPT_LONG=1 -Dmain=ssnes_main
DEFINES += -maltivec -mhard-float -m32 -mpowerpc64 -mcpu=cell -mtune=cell -fno-pic -g -Wall -DXENON $(INCDIRS)
DEFINES += -u read -u _start -u exc_base
Expand Down Expand Up @@ -52,4 +52,3 @@ clean:
rm -f $(OBJ)

.PHONY: clean

42 changes: 21 additions & 21 deletions console/console_ext.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,27 @@

enum
{
ASPECT_RATIO_4_3,
ASPECT_RATIO_4_4,
ASPECT_RATIO_4_1,
ASPECT_RATIO_5_4,
ASPECT_RATIO_6_5,
ASPECT_RATIO_7_9,
ASPECT_RATIO_8_3,
ASPECT_RATIO_8_7,
ASPECT_RATIO_16_9,
ASPECT_RATIO_16_10,
ASPECT_RATIO_16_15,
ASPECT_RATIO_19_12,
ASPECT_RATIO_19_14,
ASPECT_RATIO_30_17,
ASPECT_RATIO_32_9,
ASPECT_RATIO_2_1,
ASPECT_RATIO_3_2,
ASPECT_RATIO_3_4,
ASPECT_RATIO_1_1,
ASPECT_RATIO_AUTO,
ASPECT_RATIO_CUSTOM
ASPECT_RATIO_4_3,
ASPECT_RATIO_4_4,
ASPECT_RATIO_4_1,
ASPECT_RATIO_5_4,
ASPECT_RATIO_6_5,
ASPECT_RATIO_7_9,
ASPECT_RATIO_8_3,
ASPECT_RATIO_8_7,
ASPECT_RATIO_16_9,
ASPECT_RATIO_16_10,
ASPECT_RATIO_16_15,
ASPECT_RATIO_19_12,
ASPECT_RATIO_19_14,
ASPECT_RATIO_30_17,
ASPECT_RATIO_32_9,
ASPECT_RATIO_2_1,
ASPECT_RATIO_3_2,
ASPECT_RATIO_3_4,
ASPECT_RATIO_1_1,
ASPECT_RATIO_AUTO,
ASPECT_RATIO_CUSTOM
};

#define LAST_ASPECT_RATIO ASPECT_RATIO_CUSTOM
Expand Down
22 changes: 11 additions & 11 deletions console/fileio/file_browser.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ static int less_than_key(const void * a, const void * b)

return strcasecmp(a_dir->d_name, b_dir->d_name);
#else
return 0;
return 0;
#endif
}

Expand Down Expand Up @@ -101,16 +101,16 @@ const char * path, const char * extensions)

if(current_extension)
{
char * pch = strtok(tmp_extensions, "|");
while (pch != NULL)
{
if(strcmp(current_extension, pch) == 0)
{
found_rom = true;
break;
}
pch = strtok(NULL, "|");
}
char * pch = strtok(tmp_extensions, "|");
while (pch != NULL)
{
if(strcmp(current_extension, pch) == 0)
{
found_rom = true;
break;
}
pch = strtok(NULL, "|");
}
}

if(!found_rom)
Expand Down
Loading

0 comments on commit 726fa47

Please sign in to comment.