.hgignore
author Ryan C. Gordon <icculus@icculus.org>
Thu, 28 May 2015 01:54:52 -0400
changeset 9671 0e1f57b051f4
parent 9550 e32baab8aef9
child 9764 eda4a6234d71
permissions -rw-r--r--
Windows GetBasePath should use GetModuleFileNameExW() and check for overflows.

Apparently you might get strange paths from GetModuleFileName(), such as
short path names or UNC filenames, so this avoids that problem. Since you have
to tapdance with linking different libraries and defining macros depending on
what Windows you plan to target, we dynamically load the API we need, which
works on all versions of Windows (on Win7, it'll load a compatibility wrapper
for the newer API location).

What a mess.

This also now does the right thing if there isn't enough space to store the
path, looping with a larger allocated buffer each try.

Fixes Bugzilla #2435.
     1 syntax:glob
     2 aclocal.m4
     3 autom4te*
     4 config.cache
     5 config.log
     6 config.status
     7 Makefile
     8 sdl-config
     9 SDL2.spec
    10 build
    11 Build
    12 *xcuserdata*
    13 *xcworkspacedata*
    14 
    15 # for Xcode
    16 *.orig
    17 *.swp
    18 *.tmp
    19 *.rej
    20 *~
    21 *.o
    22 *.mode1*
    23 *.model*
    24 *.perspective*
    25 *.perspective*
    26 *.pbxuser
    27 (^|/)build($|/)
    28 .DS_Store
    29 Xcode/SDL/SDL.xcodeproj/xcuserdata
    30 Xcode/SDL/SDL.xcodeproj/project.xcworkspace
    31 Xcode/SDLTest/SDLTest.xcodeproj/xcuserdata
    32 Xcode/SDLTest/SDLTest.xcodeproj/project.xcworkspace
    33 Xcode-iOS/SDL/SDL.xcodeproj/xcuserdata
    34 Xcode-iOS/SDL/SDL.xcodeproj/project.xcworkspace
    35 Xcode-iOS/Demos/Demos.xcodeproj/xcuserdata
    36 Xcode-iOS/Demos/Demos.xcodeproj/project.xcworkspace
    37 
    38 # for Visual C++
    39 Debug
    40 Release
    41 *.user
    42 *.ncb
    43 *.suo
    44 *.sdf
    45 VisualC/tests/loopwave/sample.wav
    46 VisualC/tests/testautomation/CompareSurfaces0001_Reference.bmp
    47 VisualC/tests/testautomation/CompareSurfaces0001_TestOutput.bmp
    48 VisualC/tests/testgamecontroller/axis.bmp
    49 VisualC/tests/testgamecontroller/button.bmp
    50 VisualC/tests/testgamecontroller/controllermap.bmp
    51 VisualC/tests/testoverlay2/moose.dat
    52 VisualC/tests/testrendertarget/icon.bmp
    53 VisualC/tests/testrendertarget/sample.bmp
    54 VisualC/tests/testscale/icon.bmp
    55 VisualC/tests/testscale/sample.bmp
    56 VisualC/tests/testsprite2/icon.bmp
    57 VisualC/visualtest/icon.bmp
    58 VisualC/visualtest/testquit.actions
    59 VisualC/visualtest/testquit.config
    60 VisualC/visualtest/testquit.exe
    61 VisualC/visualtest/testquit.parameters
    62 VisualC/visualtest/testsprite2.exe
    63 VisualC/visualtest/testsprite2_sample.actions
    64 VisualC/visualtest/testsprite2_sample.config
    65 VisualC/visualtest/testsprite2_sample.parameters
    66 
    67 # for Android
    68 android-project/local.properties
    69 
    70 sdl.pc
    71 test/autom4te*
    72 test/config.cache
    73 test/config.log
    74 test/config.status
    75 test/Makefile
    76 test/SDL2.dll
    77 test/checkkeys
    78 test/controllermap
    79 test/loopwave
    80 test/loopwavequeue
    81 test/testatomic
    82 test/testaudiohotplug
    83 test/testaudioinfo
    84 test/testautomation
    85 test/testdraw2
    86 test/testdrawchessboard
    87 test/testdropfile
    88 test/testerror
    89 test/testfile
    90 test/testgamecontroller
    91 test/testgesture
    92 test/testgl2
    93 test/testgles
    94 test/testgles2
    95 test/testhaptic
    96 test/testhittesting
    97 test/testhotplug
    98 test/testiconv
    99 test/testime
   100 test/testintersections
   101 test/testjoystick
   102 test/testkeys
   103 test/testloadso
   104 test/testlock
   105 test/testmessage
   106 test/testmultiaudio
   107 test/testnative
   108 test/testoverlay2
   109 test/testplatform
   110 test/testpower
   111 test/testfilesystem
   112 test/testrelative
   113 test/testrendercopyex
   114 test/testrendertarget
   115 test/testresample
   116 test/testrumble
   117 test/testscale
   118 test/testsem
   119 test/testshader
   120 test/testshape
   121 test/testsprite2
   122 test/testspriteminimal
   123 test/teststreaming
   124 test/testthread
   125 test/testtimer
   126 test/testver
   127 test/testviewport
   128 test/testwm2
   129 test/torturethread
   130 test/*.exe
   131 test/*.dSYM
   132 buildbot
   133 test/buildbot