16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 17:29:18 +02:00

compatibility with winXP. .bmp loader now handles 32-bit images and more modern headers.

This commit is contained in:
tmj-fstate
2017-01-30 23:21:00 +01:00
parent 3c0edb3ec3
commit 61440c4969
7 changed files with 51 additions and 35 deletions

View File

@@ -5826,16 +5826,8 @@ bool TMoverParameters::readBPT(/*int const ln,*/ std::string const &line)
bool TMoverParameters::readDList( std::string const &line ) {
cParser parser( line );
parser.getTokens( 4, false );
/* warning disabled until i know what to expect ._.
if( false == parser.getTokens( 4, false ) ) {
WriteLog( "Read DList: arguments missing in line " + std::to_string( DLISTLINE + 1 ) );
return false;
}
*/
++DLISTLINE;
int idx = 0;
parser >> idx;
parser.getTokens( 3, false );
auto idx = DLISTLINE++;
if( idx >= sizeof( RList ) ) {
WriteLog( "Read DList: number of entries exceeded capacity of the data table" );
return false;