This commit is contained in:
commit
ebda608938
|
|
@ -191,7 +191,7 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||||
list(APPEND MAIN_HEADERS src/xdg-user-dir-lookup.h)
|
list(APPEND MAIN_HEADERS src/xdg-user-dir-lookup.h)
|
||||||
elseif(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
|
elseif(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
|
||||||
find_package(PkgConfig REQUIRED)
|
find_package(PkgConfig REQUIRED)
|
||||||
pkg_check_modules(LINUXPKGS REQUIRED gtk+-3.0)
|
pkg_check_modules(LINUXPKGS REQUIRED gtk+-3.0 libxfconf-0)
|
||||||
include_directories(${LINUXPKGS_INCLUDE_DIRS})
|
include_directories(${LINUXPKGS_INCLUDE_DIRS})
|
||||||
add_compile_options(${LINUXPKGS_CFLAGS_OTHER})
|
add_compile_options(${LINUXPKGS_CFLAGS_OTHER})
|
||||||
list(APPEND PLATFORM_LIBRARIES ${LINUXPKGS_LDFLAGS})
|
list(APPEND PLATFORM_LIBRARIES ${LINUXPKGS_LDFLAGS})
|
||||||
|
|
@ -454,7 +454,7 @@ find_package(Ruby 3.0 REQUIRED COMPONENTS Development)
|
||||||
pkg_check_modules(VORBISFILE REQUIRED vorbisfile)
|
pkg_check_modules(VORBISFILE REQUIRED vorbisfile)
|
||||||
find_package_handle_standard_args(pixman-1 DEFAULT_MSG PIXMAN_LIBRARY PIXMAN_INCLUDE_DIR)
|
find_package_handle_standard_args(pixman-1 DEFAULT_MSG PIXMAN_LIBRARY PIXMAN_INCLUDE_DIR)
|
||||||
mark_as_advanced(PIXMAN_INCLUDE_DIR PIXMAN_LIBRARY)
|
mark_as_advanced(PIXMAN_INCLUDE_DIR PIXMAN_LIBRARY)
|
||||||
find_package(OpenSSL CONFIG REQUIRED COMPONENTS Crypto)
|
find_package(OpenSSL REQUIRED COMPONENTS Crypto)
|
||||||
pkg_check_modules(SIGC2 REQUIRED sigc++-2.0)
|
pkg_check_modules(SIGC2 REQUIRED sigc++-2.0)
|
||||||
target_compile_definitions(${PROJECT_NAME} PRIVATE ${DEFINES})
|
target_compile_definitions(${PROJECT_NAME} PRIVATE ${DEFINES})
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
* "Визя"
|
* "Визя"
|
||||||
* DepressedTWM
|
* DepressedTWM
|
||||||
* referr
|
* referr
|
||||||
* MeTLAaaaaa
|
* блинчек
|
||||||
|
|
||||||
## Artists
|
## Artists
|
||||||
|
|
||||||
|
|
@ -19,15 +19,16 @@
|
||||||
## Testers and helpers:
|
## Testers and helpers:
|
||||||
* Rubik
|
* Rubik
|
||||||
* Prime 223432
|
* Prime 223432
|
||||||
|
* Алула(from Oneshot)
|
||||||
## Donators
|
* Охотник
|
||||||
* Kodu
|
* Ouzly
|
||||||
|
|
||||||
## Telegram moderators
|
## Telegram moderators
|
||||||
* Creature_of_steel1
|
* Creature_of_steel1
|
||||||
* Обси(ENG channel)
|
* Обси(ENG channel)
|
||||||
* Freskovich
|
* Freskovich
|
||||||
* "Визя"
|
* "Визя"
|
||||||
|
* Ouzly
|
||||||
|
|
||||||
## Matrix moderators
|
## Matrix moderators
|
||||||
* referr
|
* referr
|
||||||
|
|
|
||||||
48
PORTING.md
48
PORTING.md
|
|
@ -1,48 +0,0 @@
|
||||||
<!-- markdownlint-disable MD033 -->
|
|
||||||
## Операционные системы | Operating Systems
|
|
||||||
| Платформа<br>Platform | Завершено<br>Done % | Состояние<br>State |
|
|
||||||
| :--- | :---: | :--- |
|
|
||||||
| Windows | 100% | Играбельно |
|
|
||||||
| Linux | 91% | В работе, но уже играбельно<br>TODO:<br> \* Fix Wallpaper manager
|
|
||||||
| *BSD | 15% | не в работе |
|
|
||||||
| GNU/Hurd | 0% | не в работеm не хватает библеотек |
|
|
||||||
| Solaris/OpenSolaris | 1% | не в работе |
|
|
||||||
| RedoxOS | 0% | Не хватает библеотек |
|
|
||||||
| Android | 4% | В работе |
|
|
||||||
| PS Vita | 1% | не в работе |
|
|
||||||
| PSP | 1% | не в работе |
|
|
||||||
| Emspritein(web) | 11% | Нет хватает библеотек<br> \* Нужно написать порт библеотеки libsigc++2<br>(А лучше 3 и переписать движок)<br> \* Проблемы с компиляцией и зависимостями |
|
|
||||||
| HaikuOS | 1% | не в работе |
|
|
||||||
| DOS | 1% | Не в работе |
|
|
||||||
| Ubuntu Touch | 60% | Будет почти готово тогда когда Linux порт будет доведён до ума |
|
|
||||||
| Аврора ОС | 0% | не в работе |
|
|
||||||
| ChromeOS/ChromiumOS | 0.4% | Неизвестное |
|
|
||||||
| MacOS | 10.5% | Неизвестное, но работа ведётся |
|
|
||||||
| Kyronix | 10% | В работе сторонней командой разработчиков|
|
|
||||||
| PS2 | 40% | В работе сторонним человеком|
|
|
||||||
|
|
||||||
## Окружения рабочего стола | Desktop Environments
|
|
||||||
| Окружение<br>Environments | Завершено<br>Done % |
|
|
||||||
| :--- | :---: |
|
|
||||||
| X11 standalone window managers | 0% |
|
|
||||||
| Wayland standalone window managers | 0% |
|
|
||||||
| LXDE | 100% |
|
|
||||||
| XFCE | 10% |
|
|
||||||
| GNOME | 10% |
|
|
||||||
| KDE | 10% |
|
|
||||||
| LXQT | 0% |
|
|
||||||
| MATE | 100% |
|
|
||||||
| Cinnamon | 10% |
|
|
||||||
| Budgie | 0% |
|
|
||||||
| Deepin | 10% |
|
|
||||||
| COSMIC | 0% |
|
|
||||||
| Pantheon | 0% |
|
|
||||||
| Enlightenment | 0% |
|
|
||||||
| Unity | 0% |
|
|
||||||
| Sugar Desktop | 0% |
|
|
||||||
| ROX Desktop | 0% |
|
|
||||||
| Fluxbox | 0% |
|
|
||||||
| Trinity | 0% |
|
|
||||||
| Fish | 0% |
|
|
||||||
| Lumina | 0% |
|
|
||||||
| IceWM | 0% |
|
|
||||||
|
|
@ -398,7 +398,7 @@ static void runCustomScript(const std::string &filename){
|
||||||
std::string scriptData;
|
std::string scriptData;
|
||||||
|
|
||||||
if (!readFileSDL(filename.c_str(), scriptData)){
|
if (!readFileSDL(filename.c_str(), scriptData)){
|
||||||
crash(Exception::NoFileError, false, "Unable to open %s", filename);
|
crash(Exception::NoFileError, false, "Unable to open %s", filename.c_str());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -430,7 +430,7 @@ static void runRMXPScripts(BacktraceData &btData){
|
||||||
try{
|
try{
|
||||||
scriptArray = kernelLoadDataInt(scriptPack.c_str(), false);
|
scriptArray = kernelLoadDataInt(scriptPack.c_str(), false);
|
||||||
}catch (const Exception &e){
|
}catch (const Exception &e){
|
||||||
crash(Exception::IOError, false ,"Failed to read script data: %s", e.msg);
|
crash(Exception::IOError, false, "Failed to read script data: %s", e.msg.c_str());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@
|
||||||
//костыль ебаный сука
|
//костыль ебаный сука
|
||||||
#undef snprintf
|
#undef snprintf
|
||||||
#undef inline
|
#undef inline
|
||||||
|
#undef close
|
||||||
|
|
||||||
#include "exception.h"
|
#include "exception.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#ifdef OS_LINUX
|
#ifdef __linux__
|
||||||
#include <sys/inotify.h>
|
#include <sys/inotify.h>
|
||||||
#endif
|
#endif
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
@ -164,7 +164,7 @@ void journalBindingInit(){
|
||||||
mutex = SDL_CreateMutex();
|
mutex = SDL_CreateMutex();
|
||||||
SDL_memset((char*)lang_buffer, 0, BUFFER_SIZE);
|
SDL_memset((char*)lang_buffer, 0, BUFFER_SIZE);
|
||||||
lang_buffer[0] = '_';
|
lang_buffer[0] = '_';
|
||||||
#if defined __linux
|
#ifdef unix_like
|
||||||
mkfifo(PIPE_PATH.c_str(), 0666);
|
mkfifo(PIPE_PATH.c_str(), 0666);
|
||||||
atexit(cleanup_pipe);
|
atexit(cleanup_pipe);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#ifdef OS_LINUX
|
#ifdef __linux__
|
||||||
#include <sys/inotify.h>
|
#include <sys/inotify.h>
|
||||||
#endif
|
#endif
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,10 @@
|
||||||
#include "sharedstate.h"
|
#include "sharedstate.h"
|
||||||
#include "pipe.h"
|
#include "pipe.h"
|
||||||
|
|
||||||
|
#if defined __FreeBSD__ || defined __DragonFly__
|
||||||
|
#include <sys/sysctl.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
static Pipe ipc;
|
static Pipe ipc;
|
||||||
|
|
||||||
static void start(){
|
static void start(){
|
||||||
|
|
@ -29,10 +33,19 @@ static void start(){
|
||||||
#else
|
#else
|
||||||
#if defined unix_like
|
#if defined unix_like
|
||||||
char path[PATH_MAX];
|
char path[PATH_MAX];
|
||||||
ssize_t len = readlink("/proc/self/exe", path, PATH_MAX);
|
std::string exename;
|
||||||
if (len == -1)
|
#if defined __FreeBSD__ || defined __DragonFly__
|
||||||
rb_raise(rb_eRuntimeError, "Cannot determine path of running executable");
|
int mib[4] = {CTL_KERN, KERN_PROC, KERN_PROC_PATHNAME, -1};
|
||||||
std::string exename = std::string(path, len);
|
size_t size = sizeof(path);
|
||||||
|
if (sysctl(mib, 4, path, &size, NULL, 0) != 0)
|
||||||
|
rb_raise(rb_eRuntimeError, "Cannot determine path of running executable");
|
||||||
|
exename = std::string(path);
|
||||||
|
#else
|
||||||
|
ssize_t len = readlink("/proc/self/exe", path, PATH_MAX);
|
||||||
|
if (len == -1)
|
||||||
|
rb_raise(rb_eRuntimeError, "Cannot determine path of running executable");
|
||||||
|
exename = std::string(path, len);
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -284,7 +284,7 @@ int main(int argc, char *argv[]){
|
||||||
|
|
||||||
if (!conf.gameFolder.empty()){
|
if (!conf.gameFolder.empty()){
|
||||||
if (chdir(conf.gameFolder.c_str()) != 0){
|
if (chdir(conf.gameFolder.c_str()) != 0){
|
||||||
crash(Exception::SDLError, false, "Unable to switch into gameFolder %s", conf.gameFolder);
|
crash(Exception::SDLError, false, "Unable to switch into gameFolder %s", conf.gameFolder.c_str());
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,9 @@
|
||||||
#include <ruby.h>
|
#include <ruby.h>
|
||||||
#undef vsnprintf
|
#undef vsnprintf
|
||||||
#undef snprintf
|
#undef snprintf
|
||||||
|
#if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__) || defined(__NetBSD__)
|
||||||
|
#define BOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED
|
||||||
|
#endif
|
||||||
#include <boost/stacktrace.hpp>
|
#include <boost/stacktrace.hpp>
|
||||||
#include <boost/version.hpp>
|
#include <boost/version.hpp>
|
||||||
#include <zlib.h>
|
#include <zlib.h>
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,6 @@
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <openssl/sha.h>
|
#include <openssl/sha.h>
|
||||||
#include <SDL3/SDL_stdinc.h>
|
#include <SDL3/SDL_stdinc.h>
|
||||||
#include <zip.h>
|
|
||||||
#include <locale>
|
#include <locale>
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@
|
||||||
|
|
||||||
#include "xdg-user-dir-lookup.h"
|
#include "xdg-user-dir-lookup.h"
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
#include <SDL3/SDL_stdinc.h>
|
#include <SDL3/SDL_stdinc.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue