From: DeaDDooMER Date: Thu, 7 Nov 2019 21:08:05 +0000 (+0300) Subject: add cvar d_eres X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=03988912c6a1d85d8ba35362e45690c414f13d0b;p=d2df-sdl.git add cvar d_eres --- diff --git a/src/game/g_console.pas b/src/game/g_console.pas index fb76d51..288eb54 100644 --- a/src/game/g_console.pas +++ b/src/game/g_console.pas @@ -1975,6 +1975,7 @@ initialization conRegVar('console_height', @ConsoleHeight, 0.0, 1.0, 'set console size', 'set console size'); conRegVar('console_trans', @ConsoleTrans, 0.0, 1.0, 'set console transparency', 'set console transparency'); conRegVar('console_step', @ConsoleStep, 0.0, 1.0, 'set console animation speed', 'set console animation speed'); + conRegVar('d_eres', @debug_e_res, '', ''); {$IFDEF ANDROID} ChatTop := True; ConsoleHeight := 0.35; diff --git a/src/shared/wadreader.pas b/src/shared/wadreader.pas index 707289a..1419f26 100644 --- a/src/shared/wadreader.pas +++ b/src/shared/wadreader.pas @@ -56,11 +56,19 @@ type property isOpen: Boolean read getIsOpen; end; - +// g_ExtractWadName C:\svr\shit.wad:\MAPS\MAP01 -> C:/svr/shit.wad function g_ExtractWadName (resourceStr: AnsiString): AnsiString; + +// g_ExtractWadNameNoPath C:\svr\shit.wad:\MAPS\MAP01 -> shit.wad function g_ExtractWadNameNoPath (resourceStr: AnsiString): AnsiString; + +// g_ExtractFilePath C:\svr\shit.wad:\MAPS\MAP01 -> :/MAPS function g_ExtractFilePath (resourceStr: AnsiString): AnsiString; + +// g_ExtractFileName C:\svr\shit.wad:\MAPS\MAP01 -> MAP01 function g_ExtractFileName (resourceStr: AnsiString): AnsiString; // without path + +// g_ExtractFilePathName C:\svr\shit.wad:\MAPS\MAP01 -> MAPS/MAP01 function g_ExtractFilePathName (resourceStr: AnsiString): AnsiString;