aboutsummaryrefslogtreecommitdiff
path: root/Source/PltParser.c
Commit message (Collapse)AuthorAgeFilesLines
* Deprecate dprintf over printfXavier Del Campo Romero2021-01-031-2/+2
|
* Removed SIO interrupt (it caused VBlank ISR not to be triggered).Xavier ASUS2018-11-301-2/+2
| | | | | | | Added Gfx wait on LoadMenuEnd(). Otherwise, some levels would not start after loading all required files. Also, added GPU wait on Menu.c before entering the main loop. An invalid index inside sound table was being accessed when creating an arrival flight. This made the game crash only under real hardware. Other minor changes and fixes.
* Some important bugfixes.Xavier ASUS2018-11-291-1/+4
| | | | | Added BUILDING_ATC_LOC. Added more levels.
* Bugfix: minutes were not being retrieved from PLT files.Xavier ASUS2018-11-251-8/+4
| | | | | | Game.c: parking slots cannot be selected if an aircraft in STATE_PARKED state is on it. Other fixes and improvements. Added some tiles from TILESET2.TIM
* Optimization flag changed from -Os to -O3 (seems to perform better FPS-wise).Xavier ASUS2018-11-231-3/+3
| | | | Improved const-correctness and scope for some variables.
* Added "const" qualifier to some functions.Xavier ASUS2018-11-181-1/+1
| | | | | "cdrom:\ and ;1" are automatically inserted into file name, in order to save memory space. Some minor optimizations.
* * Game can now compile without PSXSDK_DEBUG flag.XaviDCR922018-03-261-0/+6
| | | | * RCNT2 ISR is now disabled as soon as SystemLoadFileIntoBuffer() is called. Hopefully that will avoid problems with real HW.
* - .iso files are now ignored.XaviDCR922018-03-201-1/+1
| | | | | - Removed deprecated functions from System.c. * Minor changes.
* * Menu.c: bugfix for PLT level list.XaviDCR922018-03-101-3/+3
| | | | * Minor: added whitespace to "sizeof" operand.
* + Added Message module, used for tutorials.XaviDCR922018-02-251-26/+97
| | | | | | | + Added first tutorial level. * Font now inserts line feed automatically if the next word is too long to fit. * Gfx.c: added primitive list double buffering in order to gain some performance. * MapEditor: now airport can be defined inside the tool.
* * RWY_DIR and AIRCRAFT_DIRECTION have been joint into a single enum.XaviDCR922017-12-291-1/+2
| | | | | | * Game.c: new prototypes GameGetParkingDirection() and GameGetRunwayDirection(). * Slight optimizations into GameRenderLevel(). * Added some comment headers into Gfx.c.
* * Slight optimization: all comparations against true are now compared ↵XaviDCR922017-12-261-0/+12
| | | | | | | against != false. + Added a provisional background during gameplay (still WIP). * Map editor now allows creating a map.
* * Trimmed ending whitespaces.XaviDCR922017-09-161-34/+34
| | | | * Makefile now generates output TIM files automatically, using 'cat whatever.flags' files as flags for bmp2tim.
* * Minor changes (spaces between "if"/"for"... instructions).XaviDCR922017-08-301-18/+18
| | | | + Added output ELF file with debugging symbols for nocash.
* * (Bugfix): ptrPlayer->SelectedAircraft was not being updated correctly when ↵XaviDCR922017-08-191-28/+18
| | | | | | | | | new aircraft appeared. * (Bugfix): PltParser was casting remaining time to uint8_t instead of uint16_t. * Reduced file buffer size to original value. * GfxDrawButton(): L1/R1/L2/R2 text is now printed on top of Lx/Rx button. * Other minor changes.
* * Added more comments.XaviDCR922017-08-181-2/+0
| | | | | * Radio chatter sounds. * Created aircraft state STATE_STOPPED, to be used when L1 is pressed on aircraft selection mode.
* * Include directives are now moved to .c instead of .h, as it should really ↵XaviDCR922017-08-061-0/+2
| | | | | | | | | be... * Makefile now rebuilds needed targets on modified header files. * Some more work on GameEmergencyMode(). * Initial work on PSX mouse auto detection. * Prototypes for RCNT2 I_MASK bit handling.
* * Added comments on System.XaviDCR922017-07-271-0/+2
| | | | | | | * Files needed for Game are now only loaded once, except from LEVEL1.PLT. * Added DevMenu to get debug info. * ISR_LoadMenuVBlank() does not stop when accessing SIO. * On fopen() and SERIAL_INTERFACE defined, "#" is prepended and "@" is appended to filename string.
* + Added support for SIO (Serial Input Output).XaviDCR922017-07-201-15/+15
| | | | * On SystemLoadFileToBuffer(), files can be now uploaded to PSX using QPSXSerial.
* * Added font spacing parameter.XaviDCR922017-06-281-1/+1
| | | | | | * Removed obsolete, unused functions. * Performance optimization: routines inside GameCalculations() were computating a big loop several times, so this has been modified so that loop is only performed once. * Initial implementation for GameGetAircraftTilemap(). Still some work TODO.
* * Tried to get some work done in MapEditor with no success so far.XaviDCR922017-06-111-2/+0
| | | | | | * Timers with no repeat flag were being set to NULL, but this is not actually desired! * Reenabled transparency for aircraft shadow. * Deprecated NotificationRequest flags, and replaced by system timer handling.
* * Some more work on Plt file generator.XaviDCR922017-06-061-1/+37
|
* * Implemented aircraft collision. But it would not detect collision in some ↵XaviDCR922017-06-061-6/+83
| | | | | | | | cases. * Remove unneeded whitespace character on pointer variables (unary operators should not have any whitespaces). * SelectedAircraft index now increases or decreases automatically on aircraft added/removed. * Started writing Plt generation routines. Still a lot of work TODO.
* * More passengers by correct sequence are unboarded.XaviDCR922017-06-031-0/+1
| | | | | | | * Aircraft should not be removed on State == STATE_APPROACH. * Initial implementation for finished game. * Added some comments on System.c. * GameGuiPrepareNotificationString() deprecated.
* * Added more aircraft on LEVEL1.PLT.XaviDCR922017-05-271-0/+1
| | | | | | * Unboarding state now totally implemented. * (Bugfix): Incorrect aircraft was selected on ShowAircraftData. * Gfx1HzFlash() and Gfx2HzFlash() were incorrectly implemented, causing multiple ticks on a single cycle.
* * Implemented remaining time for flights.XaviDCR922017-05-251-12/+18
| | | | | * Initial STATE_UNBOARDING implementation. Still some work to do. * Added score logic.
* * Updated.XaviDCR922017-02-041-0/+0
|
* Initial commitXavier Del Campo2017-02-041-0/+251