• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

wwww


コミットメタ情報

リビジョン0b27dec43b461090fb2b9770f031dd230a9a0f75 (tree)
日時2016-04-17 15:58:17
作者Jonathan Campbell <jonathan@cast...>
コミッターJonathan Campbell

ログメッセージ

16.c needs to probe DOS and VGA before using modex library.
now it works without crashing.

変更サマリ

差分

--- a/src/16.c
+++ b/src/16.c
@@ -32,6 +32,27 @@ player_t player[MaxPlayers];
3232 void
3333 main(int argc, char *argv[])
3434 {
35+ // DOSLIB: check our environment
36+ probe_dos();
37+
38+ // DOSLIB: what CPU are we using?
39+ // NTS: I can see from the makefile Sparky4 intends this to run on 8088 by the -0 switch in CFLAGS.
40+ // So this code by itself shouldn't care too much what CPU it's running on. Except that other
41+ // parts of this project (DOSLIB itself) rely on CPU detection to know what is appropriate for
42+ // the CPU to carry out tasks. --J.C.
43+ cpu_probe();
44+
45+ // DOSLIB: check for VGA
46+ if (!probe_vga()) {
47+ printf("VGA probe failed\n");
48+ return;
49+ }
50+ // hardware must be VGA or higher!
51+ if (!(vga_state.vga_flags & VGA_IS_VGA)) {
52+ printf("This program requires VGA or higher graphics hardware\n");
53+ return;
54+ }
55+
3556 //screen = modexDefaultPage();
3657 engi_stat = ENGI_RUN;
3758 //textInit();