Changeset 877 for Daodan/src/flatline


Ignore:
Timestamp:
Jun 2, 2013, 1:25:34 PM (11 years ago)
Author:
alloc
Message:

Daodan: Moved flatline to subfolder, flatline enabled through patch "flatline"

Location:
Daodan/src/flatline
Files:
1 added
24 moved

Legend:

Unmodified
Added
Removed
  • Daodan/src/flatline/Flatline.c

    r876 r877  
    11#include "Flatline.h"
    2 #include "Oni_Character.h"
    3 #include "Oni_Gamestate.h"
    4 #include "Oni_Symbols.h"
     2#include "../Oni_Character.h"
     3#include "../Oni_GameState.h"
     4#include "../Oni_Symbols.h"
    55#include "Flatline_Client.h"
    66#include "Flatline_Server.h"
    77#include "Flatline_Events.h"
    8 #include "Daodan_Utility.h"
    9 #include <Windows.h>
     8#include "../Daodan_Utility.h"
     9#include <windows.h>
    1010//#include <sys/time.h>
    1111#include <time.h>
    1212#include <float.h>
     13
    1314#define isnan(x) ((x) != (x))
     15
    1416uint32_t last1 = 0; uint32_t last2 = 0;
    1517player_info Players[MAX_PLAYERS] = {{0}, {0}, {0}, {0}};
  • Daodan/src/flatline/Flatline.h

    r876 r877  
    1 #pragma once
    21#ifndef FLATLINE_H
    32#define FLATLINE_H
     
    1716#include <winsock2.h>
    1817#include "Flatline_Win32.h"
    19 #else
    20 #include <sys/ioctl.h>
    21 #include <sys/types.h>
    22 #include <sys/socket.h>
    23 #include <unistd.h>
    24 #include <stropts.h>
    25 #include <arpa/inet.h>
    26 #include <netinet/in.h>
    27 
    28 #define NetPlatform_Initalize() /* */
    29 #define NetPlatform_Shutdown() /* */
    30 #define closesocket close
    31 #define ioctlsocket ioctl
    32 #endif
    33 
    34 #include "Daodan.h"
    35 #include "BFW_Utility.h"
    36 #include "Daodan_Console.h"
    37 #include "Oni_Character.h"
    38 #include "Oni_Gamestate.h"
     18
     19#include "../Daodan.h"
     20#include "../BFW_Utility.h"
     21#include "../Daodan_Console.h"
     22#include "../Oni_Character.h"
     23#include "../Oni_GameState.h"
    3924#include "Flatline_Packet.h"
    4025
    41 #include "Oni_Symbols.h"
     26#include "../Oni_Symbols.h"
    4227//#define breakpoint asm("int3")
    4328
     
    307292
    308293#define FLATLINE_PORT 27778
     294
     295#endif
  • Daodan/src/flatline/Flatline_BSL.c

    r876 r877  
    11#include <winsock2.h>
    2 #include "BFW_ScriptLang.h"
    3 
    4 #include "Daodan_Patch.h"
    5 #include "Daodan_BSL.h"
     2#include "../BFW_ScriptLang.h"
     3
     4#include "../Daodan_Patch.h"
     5#include "../Daodan_BSL.h"
    66#include "Flatline_BSL.h"
    77#include "Flatline.h"
     
    99#include "Mariusnet_Public.h"
    1010#include "Flatline_Client.h"
     11
    1112unsigned char server_started = 0;
    1213unsigned char client_connected = 0;
     
    1617char player_country[256] = {0};
    1718int update_rate = 5;
    18 #include "Oni.h"
    19 #include "Daodan_Cheater.h"
     19
     20#include "../Oni.h"
     21#include "../Daodan_Cheater.h"
     22
    2023uint16_t ONICALL start_server(sl_callinfo* callinfo, uint32_t numargs, sl_arg args[], int* dontuse1, int* dontuse2, sl_arg* ret)
    2124{
  • Daodan/src/flatline/Flatline_BSL.h

    r876 r877  
    11#ifndef FLATLINE_BSL_H
    22#define FLATLINE_BSL_H
    3 #include "Daodan.h"
     3#include "../Daodan.h"
    44void SLrFlatline_Initialize();
    55uint16_t ONICALL FLrSpawnHack(sl_callinfo* callinfo, uint32_t numargs, sl_arg args[], int* dontuse1, int* dontuse2, sl_arg* ret);
  • Daodan/src/flatline/Flatline_Hooks.c

    r876 r877  
    3232}
    3333
    34 int FLrHook_DebugNameTextureInit(short width, short height, int type, int allocated, int flags, char* name, void** output)
    35 {
    36         //flags = (1 << 10);
    37         type = 1;
    38         //DDrPatch_Byte( 0x005EB83C + 3, 0xff );
    39         DDrPatch_Int32( 0x005EB83C, 0xFF000000 );
    40         return M3rTextureMap_New(width, height, type, allocated, flags, name, output);
    41 }
    42 
    43 short FLrHook_DebugNameShadeHack( Character* Char )
    44 {
    45        
    46         return TSrContext_SetShade(*(void**)0x005EB844, ONrCharacter_GetHealthShade( Char->Health, Char->MaxHealth ));
    47         //return TSrContext_SetShade(*(void**)0x005EB844, 0xFFFFFFFF);
    48 }
    4934/*
    5035void FLrHook_Lasers( Character* PlayerChar )
  • Daodan/src/flatline/Flatline_Hooks.h

    r876 r877  
    1 #include "Oni.h"
     1#ifndef FLATLINE_HOOKS_H
     2#define FLATLINE_HOOKS_H
     3
     4#include "../Oni.h"
    25char * FLrHook_DoorOpen( DoorObject *Door, Character *Char);
    36short FLrHook_ConsoleActivate( void *inObject, Character *inCharacter );
    4 int FLrHook_DebugNameTextureInit(short width, short height, int type, int allocated, int flags, char* name, void** output);
    5 short FLrHook_DebugNameShadeHack( Character* Char );
    67void FLrHook_Lasers( Character* PlayerChar );
     8
     9#endif
  • Daodan/src/flatline/Flatline_Net.c

    r876 r877  
     1#include "Flatline_Net.h"
    12#include "Flatline.h"
    23#include "Flatline_Server.h"
  • Daodan/src/flatline/Flatline_Net.h

    r876 r877  
    11#ifndef FLATLINE_NET_H
    22#define FLATLINE_NET_H
     3
     4#include "stdint.h"
    35
    46#define pad1_size (sizeof(int64_t) - sizeof(short))
  • Daodan/src/flatline/Flatline_PacketBuilder.c

    r876 r877  
    11#include "Flatline.h"
    2 #include "Oni_Symbols.h"
     2#include "../Oni_Symbols.h"
    33#include <assert.h>
    44
  • Daodan/src/flatline/Flatline_Server.c

    r876 r877  
    11#include "Flatline.h"
    22#include "Flatline_Server.h"
    3 #include <Windows.h>
     3#include <windows.h>
    44//#include "PortForwardWrapper.h"
    55#include "Mariusnet_Public.h"
  • Daodan/src/flatline/Flatline_Win32.h

    r876 r877  
    1 #pragma once
     1#ifndef FLATLINE_WIN32_H
     2#define FLATLINE_WIN32_H
    23
    34unsigned char NetPlatform_Initalize();
    45unsigned char NetPlatform_Shutdown();
     6
     7#endif
  • Daodan/src/flatline/Mariusnet.c

    r876 r877  
    66#include "Flatline_Client.h"
    77#include "Mariusnet_Defs.h"
    8 #include "Daodan_Console.h"
    9 #include "Oni_Symbols.h"
     8#include "../Daodan_Console.h"
     9#include "../Oni_Symbols.h"
    1010#include <stdio.h>
    1111
  • Daodan/src/flatline/Mariusnet_Defs.h

    r876 r877  
     1#ifndef MARIUSNET_DEFS_H
     2#define MARIUSNET_DEFS_H
     3
    14//to client
    25#include "Mariusnet_Public.h"
     
    215218        };
    216219} marius_packet;
     220
     221#endif
Note: See TracChangeset for help on using the changeset viewer.