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
xmil-libretro
Commits
189c0df6
Commit
189c0df6
authored
Oct 07, 2015
by
yui
Browse files
scciwrap を修正
- HINSTANCE -> HMODULE - 前方参照
parent
e56b3370
Changes
2
Hide whitespace changes
Inline
Side-by-side
support_scci/win9x/ext/realchip/scciwrap.cpp
View file @
189c0df6
#include "compiler.h"
#include "scciwrap.h"
#include "scci.h"
#include "SCCIDefines.h"
SoundChip
*
scciwrap
::
m_pOpm
=
NULL
;
SoundChip
*
scciwrap
::
m_pPsg
=
NULL
;
H
INSTANCE
scciwrap
::
m_hScci
=
NULL
;
H
MODULE
scciwrap
::
m_hScci
=
NULL
;
SoundInterfaceManager
*
scciwrap
::
m_pManager
=
NULL
;
// コンストラクタ
...
...
@@ -15,7 +18,6 @@ scciwrap::~scciwrap(){
// 初期化
BOOL
scciwrap
::
initialize
(){
SCCIFUNC
getSoundInterfaceManager
=
NULL
;
// 多重呼び出しチェック
if
(
m_pManager
!=
NULL
||
m_hScci
!=
NULL
){
return
FALSE
;
...
...
@@ -23,11 +25,10 @@ BOOL scciwrap::initialize(){
// load scci
m_hScci
=
::
LoadLibrary
(
TEXT
(
"scci"
));
if
(
m_hScci
==
NULL
){
m_hScci
=
NULL
;
return
FALSE
;
}
// マネージャーを取得する
getSoundInterfaceManager
=
(
SCCIFUNC
)
(
::
GetProcAddress
(
m_hScci
,
"getSoundInterfaceManager"
));
SCCIFUNC
getSoundInterfaceManager
=
reinterpret_cast
<
SCCIFUNC
>
(
::
GetProcAddress
(
m_hScci
,
"getSoundInterfaceManager"
));
// マネージャーが取得できない場合は戻る
if
(
getSoundInterfaceManager
==
NULL
){
::
FreeLibrary
(
m_hScci
);
...
...
@@ -35,7 +36,7 @@ BOOL scciwrap::initialize(){
return
FALSE
;
}
// マネージャーを取得する
m_pManager
=
getSoundInterfaceManager
();
m_pManager
=
(
*
getSoundInterfaceManager
)
();
if
(
m_pManager
==
NULL
){
::
FreeLibrary
(
m_hScci
);
m_hScci
=
NULL
;
...
...
support_scci/win9x/ext/realchip/scciwrap.h
View file @
189c0df6
#pragma once
#include "scci.h"
#include "SCCIDefines.h"
class
SoundInterfaceManager
;
class
SoundChip
;
class
scciwrap
{
private:
static
SoundChip
*
m_pOpm
;
static
SoundChip
*
m_pPsg
;
static
H
INSTANCE
m_hScci
;
static
H
MODULE
m_hScci
;
static
SoundInterfaceManager
*
m_pManager
;
public:
// コンストラクタ
...
...
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