mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-10-10 00:08:26 +03:00
Read files from current directory
This commit is contained in:
@@ -7,14 +7,6 @@ SDL_Window* g_window;
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
// モジュールパス取得
|
||||
GetModuleFileName(NULL, g_root, _MAX_PATH);
|
||||
int p = _tcslen(g_root);
|
||||
while(g_root[p] != _T('\\')) {
|
||||
p--;
|
||||
}
|
||||
g_root[p + 1] = _T('\0');
|
||||
|
||||
g_hinst = (HINSTANCE)::GetModuleHandle(NULL);
|
||||
|
||||
SDL_Init(SDL_INIT_VIDEO);
|
||||
|
||||
Reference in New Issue
Block a user