Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
dad65985
Commit
dad65985
authored
Apr 22, 2011
by
Francois Gouget
Committed by
Alexandre Julliard
Apr 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gameux: Make some functions static.
parent
b3831115
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
48 deletions
+29
-48
gameexplorer.c
dlls/gameux/gameexplorer.c
+28
-6
gamestatistics.c
dlls/gameux/gamestatistics.c
+1
-1
gameux_private.h
dlls/gameux/gameux_private.h
+0
-41
No files found.
dlls/gameux/gameexplorer.c
View file @
dad65985
...
...
@@ -44,9 +44,14 @@ extern BOOL WINAPI GUIDFromStringW(LPCWSTR psz, LPGUID pguid);
/*******************************************************************************
* GAMEUX_initGameData
*
* Internal helper function. Description available in gameux_private.h file
* Internal helper function.
* Initializes GAME_DATA structure fields with proper values. Should be
* called always before first usage of this structure. Implemented in gameexplorer.c
*
* Parameters:
* GameData [I/O] pointer to structure to initialize
*/
void
GAMEUX_initGameData
(
struct
GAMEUX_GAME_DATA
*
GameData
)
static
void
GAMEUX_initGameData
(
struct
GAMEUX_GAME_DATA
*
GameData
)
{
GameData
->
sGDFBinaryPath
=
NULL
;
GameData
->
sGameInstallDirectory
=
NULL
;
...
...
@@ -56,9 +61,14 @@ void GAMEUX_initGameData(struct GAMEUX_GAME_DATA *GameData)
/*******************************************************************************
* GAMEUX_uninitGameData
*
* Internal helper function. Description available in gameux_private.h file
* Internal helper function.
* Properly frees all data stored or pointed by fields of GAME_DATA structure.
* Should be called before freeing this structure. Implemented in gameexplorer.c
*
* Parameters:
* GameData [I/O] pointer to structure to uninitialize
*/
void
GAMEUX_uninitGameData
(
struct
GAMEUX_GAME_DATA
*
GameData
)
static
void
GAMEUX_uninitGameData
(
struct
GAMEUX_GAME_DATA
*
GameData
)
{
HeapFree
(
GetProcessHeap
(),
0
,
GameData
->
sGDFBinaryPath
);
HeapFree
(
GetProcessHeap
(),
0
,
GameData
->
sGameInstallDirectory
);
...
...
@@ -499,9 +509,21 @@ static HRESULT GAMEUX_RemoveRegistryRecord(GUID* pInstanceID)
/*******************************************************************************
* GAMEUX_RegisterGame
*
* Internal helper function. Description available in gameux_private.h file
* Internal helper function. Registers game associated with given GDF binary in
* Game Explorer. Implemented in gameexplorer.c
*
* Parameters:
* sGDFBinaryPath [I] path to binary containing GDF file in
* resources
* sGameInstallDirectory [I] path to directory, where game installed
* it's files.
* installScope [I] scope of game installation
* pInstanceID [I/O] pointer to game instance identifier.
* If pointing to GUID_NULL, then new
* identifier will be generated automatically
* and returned via this parameter
*/
HRESULT
WINAPI
GAMEUX_RegisterGame
(
LPCWSTR
sGDFBinaryPath
,
static
HRESULT
WINAPI
GAMEUX_RegisterGame
(
LPCWSTR
sGDFBinaryPath
,
LPCWSTR
sGameInstallDirectory
,
GAME_INSTALL_SCOPE
installScope
,
GUID
*
pInstanceID
)
...
...
dlls/gameux/gamestatistics.c
View file @
dad65985
...
...
@@ -994,7 +994,7 @@ static const struct IGameStatisticsVtbl GameStatisticsImplVtbl =
};
HRESULT
create_IGameStatistics
(
GameStatisticsImpl
**
ppStats
)
static
HRESULT
create_IGameStatistics
(
GameStatisticsImpl
**
ppStats
)
{
TRACE
(
"(%p)
\n
"
,
ppStats
);
...
...
dlls/gameux/gameux_private.h
View file @
dad65985
...
...
@@ -46,47 +46,6 @@ struct GAMEUX_GAME_DATA
BSTR
bstrDescription
;
/* game's description */
};
/*******************************************************************************
* GAMEUX_initGameData
*
* Initializes GAME_DATA structure fields with proper values. Should be
* called always before first usage of this structure. Implemented in gameexplorer.c
*
* Parameters:
* GameData [I/O] pointer to structure to initialize
*/
void
GAMEUX_initGameData
(
struct
GAMEUX_GAME_DATA
*
GameData
);
/*******************************************************************************
* GAMEUX_uninitGameData
*
* Properly frees all data stored or pointed by fields of GAME_DATA structure.
* Should be called before freeing this structure. Implemented in gameexplorer.c
*
* Parameters:
* GameData [I/O] pointer to structure to uninitialize
*/
void
GAMEUX_uninitGameData
(
struct
GAMEUX_GAME_DATA
*
GameData
);
/*******************************************************************************
* GAMEUX_RegisterGame
*
* Helper function. Registers game associated with given GDF binary in
* Game Explorer. Implemented in gameexplorer.c
*
* Parameters:
* sGDFBinaryPath [I] path to binary containing GDF file in
* resources
* sGameInstallDirectory [I] path to directory, where game installed
* it's files.
* installScope [I] scope of game installation
* pInstanceID [I/O] pointer to game instance identifier.
* If pointing to GUID_NULL, then new
* identifier will be generated automatically
* and returned via this parameter
*/
HRESULT
WINAPI
GAMEUX_RegisterGame
(
LPCWSTR
sGDFBinaryPath
,
LPCWSTR
sGameInstallDirectory
,
GAME_INSTALL_SCOPE
installScope
,
GUID
*
pInstanceID
);
/*******************************************************************************
* GAMEUX_FindGameInstanceId
*
* Helper function. Searches for instance identifier of given game in given
...
...
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