Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:goupilmtos:Emulators
bliss
bliss.dif
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bliss.dif of Package bliss
--- app/Bliss32.cpp +++ app/Bliss32.cpp @@ -15,6 +15,7 @@ // **************************************************************************** #include <time.h> +#include <unistd.h> #include "Bliss32.h" #include "SDL.h" @@ -69,6 +70,8 @@ { Bliss32 bliss32; + chdir("/usr/share/bliss"); + char sCmd[MAX_PATH]; sCmd[0] = '\0'; if(argc > 1) { @@ -710,6 +713,9 @@ return len; } #else + sprintf(sDir, "/usr/share/bliss"); + return strlen(sDir); +#if 0 INT32 src_len = strlen(programName); if(src_len > maxLen) { @@ -725,6 +731,7 @@ sDir[len+1] = 0; return len; #endif +#endif return 0; } --- app/config.h +++ app/config.h @@ -10,8 +10,8 @@ class Config { public: - Config::Config(const char* file); - Config::~Config(); + Config(const char* file); + ~Config(); bool get(const char* section, const char* key, char* value, const unsigned int maxlen); --- atari5200/Antic_Registers.h +++ atari5200/Antic_Registers.h @@ -4,6 +4,8 @@ #include "../core/Memory.h" +class Antic; + class Antic_Registers : public Memory8Bit { --- atari5200/GTIA_Registers.h +++ atari5200/GTIA_Registers.h @@ -4,6 +4,8 @@ #include "../core/Memory.h" +class GTIA; + class GTIA_Registers : public Memory8Bit { --- core/AudioOutputLine.h +++ core/AudioOutputLine.h @@ -4,6 +4,8 @@ #include "osd/types.h" +class AudioMixer; + class AudioOutputLine { --- core/Component.cpp +++ core/Component.cpp @@ -1,4 +1,5 @@ #include "Component.h" +#include <string.h> void TextCtl::render(VideoOutputDevice* pvod, int xOffset, int yOffset) { @@ -17,6 +18,7 @@ { INT32 size = m_liv.size(); if(size && alphabetize) { +#if 0 for (INT32 i = 0; i < size; i++) { if(strcmp(m_liv[i]->description, li->description) > 0) { @@ -24,6 +26,7 @@ return; } } +#endif m_liv.push_back(li); } else { --- core/Component.h +++ core/Component.h @@ -34,14 +34,14 @@ class TextCtl : public Component { public: - TextCtl::TextCtl(font* inFont, const char* inText, + TextCtl(font* inFont, const char* inText, int inX, int inY) { m_pFont = inFont; m_pText = inText; m_x = inX; m_y = inY; } - TextCtl::~TextCtl() {} + ~TextCtl() {} void render(VideoOutputDevice* pvod, int xOffset, int yOffset); @@ -56,14 +56,14 @@ class ImageCtl : public Component { public: - ImageCtl::ImageCtl(image* inImage, const UINT8 inAlpha, + ImageCtl(image* inImage, const UINT8 inAlpha, int inX, int inY) { m_pImage = inImage; m_pImage->setAlpha(inAlpha); m_x = inX; m_y = inY; } - ImageCtl::~ImageCtl() {} + ~ImageCtl() {} void render(VideoOutputDevice* pvod, int OffsetX, int OffsetY); @@ -88,7 +88,7 @@ class ListCtl : public Component { public: - ListCtl::ListCtl(font* inNrmFont, font* inSelFont, + ListCtl(font* inNrmFont, font* inSelFont, int inX, int inY, int viewable) { m_pNrmFont = inNrmFont; m_pSelFont = inSelFont; @@ -102,7 +102,7 @@ m_nMaxChars_Norm = 0; m_nMaxChars_Sel = 0; } - ListCtl::~ListCtl() {} + ~ListCtl() {} void addItem(PListItem, bool alphabetize); void render(VideoOutputDevice* pvod, int OffsetX, int OffsetY); --- core/Container.h +++ core/Container.h @@ -17,13 +17,13 @@ { public: - Container::Container(int x, int y) { + Container(int x, int y) { m_x = x; m_y = y; m_focus = NULL; m_parent = NULL; } - Container::~Container() { + ~Container() { } void addComponent(Component* c); --- core/PopMessage.cpp +++ core/PopMessage.cpp @@ -1,6 +1,9 @@ #include "Bliss.h" #include "PopMessage.h" +#include <iostream> +#include <string.h> + void PopMessage(CHAR *msg, msg_type type) { CHAR szType[15]; --- core/font.cpp +++ core/font.cpp @@ -5,6 +5,7 @@ #include "font.h" +#include <string.h> // Load a font from disk --- core/font.h +++ core/font.h @@ -14,7 +14,7 @@ class font { public: - font::font(VideoOutputDevice* video, const char* file) { + font(VideoOutputDevice* video, const char* file) { m_pVideo = video; m_pSurface = NULL; @@ -26,7 +26,7 @@ load(file); } - font::~font() { + ~font() { if(m_pVideo && m_pSurface) m_pVideo->deleteSurface(m_pSurface); } --- core/image.h +++ core/image.h @@ -9,14 +9,14 @@ class image { public: - image::image(VideoOutputDevice* video, const char* file, bool keyed) { + image(VideoOutputDevice* video, const char* file, bool keyed) { m_pVideo = video; m_pSurface = NULL; m_colorKeyed = keyed; load(file); } - image::~image() { + ~image() { if(m_pVideo && m_pSurface) m_pVideo->deleteSurface(m_pSurface); } --- core/std_file.cpp +++ core/std_file.cpp @@ -2,14 +2,15 @@ ////////////////////////////////////////////////////// #include "std_file.h" -#include <fstream.h> - +#include <fstream> +#include <iostream> +using namespace std; // fileExists: See if a file exists // bool fileExists(const char* sFile) { - ifstream stream(sFile, ios::in|ios::nocreate); + ifstream stream(sFile, ios::in /* |ios::nocreate */); // filebuf::sh_read||filebuf::sh_write); if(!stream.fail()) { // File found stream.close(); --- plugin/SDLVideoOutputDevice.h +++ plugin/SDLVideoOutputDevice.h @@ -66,9 +66,9 @@ virtual void fillBackBuffer_Stretch(); virtual void fillBackBuffer_ScaleXStretchY(); -void SDLVideoOutputDevice::tempStretchFor(PUINT16& backBuffer); -void SDLVideoOutputDevice::tempStretchWhile(PUINT16& backBuffer, int& y); -bool SDLVideoOutputDevice::tempStretchLock(PUINT16& backBuffer); +void tempStretchFor(PUINT16& backBuffer); +void tempStretchWhile(PUINT16& backBuffer, int& y); +bool tempStretchLock(PUINT16& backBuffer); // Surface change management routines
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor