This repository has been archived by the owner on Apr 6, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'koishibuild' of https://github.com/purerosefallen/ygopr…
…o-7210srv into koishibuild
- Loading branch information
Showing
10 changed files
with
148 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/bak/ | ||
/bin/ | ||
/build/ | ||
/event/ | ||
/freetype/ | ||
/gframe/ygopro.ico | ||
/gframe/ygopro.rc | ||
/gframe/ygopro.aps | ||
/gframe/__iob_func_fix.cpp | ||
/irrlicht/ | ||
/lua/ | ||
/obj/ | ||
/sqlite3/ | ||
/irrklang/ | ||
/ikpmp3/ | ||
premake5.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// fix irrklang static lib don't support VS2015 | ||
// http://blog.csdn.net/10km/article/details/50528908 | ||
|
||
#if _MSC_VER >= 1900 | ||
#include "stdio.h" | ||
_ACRTIMP_ALT FILE* __cdecl __acrt_iob_func(unsigned); | ||
#ifdef __cplusplus | ||
extern "C" | ||
#endif | ||
FILE* __cdecl __iob_func(unsigned i) { | ||
return __acrt_iob_func(i); | ||
} | ||
#endif // _MSC_VER >= 1900 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#include <irrKlang.h> | ||
|
||
namespace irrklang | ||
{ | ||
#ifdef WIN32 | ||
// Windows version | ||
extern "C" __declspec(dllexport) void ikpMP3Init(ISoundEngine* engine); | ||
#else | ||
// Linux version | ||
extern "C" void ikpMP3Init(ISoundEngine* engine); | ||
#endif | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
diff -ur ikpmp3/CIrrKlangAudioStreamMP3.cpp ikpmp3-static/CIrrKlangAudioStreamMP3.cpp | ||
--- ikpmp3/CIrrKlangAudioStreamMP3.cpp 2009-01-02 07:33:40.000000000 +0800 | ||
+++ ikpmp3-static/CIrrKlangAudioStreamMP3.cpp 2017-11-27 19:18:34.295546800 +0800 | ||
@@ -8,6 +8,7 @@ | ||
#include <memory.h> | ||
#include <stdlib.h> // free, malloc and realloc | ||
#include <string.h> | ||
+#include <algorithm> | ||
|
||
namespace irrklang | ||
{ | ||
diff -ur ikpmp3/ikpMP3.cpp ikpmp3-static/ikpMP3.cpp | ||
--- ikpmp3/ikpMP3.cpp 2007-10-28 18:14:00.000000000 +0800 | ||
+++ ikpmp3-static/ikpMP3.cpp 2017-11-27 19:49:02.119092400 +0800 | ||
@@ -6,30 +6,14 @@ | ||
|
||
using namespace irrklang; | ||
|
||
-// this is the only function needed to be implemented for the plugin, it gets | ||
-// called by irrKlang when loaded. | ||
-// In this plugin, we create an audiostream loader class and register | ||
-// it at the engine, but a plugin can do anything. | ||
-// Be sure to name the function 'irrKlangPluginInit' and let the dll start with 'ikp'. | ||
- | ||
#ifdef WIN32 | ||
// Windows version | ||
-__declspec(dllexport) void __stdcall irrKlangPluginInit(ISoundEngine* engine, const char* version) | ||
+extern "C" __declspec(dllexport) void ikpMP3Init(ISoundEngine* engine) | ||
#else | ||
// Linux version | ||
-void irrKlangPluginInit(ISoundEngine* engine, const char* version) | ||
+extern "C" void ikpMP3Init(ISoundEngine* engine) | ||
#endif | ||
{ | ||
- // do some version security check to be sure that this plugin isn't begin used | ||
- // by some newer irrKlang version with changed interfaces which could possibily | ||
- // cause crashes. | ||
- | ||
- if (strcmp(version, IRR_KLANG_VERSION)) | ||
- { | ||
- printf("This MP3 plugin only supports irrKlang version %s, mp3 playback disabled.\n", IRR_KLANG_VERSION); | ||
- return; | ||
- } | ||
- | ||
// create and register the loader | ||
|
||
CIrrKlangAudioStreamLoaderMP3* loader = new CIrrKlangAudioStreamLoaderMP3(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
project "ikpMP3" | ||
kind "StaticLib" | ||
|
||
files { "*.cpp", "*.h", "decoder/*.c", "decoder/*.h" } | ||
includedirs { "../irrklang/include" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters