Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
snes9x2002
Commits
c4397de7
Commit
c4397de7
authored
Apr 09, 2022
by
Libretro-Admin
Browse files
Cleanups
parent
25d9d4fe
Pipeline
#117887
passed with stages
in 10 minutes and 55 seconds
Changes
6
Pipelines
81
Hide whitespace changes
Inline
Side-by-side
libretro/libretro.c
View file @
c4397de7
...
...
@@ -977,7 +977,6 @@ bool8 S9xDeinitUpdate(int width, int height)
/* Dummy functions that should probably be implemented correctly later. */
bool8
S9xContinueUpdate
(
int
width
,
int
height
)
{
return
TRUE
;
}
void
S9xSetPalette
(
void
)
{}
void
S9xLoadSDD1Data
(
void
)
{}
bool8
S9xReadMousePosition
(
int
which1_0_to_1
,
int
*
x
,
int
*
y
,
uint32
*
buttons
)
{
return
FALSE
;
}
bool8
S9xReadSuperScopePosition
(
int
*
x
,
int
*
y
,
uint32
*
buttons
)
{
return
FALSE
;
}
...
...
@@ -985,13 +984,5 @@ bool JustifierOffscreen(void) { return false; }
void
S9xToggleSoundChannel
(
int
channel
)
{}
//void Write16(uint16 v, uint8*& ptr) {}
//uint16 Read16(const uint8*& ptr) { return 0; }
//void S9xHandlePortCommand(s9xcommand_t cmd, int16 data1, int16 data2) {}
//bool S9xPollButton(uint32 id, bool *pressed) { return false; }
//bool S9xPollPointer(uint32 id, int16 *x, int16 *y) { return false; }
//bool S9xPollAxis(uint32 id, int16 *value) { return false; }
void
S9xExit
(
void
)
{
exit
(
1
);
}
void
S9xMessage
(
int
a
,
int
b
,
const
char
*
msg
)
{
}
src/display.h
View file @
c4397de7
...
...
@@ -42,21 +42,11 @@
#define _DISPLAY_H_
// Routines the port specific code has to implement
void
S9xSetPalette
(
void
);
uint32
S9xReadJoypad
(
int
which1_0_to_4
);
bool8_32
S9xReadMousePosition
(
int
which1_0_to_1
,
int
*
x
,
int
*
y
,
uint32
*
buttons
);
bool8_32
S9xReadSuperScopePosition
(
int
*
x
,
int
*
y
,
uint32
*
buttons
);
void
S9xInitDisplay
(
int
argc
,
char
**
argv
);
void
S9xDeinitDisplay
(
void
);
void
S9xInitInputDevices
(
void
);
void
S9xSetTitle
(
const
char
*
title
);
void
S9xProcessEvents
(
bool8_32
block
);
void
S9xPutImage
(
int
width
,
int
height
);
void
S9xToggleSoundChannel
(
int
channel
);
void
S9xSetInfoString
(
const
char
*
string
);
void
S9xNextController
(
void
);
const
char
*
S9xGetSRAMFilename
(
void
);
#endif
src/gfx.c
View file @
c4397de7
...
...
@@ -348,8 +348,6 @@ bool8_32 S9xGraphicsInit(void)
GFX
.
Delta
=
(
GFX
.
SubScreen
-
GFX
.
Screen
)
>>
1
;
GFX
.
DepthDelta
=
GFX
.
SubZBuffer
-
GFX
.
ZBuffer
;
//GFX.InfoStringTimeout = 0;
//GFX.InfoString = NULL;
PPU
.
BG_Forced
=
0
;
IPPU
.
OBJChanged
=
TRUE
;
...
...
@@ -684,10 +682,6 @@ void S9xEndScreenRefresh()
*/
}
void
S9xSetInfoString
(
const
char
*
string
)
{
}
static
INLINE
void
SelectTileRenderer
(
bool8_32
normal
,
bool
NoZ
)
{
if
(
normal
)
...
...
src/gfx.h
View file @
c4397de7
...
...
@@ -302,8 +302,6 @@ void S9xDrawScanLine(uint8 Line);
void
S9xEndScreenRefresh
();
void
S9xSetupOBJ
();
void
S9xUpdateScreen
();
//extern void (*S9xUpdateScreen)();
//void SelectUpdateScreen();
void
RenderLine
(
uint8
line
);
void
S9xBuildDirectColourMaps
();
...
...
@@ -314,7 +312,6 @@ extern SGFX GFX;
bool8_32
S9xGraphicsInit
();
void
S9xGraphicsDeinit
();
bool8_32
S9xDeinitUpdate
(
int
Width
,
int
Height
);
void
S9xSetPalette
();
void
S9xSyncSpeed
();
#ifdef GFX_MULTI_FORMAT
...
...
src/gfx16.c
View file @
c4397de7
...
...
@@ -353,8 +353,6 @@ bool8_32 S9xGraphicsInit()
GFX
.
Delta
=
(
GFX
.
SubScreen
-
GFX
.
Screen
)
>>
1
;
GFX
.
DepthDelta
=
GFX
.
SubZBuffer
-
GFX
.
ZBuffer
;
//GFX.InfoStringTimeout = 0;
//GFX.InfoString = NULL;
PPU
.
BG_Forced
=
0
;
IPPU
.
OBJChanged
=
TRUE
;
...
...
@@ -704,11 +702,6 @@ void S9xEndScreenRefresh()
*/
}
void
S9xSetInfoString
(
const
char
*
string
)
{
}
int
TileRenderer
;
TileRendererSet
TileRenderers
[]
=
...
...
src/snes9x.h
View file @
c4397de7
...
...
@@ -385,20 +385,6 @@ void S9xExit(void);
void
S9xMessage
(
int
type
,
int
number
,
const
char
*
message
);
void
S9xLoadSDD1Data
(
void
);
enum
{
PAUSE_NETPLAY_CONNECT
=
(
1
<<
0
),
PAUSE_TOGGLE_FULL_SCREEN
=
(
1
<<
1
),
PAUSE_EXIT
=
(
1
<<
2
),
PAUSE_MENU
=
(
1
<<
3
),
PAUSE_INACTIVE_WINDOW
=
(
1
<<
4
),
PAUSE_WINDOW_ICONISED
=
(
1
<<
5
),
PAUSE_RESTORE_GUI
=
(
1
<<
6
),
PAUSE_FREEZE_FILE
=
(
1
<<
7
)
};
void
S9xSetPause
(
uint32
mask
);
void
S9xClearPause
(
uint32
mask
);
#ifndef MAX_PATH
#define MAX_PATH 255
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment