1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-01 08:27:46 +00:00

Revert "Fix Oodle on Linux (todo:: make this not suck)"

This reverts commit 81bbe690a8.
This commit is contained in:
Rey 2023-02-28 00:09:56 -06:00
parent 95897dffc2
commit 762a35f8b9
4 changed files with 9 additions and 9 deletions

View file

@ -15,6 +15,7 @@ add_custom_target( copy_runtime_files ALL
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/web ${CMAKE_BINARY_DIR}/bin/web
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/sql_import.sh ${CMAKE_BINARY_DIR}/bin/sql_import.sh
COMMAND ${CMAKE_COMMAND} -E remove_directory ${CMAKE_BINARY_DIR}/bin/data/actions
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/deps/oo2net_9_win64.dll ${CMAKE_BINARY_DIR}/bin/oo2net_9_win64.dll
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/deps/ffxiv-actions/actions ${CMAKE_BINARY_DIR}/bin/data/actions )
######################################

View file

@ -3,7 +3,7 @@ add_library(OodleNet STATIC IMPORTED GLOBAL)
set_target_properties(
OodleNet
PROPERTIES
IMPORTED_IMPLIB "${CMAKE_SOURCE_DIR}/deps/Oodle/liboo2netlinux64.a"
IMPORTED_LOCATION "${CMAKE_SOURCE_DIR}/deps/Oodle/liboo2netlinux64.a"
IMPORTED_IMPLIB "${CMAKE_SOURCE_DIR}/deps/Oodle/oo2net_9_win64.lib"
IMPORTED_LOCATION "${CMAKE_SOURCE_DIR}/deps/Oodle/oo2net_9_win64.lib"
LINKER_LANGUAGE C
)

View file

@ -1,19 +1,18 @@
#ifndef __OODLE2NET_H__
#define __OODLE2NET_H__
#include <stdint.h>
extern "C" intptr_t OodleNetwork1_Shared_Size( int32_t htbits );
extern "C" intptr_t __stdcall OodleNetwork1_Shared_Size( int32_t htbits );
extern "C" intptr_t OodleNetwork1UDP_State_Size();
extern "C" intptr_t __stdcall OodleNetwork1UDP_State_Size();
extern "C" void OodleNetwork1_Shared_SetWindow(
extern "C" void __stdcall OodleNetwork1_Shared_SetWindow(
void* shared,
int32_t htbits,
const void* window,
int32_t windowSize
);
extern "C" void OodleNetwork1UDP_Train(
extern "C" void __stdcall OodleNetwork1UDP_Train(
void* state,
const void* shared,
const void** trainingPacketPointers,
@ -21,7 +20,7 @@ extern "C" void OodleNetwork1UDP_Train(
int32_t numTrainingPackets
);
extern "C" bool OodleNetwork1UDP_Decode(
extern "C" bool __stdcall OodleNetwork1UDP_Decode(
void* state,
const void* shared,
const void* enc,

View file

@ -2,7 +2,7 @@
#define _OODLE_H
#include <vector>
#include <cstdint>
#include <oodle2net.h>
namespace Sapphire::Network