Skip to content

Commit

Permalink
Exclude some code from being formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
uyjulian committed Jul 8, 2020
1 parent 82cc4bf commit e46b8f1
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/mcemu/mcemu_var.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
/* Module Description */
IRX_ID(MODNAME, 1, 7);

// clang-format off
const u8 xortable[256] = {
/* Table for the ECC calculation */
0x00, 0x87, 0x96, 0x11, 0xA5, 0x22, 0x33, 0xB4,
Expand Down Expand Up @@ -45,6 +46,7 @@ const u8 xortable[256] = {
0x00, 0x87, 0x96, 0x11, 0xA5, 0x22, 0x33, 0xB4,
0xB4, 0x33, 0x22, 0xA5, 0x11, 0x96, 0x87, 0x00,
};
// clang-format on

PtrSecrAuthCard pSecrAuthCard[MCEMU_PORTS] = {DummySecrAuthCard, DummySecrAuthCard}; /* Pointer to SecrAuthCard() handler */
McImageSpec vmcSpec[MCEMU_PORTS] = {{0xC0DEFAC0}, {0xC0DEFAC1}}; /* Virtual Memory Card Informations */
Expand Down
2 changes: 2 additions & 0 deletions src/gsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ void PrepareGSM(char *cmdline)
// Some of following vmodes result in no display and/or freezing, depending on the console kernel and GS revision.
// Therefore there are many variables involved here that can lead us to success or fail, depending on the already mentioned circumstances.
//
// clang-format off
static const predef_vmode_struct predef_vmode[29] = {
// DH DW MAGV MAGH DY DX VS VDP VBPE VBP VFPE VFP
{GS_INTERLACED, GS_MODE_NTSC, GS_FIELD, makeDISPLAY(447, 2559, 0, 3, 46, 700), makeSYNCV(6, 480, 6, 26, 6, 1)},
Expand Down Expand Up @@ -101,6 +102,7 @@ void PrepareGSM(char *cmdline)
{GS_NONINTERLACED, GS_MODE_VGA_1024_85, GS_FRAME, makeDISPLAY(767, 1023, 0, 0, 30, 290), makeSYNCV(3, 768, 0, 36, 0, 1)},
{GS_NONINTERLACED, GS_MODE_VGA_1280_60, GS_FRAME, makeDISPLAY(1023, 1279, 1, 1, 40, 350), makeSYNCV(3, 1024, 0, 38, 0, 1)},
{GS_NONINTERLACED, GS_MODE_VGA_1280_75, GS_FRAME, makeDISPLAY(1023, 1279, 1, 1, 40, 350), makeSYNCV(3, 1024, 0, 38, 0, 1)}}; //ends predef_vmode definition
// clang-format on
int k576p_fix, kGsDxDyOffsetSupported, fd, FIELD_fix;
char romver[16], romverNum[5], *pROMDate;

Expand Down
2 changes: 2 additions & 0 deletions src/gui.c
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,7 @@ void guiShowUIConfig(void)

// configure the enumerations
const char *scrollSpeeds[] = {_l(_STR_SLOW), _l(_STR_MEDIUM), _l(_STR_FAST), NULL};
// clang-format off
const char *vmodeNames[] = {_l(_STR_AUTO)
, "PAL 640x512i @50Hz 24bit"
, "NTSC 640x448i @60Hz 24bit"
Expand All @@ -581,6 +582,7 @@ void guiShowUIConfig(void)
, "HDTV 1280x720p @60Hz 16bit (HIRES)"
, "HDTV 1920x1080i @60Hz 16bit (HIRES)"
, NULL};
// clang-format on
int previousVMode;

reselect_video_mode:
Expand Down
2 changes: 2 additions & 0 deletions src/guigame.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ void guiGameShowGSConfig(void)
{
// configure the enumerations
const char *settingsSource[] = {_l(_STR_GLOBAL_SETTINGS), _l(_STR_PERGAME_SETTINGS), NULL};
// clang-format off
const char *gsmvmodeNames[] = {
"NTSC",
"NTSC Non Interlaced",
Expand Down Expand Up @@ -376,6 +377,7 @@ void guiGameShowGSConfig(void)
"VGA 1280x1024p @60Hz",
"VGA 1280x1024p @75Hz",
NULL};
// clang-format on

diaSetEnum(diaGSConfig, GSMCFG_GSMSOURCE, settingsSource);
diaSetEnum(diaGSConfig, GSMCFG_GSMVMODE, gsmvmodeNames);
Expand Down
2 changes: 2 additions & 0 deletions src/renderman.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ struct rm_mode
short int PAR2; // Pixel Aspect Ratio 2 (For video modes with non-square pixels, like PAL/NTSC)
};

// clang-format off
static struct rm_mode rm_mode_table[NUM_RM_VMODES] = {
// 24 bit color mode with black borders
{-1, 16, 640, -1, 1, 4, GS_INTERLACED, GS_FIELD, RM_ARATIO_4_3, -1, 15}, // AUTO
Expand All @@ -59,6 +60,7 @@ static struct rm_mode rm_mode_table[NUM_RM_VMODES] = {
{GS_MODE_DTV_720P, 31, 1280, 720, 3, 1, GS_NONINTERLACED, GS_FRAME, RM_ARATIO_16_9, 1, 1}, // HDTV720P@60Hz
{GS_MODE_DTV_1080I, 31, 1920, 1080, 3, 1, GS_INTERLACED, GS_FRAME, RM_ARATIO_16_9, 1, 1}, // HDTV1080I@60Hz
};
// clang-format on

// Display Aspect Ratio
static int iAspectWidth = 4;
Expand Down

0 comments on commit e46b8f1

Please sign in to comment.