mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 13:29:54 +00:00
i
This commit is contained in:
parent
372e2e91b0
commit
c2939f22bb
8 changed files with 17 additions and 22 deletions
|
|
@ -7,7 +7,7 @@ include(FindPackageHandleStandardArgs)
|
|||
option(STEAM "Build for Steam" OFF)
|
||||
set(STEAMWORKS_PATH "${CMAKE_CURRENT_SOURCE_DIR}/steamworks" CACHE PATH "Path to Steamworks folder")
|
||||
option(DEBUG "Debug mode" ON)
|
||||
|
||||
set(SDLTTF_VENDORED ON)
|
||||
## Misc setup ##
|
||||
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
|
|
|
|||
|
|
@ -86,8 +86,7 @@ namespace Buffer{
|
|||
}
|
||||
}
|
||||
|
||||
namespace Source
|
||||
{
|
||||
namespace Source{
|
||||
DEF_AL_ID
|
||||
|
||||
inline Source::ID gen(){
|
||||
|
|
|
|||
|
|
@ -29,8 +29,7 @@
|
|||
#endif
|
||||
|
||||
struct ALDataSource{
|
||||
enum Status
|
||||
{
|
||||
enum Status{
|
||||
NoError,
|
||||
EndOfStream,
|
||||
WrapAround,
|
||||
|
|
|
|||
|
|
@ -34,10 +34,8 @@ struct ALDataSource;
|
|||
|
||||
/* State-machine like audio playback stream.
|
||||
* This class is NOT thread safe */
|
||||
struct ALStream
|
||||
{
|
||||
enum State
|
||||
{
|
||||
struct ALStream{
|
||||
enum State{
|
||||
Closed,
|
||||
Stopped,
|
||||
Playing,
|
||||
|
|
@ -77,14 +75,12 @@ struct ALStream
|
|||
// made it pointer, idk if its right. never worked with SDL
|
||||
SDL_IOStream* srcOps;
|
||||
|
||||
struct
|
||||
{
|
||||
struct{
|
||||
ALenum format;
|
||||
ALsizei freq;
|
||||
} stream;
|
||||
|
||||
enum LoopMode
|
||||
{
|
||||
enum LoopMode{
|
||||
Looped,
|
||||
NotLooped
|
||||
};
|
||||
|
|
|
|||
|
|
@ -27,8 +27,7 @@
|
|||
struct FileSystemPrivate;
|
||||
class SharedFontState;
|
||||
|
||||
class FileSystem
|
||||
{
|
||||
class FileSystem{
|
||||
public:
|
||||
FileSystem(bool allowSymlinks);
|
||||
~FileSystem();
|
||||
|
|
@ -42,8 +41,7 @@ public:
|
|||
* available font assets */
|
||||
void initFontSets(SharedFontState &sfs);
|
||||
|
||||
struct OpenHandler
|
||||
{
|
||||
struct OpenHandler{
|
||||
/* Try to read and interpret data provided from ops.
|
||||
* If data cannot be parsed, return false, otherwise true.
|
||||
* Can be called multiple times until a parseable file is found.
|
||||
|
|
|
|||
|
|
@ -354,7 +354,7 @@ void Font::initDefaultDynAttribs(){
|
|||
|
||||
void Font::initDefaults(const SharedFontState &sfs){
|
||||
std::vector<std::string> &names = FontPrivate::initialDefaultNames;
|
||||
|
||||
|
||||
switch (rgssVer){
|
||||
case 1 :
|
||||
// FIXME: Japanese version has "MS PGothic" instead
|
||||
|
|
|
|||
|
|
@ -36,8 +36,7 @@ struct Config;
|
|||
|
||||
struct SharedFontStatePrivate;
|
||||
|
||||
class SharedFontState
|
||||
{
|
||||
class SharedFontState{
|
||||
public:
|
||||
SharedFontState(const Config &conf);
|
||||
~SharedFontState();
|
||||
|
|
@ -60,8 +59,7 @@ private:
|
|||
|
||||
struct FontPrivate;
|
||||
|
||||
class Font
|
||||
{
|
||||
class Font{
|
||||
public:
|
||||
static bool doesExist(const char *name);
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,11 @@ set(STEAMWORKS_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../steamworks" CACHE PATH "Path
|
|||
set(GAME_LAUNCH_NAME "oneshot" CACHE STRING "Game launch name")
|
||||
option(DEBUG "Debug mode" OFF)
|
||||
|
||||
if(DEBUG)
|
||||
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -g3 -O0 -fno-omit-frame-pointer -ggdb")
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -g3 -O0 -fno-omit-frame-pointer -ggdb")
|
||||
endif()
|
||||
|
||||
set(SOURCES
|
||||
steamshim_parent.cpp
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue