mirror of
https://github.com/simtactics/mysimulation.git
synced 2025-07-04 13:47:04 -04:00
Added libmpg123 to FileHandler. This and libjpeg-turbo are now being assembled by GCC and NASM, respectively.
BMP support will be coming next.
This commit is contained in:
parent
705da4ba5c
commit
4442056335
9 changed files with 11 additions and 5 deletions
|
@ -91,6 +91,8 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR, int)
|
|||
LARGE_INTEGER CurrentTime;
|
||||
QueryPerformanceCounter(&CurrentTime);
|
||||
float TimeDelta = (float)(CurrentTime.QuadPart-PreviousTime.QuadPart)/System::ClockFreq.QuadPart;
|
||||
if(TimeDelta < 0 || TimeDelta >= 5) //Invalid TimeDelta
|
||||
continue;
|
||||
|
||||
int result = CurrentScene->RunFor(TimeDelta);
|
||||
if(result == System::SHUTDOWN)
|
||||
|
@ -104,7 +106,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR, int)
|
|||
QueryPerformanceCounter(&CurrentTime);
|
||||
float SleepDuration =
|
||||
(System::FramePeriod - (float)(CurrentTime.QuadPart-PreviousTime.QuadPart)/System::ClockFreq.QuadPart) * 1000;
|
||||
if(SleepDuration > 1) Sleep((unsigned) SleepDuration);
|
||||
if(SleepDuration > 1 && SleepDuration < 100) Sleep((unsigned) SleepDuration);
|
||||
}
|
||||
|
||||
ShowWindow(Window::hWnd, SW_HIDE);
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
|
||||
#define WINVER 0x0502
|
||||
#define _WIN32_WINNT 0x0502
|
||||
#define NTDDI_VERSION 0x05010300
|
||||
#define _CRT_SECURE_NO_WARNINGS
|
||||
|
||||
#include <windows.h>
|
||||
|
|
|
@ -12,7 +12,7 @@ Development Phase: Planning
|
|||
Technical Preview 1
|
||||
Schedule: (Not very subject to change)
|
||||
1. Implement cst and uis parsers [40%]
|
||||
2. Replicate functionality up until the login dialog
|
||||
2. Replicate functionality up until the login dialog [0%]
|
||||
3. Implement the OpenGL-based windowing system
|
||||
4. Replicate character selection and creation features and the city selection dialog
|
||||
5. Implement the code needed to allow the game to read all necessary files from the TSOClient folder
|
Loading…
Add table
Add a link
Reference in a new issue