mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-02-02 11:45:13 +01:00
Remove remaining SDL from platform code
This commit is contained in:
@@ -19,8 +19,6 @@
|
||||
|
||||
#include "../common.h"
|
||||
|
||||
#include <SDL.h>
|
||||
|
||||
#ifdef __WINDOWS__
|
||||
#include "../rct2.h"
|
||||
#ifndef HAVE_MATH_H
|
||||
|
||||
@@ -14,27 +14,26 @@
|
||||
*****************************************************************************/
|
||||
#pragma endregion
|
||||
|
||||
#include "../common.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
#include "../audio/audio.h"
|
||||
#include "../config/Config.h"
|
||||
#include "../Context.h"
|
||||
#include "../drawing/drawing.h"
|
||||
#include "../drawing/IDrawingEngine.h"
|
||||
#include "../drawing/lightfx.h"
|
||||
#include "../editor.h"
|
||||
#include "../game.h"
|
||||
#include "../input.h"
|
||||
#include "../interface/console.h"
|
||||
#include "../interface/Cursors.h"
|
||||
#include "../interface/window.h"
|
||||
#include "../localisation/currency.h"
|
||||
#include "../localisation/localisation.h"
|
||||
#include "../OpenRCT2.h"
|
||||
#include "../rct2.h"
|
||||
#include "../title/TitleScreen.h"
|
||||
#include "../util/util.h"
|
||||
#include "../Version.h"
|
||||
#include "../world/Climate.h"
|
||||
#include "platform.h"
|
||||
|
||||
@@ -175,7 +174,11 @@ uint32 platform_get_ticks()
|
||||
|
||||
void platform_sleep(uint32 ms)
|
||||
{
|
||||
SDL_Delay(ms);
|
||||
#ifdef _WIN32
|
||||
Sleep(ms);
|
||||
#else
|
||||
usleep(ms * 1000);
|
||||
#endif
|
||||
}
|
||||
|
||||
uint8 platform_get_currency_value(const char *currCode) {
|
||||
|
||||
Reference in New Issue
Block a user